Comments (10)
I'll see if I can reproduce this one. Could be tricky, though. From the look of it, the game is crashing when trying to save a unit (enemy), so it's possible the enemy was dying or dead when this happened. They shouldn't be in the linked list any longer, though.
from blobwarsattrition.
I can't reproduce the crash with the latest commit in develop (atomically save). Looks like it helped.
Update: no, sorry, still crashes sometimes.
from blobwarsattrition.
Just in case, here's call stack with latest development commit
#0 0x00007ffff69c29a6 in __strlen_sse2 () from /lib64/libc.so.6
No symbol table info available.
#1 0x000000000041a46c in cJSON_strdup (str=0x0) at src/json/cJSON.c:63
len = 37395936
copy = 0x23a9d70 ""
#2 0x000000000041d610 in cJSON_CreateString (string=0x0) at src/json/cJSON.c:1276
item = 0x23a9de0
#3 0x000000000042d880 in save (root=0x23a9c20) at src/entities/unit.c:322
u = 0x30788e0
#4 0x0000000000432862 in saveEntities (root=0x29cf2c0) at src/world/worldSaver.c:145
entitiesJSON = 0x29cfc70
entityJSON = 0x23a9c20
#5 0x0000000000432495 in saveWorld () at src/world/worldSaver.c:55
root = 0x29cf2c0
filename = 0x2c39c60 "/home/thesource/.local/share/blobwarsAttrition/0/outpost5.json.tmp"
out = 0x2439c00 ""
#6 0x0000000000423942 in saveGameAndWorld () at src/hub/postMission.c:97
src = 0x2397200 "outpost5"
dest = 0xc <error: Cannot access memory at address 0xc>
#7 0x000000000042390d in initPostMission () at src/hub/postMission.c:76
No locals.
#8 0x0000000000430c31 in doWorldComplete () at src/world/world.c:535
No locals.
#9 0x00000000004302db in logic () at src/world/world.c:178
No locals.
#10 0x000000000041fbc8 in main (argc=1, argv=0x7fffffffda98) at src/main.c:58
then = 201402
nextSecond = 201485
frames = 55
from blobwarsattrition.
Thanks for the trace. I can see what's going on, but I'm not sure why it's happening.
If you're still experiencing the crashes (looks like it's happening in Outpost 5), can you send me your save file? I'll take a look and see what I can find out.
from blobwarsattrition.
I have a hunch this might be due to Teeka being saved, when he's not supposed to be. I've updated the develop branch, but there may be an issue with the save file (that could be fixed by editing).
from blobwarsattrition.
With that commit I could not reproduce the crash for now, I'll test more.
During testing I encountered another problem: one time when I pressed quit from mission, Bob disappeared, but mission never ended. Enemies continued to respawn from time to time, no buttons worked, not even escape to call menu. I could not reproduce this however, seems to be very rare.
from blobwarsattrition.
The mission not ending is possibly linked to a save delay mechanism that avoids saving the mission if something is in the process of dying or teleporting (or an MIA is in the middle of their rescue animation).
Do you know which level you were on when this happened? I've not experienced it myself and the code suggestions that it shouldn't block saving for more than a few seconds.
from blobwarsattrition.
One of the Beach front levels, don't remember which one, sorry.
from blobwarsattrition.
I suspect it might've been something like a laser trap keep an enemy alive by constantly bouncing them about. I've made some changes to develop to prevent that from happening.
from blobwarsattrition.
I tested more and could not reproduce the crash, I guess it's fixed.
You were right about the trap, I just witnessed it happening on beach front 3 just to the right and down from the start, enemy was bouncing from the laser, but after your commit it collapsed after few bounces.
from blobwarsattrition.
Related Issues (20)
- Question about combos HOT 2
- Small Cosmetic Problems. HOT 2
- Crash "ERROR: No such lookup value 2, prefix=FACING_" HOT 7
- Best grenade combo is not saved to stats HOT 2
- Crash when starting a new game (not always) HOT 8
- Powerup stuck in wall HOT 10
- Compile error with gcc 8.1.1 HOT 1
- error: ‘fadeAmount’ may be used uninitialized in this function HOT 5
- Using `strncpy` to copy overlapping strings. HOT 7
- Battery trophy description is wrong HOT 1
- make fails with following error HOT 9
- segmentation fault on startup HOT 8
- shortage of yellow key cards HOT 4
- Compilation problem HOT 3
- Several crashes HOT 7
- Game loads wrong save slot HOT 3
- Wrong items are activated in main menu HOT 3
- "make install" fails because "icons/blobwarsAttrition.desktop" does not exist HOT 2
- Unable to progress, possibly due to a crash on level Greenlands 3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blobwarsattrition.