Opened 2 months ago

Last modified 2 months ago

#15013 new defect

COMMON: Invalid save path leads to crash/debugger coming up — at Version 2

Reported by: raziel- Owned by:
Priority: normal Component: Common
Version: Keywords: timestamps, crash
Cc: Game:

Description (last modified by raziel-)

ScummVM 2.9.0git (Mar 11 2024 21:02:00)
Using SDL backend with SDL 2.30.1
Features compiled in: Vorbis MP3 RGB zLib MPEG2 MikMod Theora VPX AAC A/52 FreeType2 FriBiDi JPEG PNG GIF cloud (servers, local) ENet SDL2 TinyGL OpenGL (with shaders)

Having a missing or invalid savepath set leads to a crash and/or the debugger coming up.

Case a:
Windows version
Setting the savepath manually to "H:" (a partition that doesn't exist) will bring up the debugger (on starting the game), telling me
ERROR: Invalid attempt to create file - /saves/goldenwake-prog.agw!

Case b:
AmigaOS version
Leaving the savepath at default (saves/) without actually having such subdirectory (e.g. on a completely fresh start with no .ini file present) will lead to a crash during start of the game, because "timestamps" could not be written (see crashlog)

Maybe the easiest solution would be to silently create the subdirectory the game asks for and move on (maybe with a debug warning about the missing directory)?

A Golden Wake (English)

AmigAOS4 - BE - SDL - PPC
gcc (adtools build 11.3.0) 11.3.0

Change History (4)

by raziel-, 2 months ago

Attachment: timestamps crash.txt added

comment:1 by raziel-, 2 months ago

added two logs, one is the Grim Reaper log from AmigaOS4, the "timestamps crash.txt" is the serial log, which "may" hold more information.

comment:2 by raziel-, 2 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.