-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random crash when quitting the mission #11
Comments
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. |
I can't reproduce the crash with the latest commit in develop (atomically save). Looks like it helped. |
Just in case, here's call stack with latest development commit #0 0x00007ffff69c29a6 in __strlen_sse2 () from /lib64/libc.so.6 |
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. |
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). |
With that commit I could not reproduce the crash for now, I'll test more. |
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. |
One of the Beach front levels, don't remember which one, sorry. |
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. |
I tested more and could not reproduce the crash, I guess it's fixed. |
Game crashes randomly after endgame when I enter and then exit any mission
#0 0x00007ffff69c29a6 in __strlen_sse2 () from /lib64/libc.so.6
No symbol table info available.
#1 0x000000000041a496 in cJSON_strdup (str=0x0) at src/json/cJSON.c:63
len = 50891856
copy = 0x3088be0 ""
#2 0x000000000041d63a in cJSON_CreateString (string=0x0) at src/json/cJSON.c:1276
item = 0x3088c50
#3 0x000000000042d78a in save (root=0x3088a90) at src/entities/unit.c:322
u = 0x30676f0
#4 0x000000000043279d in saveEntities (root=0x30c90e0) at src/world/worldSaver.c:145
entitiesJSON = 0x306e520
entityJSON = 0x3088a90
#5 0x00000000004323d0 in saveWorld () at src/world/worldSaver.c:55
root = 0x30c90e0
filename = 0x30c9130 "/home/thesource/.local/share/blobwarsAttrition/0/outpost5.json"
out = 0x4239ab <updateMissionStatus+47> "\211\005\177\a#"
#6 0x0000000000423932 in initPostMission () at src/hub/postMission.c:79
No locals.
#7 0x0000000000430b6c in doWorldComplete () at src/world/world.c:535
No locals.
#8 0x0000000000430216 in logic () at src/world/world.c:178
No locals.
#9 0x000000000041fbe3 in main (argc=1, argv=0x7fffffffda78) at src/main.c:58
then = 322954
nextSecond = 323037
frames = 55
The text was updated successfully, but these errors were encountered: