[Scummvm-tracker] [ScummVM :: Bugs] #15013: COMMON: Invalid save path leads to crash/debugger coming up

ScummVM :: Bugs trac at scummvm.org
Tue Mar 12 06:06:02 UTC 2024


#15013: COMMON: Invalid save path leads to crash/debugger coming up
------------------------------+---------------------
Reporter:  raziel-            |       Owner:  (none)
    Type:  defect             |      Status:  new
Priority:  normal             |   Component:  Common
 Version:                     |  Resolution:
Keywords:  timestamps, crash  |        Game:
------------------------------+---------------------
Description changed by raziel-:

Old description:

> ScummVM 2.9.0git (Mar 10 2024 14:29:23)
> Using SDL backend with SDL 2.30.0
> Features compiled in: Vorbis FLAC 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

New description:

 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

--
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/15013#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list