[Scummvm-tracker] [ScummVM :: Bugs] #12729: AGS: Crash when starting Strangeland

ScummVM :: Bugs trac at scummvm.org
Mon Jul 12 13:15:11 UTC 2021


#12729: AGS: Crash when starting Strangeland
-------------------+-------------------------
Reporter:  criezy  |      Owner:  (none)
    Type:  defect  |     Status:  new
Priority:  normal  |  Component:  Engine: AGS
 Version:          |   Keywords:
    Game:          |
-------------------+-------------------------
 When starting Strangeland I get the following error:
 {{{
 ERROR: !Error running function 'game_start':
 Error: Null pointer referenced
 }}}

 This is with the latest source code from master (commit 8b460556ac from
 this morning) on macOS.

 The call stack is as follow:
 {{{
     frame #11: AGS3::quit_with_script_error(functionName="game_start") at
 script.cpp:575:3
     frame #12: AGS3::RunScriptFunctionIfExists(sci=0x0000000143a96080,
 tsname="game_start", numParam=0, params=0x0000000000000000) at
 script.cpp:374:3
     frame #13: AGS3::RunTextScript(sci=0x0000000143a96080,
 tsname="game_start") at script.cpp:414:14
     frame #14: AGS3::start_game() at game_start.cpp:86:3
     frame #15: AGS3::initialize_start_and_play_game(override_start_room=0,
 loadSaveGameOnStartup=-1) at game_start.cpp:124:3
     frame #16: AGS3::initialize_engine(startup_opts=0x000000016fdfbce0) at
 engine.cpp:1247:2
     frame #17: AGS::AGSEngine::run(this=0x000000011c89a8c0) at
 ags.cpp:183:2
     frame #18: runGame(plugin=0x0000000108c37bd0,
 enginePlugin=0x0000000108c37cf0, system=0x0000000108493240,
 debugLevels=0x000000016fdfd8c0) at main.cpp:307:33
     frame #19: ::scummvm_main(argc=1, argv=0x000000016fdff870) at
 main.cpp:604:27
     frame #20: main(argc=1, argv=0x000000016fdff870) at macosx-
 main.cpp:45:12
 }}}

 {{{
 frame #12: 0x00000001006979f8
 scummvm`AGS3::RunScriptFunctionIfExists(sci=0x0000000143a96080,
 tsname="game_start", numParam=0, params=0x0000000000000000) at
 script.cpp:374:3
    371
    372          // 100 is if Aborted (eg. because we are LoadAGSGame'ing)
    373          if ((toret != 0) && (toret != -2) && (toret != 100)) {
 -> 374                  quit_with_script_error(tsname);
    375          }
    376
    377          _G(post_script_cleanup_stack)++;
 (lldb) p toret
 (int) $0 = -6
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12729>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list