MantisBT - Zandronum
View Issue Details
0002147Zandronum[All Projects] Bugpublic2015-03-30 18:272025-03-20 10:42
Edward-san 
unknownna 
normalcrashalways
resolvedfixed 
1.4 
3.23.2 
0002147: Crash with UNLOADING CLIENTSIDE script online
This script:


Script 101 UNLOADING CLIENTSIDE
{
//any code is okay, even nothing
}


Makes all the clients crash when a server does a changemap. The server does not crash.

It happens only online.
- Run a server with the example wad which contains the script;
- connect with a client;
- run 'changemap map01' from the server console
The crash happens in p_acs.cpp, in function 'FBehavior::StartTypedScripts', when it calls 'runningScript->RunScript ();' while 'runningScript' is NULL.

Full crash log text attached.

The function 'P_GetScriptGoing' returns NULL, apparently because 'controller->RunningScripts[num]->GetState ()' (num is the script number) returns 'DLevelScript::SCRIPT_Running', hence the condition is false and makes the function return NULL.
No tags attached.
? unloading_clientside_crash.wad (2,343) 2015-03-30 18:27
https://zandronum.com/tracker/file_download.php?file_id=1439&type=bug
txt zandronum-crash.log.txt (31,124) 2015-03-30 18:28
https://zandronum.com/tracker/file_download.php?file_id=1441&type=bug
Issue History
2015-03-30 18:27Edward-sanNew Issue
2015-03-30 18:27Edward-sanFile Added: unloading_clientside_crash.wad
2015-03-30 18:27Edward-sanFile Added: zandronum-crash.log
2015-03-30 18:28Edward-sanFile Deleted: zandronum-crash.log
2015-03-30 18:28Edward-sanFile Added: zandronum-crash.log.txt
2015-03-30 18:30Edward-sanAdditional Information Updatedbug_revision_view_page.php?rev_id=6870#r6870
2015-03-30 18:31Edward-sanDescription Updatedbug_revision_view_page.php?rev_id=6872#r6872
2015-05-03 22:52Edward-sanSummaryCrash with UNLOADED CLIENTSIDE script online => Crash with UNLOADING CLIENTSIDE script online
2015-06-10 01:44unknownnaStatusnew => confirmed
2024-04-11 04:14Ru5tK1ngNote Added: 0023592
2024-04-11 04:14Ru5tK1ngStatusconfirmed => needs review
2025-03-09 21:04Ru5tK1ngNote Added: 0024241
2025-03-09 21:04Ru5tK1ngStatusneeds review => needs testing
2025-03-09 21:04Ru5tK1ngTarget Version => 3.2
2025-03-09 21:05Ru5tK1ngNote Deleted: 0024241
2025-03-09 21:05Ru5tK1ngStatusneeds testing => needs review
2025-03-09 21:05Ru5tK1ngTarget Version3.2 =>
2025-03-16 20:10Ru5tK1ngStatusneeds review => needs testing
2025-03-16 20:10Ru5tK1ngTarget Version => 3.2
2025-03-20 10:42unknownnaNote Added: 0024261
2025-03-20 10:42unknownnaStatusneeds testing => resolved
2025-03-20 10:42unknownnaFixed in Version => 3.2
2025-03-20 10:42unknownnaResolutionopen => fixed
2025-03-20 10:42unknownnaAssigned To => unknownna

Notes
(0023592)
Ru5tK1ng   
2024-04-11 04:14   
The crashing should be resolved with this:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/99 [^]'
(0024261)
unknownna   
2025-03-20 10:42   
Tested it and the example wad no longer crashes. Great work.

Note, the site won't allow me to assign Ru5tK1ng to the report since we're both in the updater group only.