View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000101||Gameplay + OpenGL||[All Projects] Bug||public||2017-01-21 21:37||2017-01-31 06:48|
|Assigned To||Graf Zahl|
|Summary||0000101: Crash in restart ccmd|
|Description||This one is more complicated to reproduce than the previous ones. I think I tried to look at it before but immediately got confused because I am not familiar with the game setup code yet.|
|Steps To Reproduce||To reproduce, do the following:|
> gzdoom -iwad doom2.wad -warp 1 // (Important in this step: open a level first)
Then open the console:
] restart -iwad doom2.wad
] map map01
This effect does not occur unless a level has been previously loaded, first.
|Tags||No tags attached.|
To me it crashes while restarting.
Valgrind reports this:
|Somewhere a stale pointer to a deleted object seems to remain. I haven't found it yet, though.|
The first culprit is static pointer in AInventory::CallTryPickup() function. I assume it was done this way for optimization purposes.
The second one is FraggleScript's variables being destructed twice: implicitly by GC::FullGC() at d_main.cpp:2720 and explicitly by DFsScript::ClearVariables() during exiting after restart.
I hope I got all pending issues here.
|2017-01-21 21:37||Rachael||New Issue|
|2017-01-22 03:25||Edward-san||Note Added: 0000200|
|2017-01-22 05:22||Graf Zahl||Note Added: 0000201|
|2017-01-22 05:22||Graf Zahl||Assigned To||=> Graf Zahl|
|2017-01-22 05:22||Graf Zahl||Status||new => confirmed|
|2017-01-23 07:16||_mental_||Note Added: 0000215|
|2017-01-31 06:48||Graf Zahl||Status||confirmed => resolved|
|2017-01-31 06:48||Graf Zahl||Resolution||open => fixed|
|2017-01-31 06:48||Graf Zahl||Note Added: 0000298|