Opened 5 days ago

Last modified 5 days ago

#13603 new defect

LAUNCHER: Crash in detection plugin (Add game and start certain games)

Reported by: raziel- Owned by:
Priority: normal Component: Common
Version: Keywords: Big Endian, PPC, plugins
Cc: Game:

Description

ScummVM 2.7.0git (Jun 20 2022 22:48:25)
Features compiled in: Vorbis FLAC MP3 RGB zLib MPEG2 Theora AAC A/52 FreeType2 FriBiDi JPEG PNG GIF cloud (servers, local) TinyGL OpenGL (with shaders)

I get a crash when i try to "Add gme" from launcher.
I can browse to and choose the directory to where it should look for a supported game, but as soon as i click on "Choose" it will crash in the same place everytime (see crashlog).

I tested with a full build (with and without unsupported engines).

I also get a crash when starting certain games now (e.g. Myst 3), which also seem to point to the detection plugin.

It seems to be either related to the size of detection plugin (a test with only the agi engine built (both engine and detection plugin) did not trigger a crash, or certain engines (but it's tedious and time consuming to only build certain engines into the dection plugin...so it may take some time to find out if there are engine related issues (Myst3 engine would be a good starting point).

In the meantime, if anyone can make anything from the crashlog, please, do speak up.

Thank you

nb: it would be easy to simply switch to static detection (because that still works fine), but that would only hide the issue which, for sure, will bite me later on.

AmigOS4 - PPC - SDL2 - BE - plugins
gcc (adtools build 11.3.0) 11.3.0

Attachments (1)

Crashlog_scummvm_2022-06-04_05-49-30.txt (42.4 KB ) - added by raziel- 5 days ago.

Download all attachments as: .zip

Change History (2)

comment:1 by raziel-, 5 days ago

Yep, the bug is definitely size-based regarding the detection.plugin.

Myst3 runs perfectly fine, as do other games (even AGS games show up with a 50/50 chance) with only certain engines built into detection.plugin (f.e. AGS, Myst3, Scumm)

A sized-based bug in the detection.plugin would also explain my random crashes on consecutive starts of scummvm (after closing it at least one time)

I have lots of free ram available btw, so that can't be it.
I'm suspecting a list, that might be created from detection.plugin on-the-fly to look up known/unknown/supported games, causes some mischief in the background (if too big)...but that is, of course, pure guess-work.

Maybe someone has an idea?
Please?

Note: See TracTickets for help on using tickets.