Open gurditsbedi opened 5 years ago
Interesting. I have done this strategy multiple times on all campaign maps and never encountered an error. I'll try reproducing this with the release version.
order of putting tanks:
I have more observation.
There are many times when the game closes while its running (only in campaign mode), the issue is am not seeing any pattern.
It gives segmentation fault.
I'm also seeing seg faults in ToF_Beta_0.7.0_linux64. I haven't been able to narrow it down to any specific action. I also see the repeated
ERROR: get_node: Condition ' !node ' is true. returned: __null
At: scene/main/node.cpp:907.
but I'm not sure if that is related, because I also see that at other times.
Any info on generating a debug version and catching the segfault?
If it is helpful, I was able to capture the core dump, I'll leave it out here for a short-ish amount of time: http://jimbo.teeks99.com/tmp/core-ToF_Beta_0.7.0_.14833.lisa.1551660197
Running the source inside of the Godot engine seemed to have an issue at move_hand.gd:15
: Invalid get index 'position_on_map' (on base: 'previously freed instance').
Ah, this issue again. Thank you for your help!
This one is very tricky, as it may show up (or not) depending on the performance of the device and order of execution of some code. Would explain why I very rarely get it on my PC.
Re-write of the whole AI had minimizing this specific issue in mind, as one of the goals. This stems from flaws that go deep in the code, and the architecture of the game as a whole. It's one of the reasons I consider starting whole new ToF project on Godot 3.1 (with backwards compatibility) instead of porting current codebase.
As for why this issue occures, it might be, because some unit dies, and it's queue_free()
gets delayed, so next AI loop picks up this unit, but it dissapears during the loop, when it should not have been considered from the get go. Very nasty thing to debug and fix, as Godot has very poor support for detecting if a particular variable references some memory, that has been freed.
version: ToF_Beta_0.7.0_linux64 execution using: ./ToF_Beta_0.7.0_linux64.bin
got the following output
In campaign mode, map peninsula.
I put a tank in every troop/tank spawn point i.e. infront of HQ, barracks and factory. I end my turn. And it is CPU turn now. after 1 sec their is segfault.
possible reason from my point of view: enemy unable to create any troop/tank.