Code Monkey home page Code Monkey logo

Comments (10)

stephenjsweeney avatar stephenjsweeney commented on May 22, 2024

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.

thesourcehim avatar thesourcehim commented on May 22, 2024

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.

thesourcehim avatar thesourcehim commented on May 22, 2024

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.

stephenjsweeney avatar stephenjsweeney commented on May 22, 2024

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.

stephenjsweeney avatar stephenjsweeney commented on May 22, 2024

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.

thesourcehim avatar thesourcehim commented on May 22, 2024

0.tar.gz

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.

stephenjsweeney avatar stephenjsweeney commented on May 22, 2024

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.

thesourcehim avatar thesourcehim commented on May 22, 2024

One of the Beach front levels, don't remember which one, sorry.

from blobwarsattrition.

stephenjsweeney avatar stephenjsweeney commented on May 22, 2024

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.

thesourcehim avatar thesourcehim commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.