Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#11505 closed defect (fixed)

3DS: Latest Nightlies Crash on Game Launch

Reported by: MarioKartFan Owned by: bgK
Priority: normal Component: --Unset--
Version: Keywords:
Cc: Game:

Description

Testing the last few nightly builds for the 3DS, I receive an ARM11 Translation Error as soon as I launch a game. This happens with a fresh install and a fresh ini file.

ARM11 Dump attached.

Attachments (1)

crash_dump_00000029.dmp (196 bytes ) - added by MarioKartFan 4 years ago.

Download all attachments as: .zip

Change History (5)

by MarioKartFan, 4 years ago

Attachment: crash_dump_00000029.dmp added

comment:1 by bgK, 4 years ago

Hi,

Which games are you testing with ?

Most games are working for me. However I've noticed a crash with the Scumm engine games introduced by commit:

commit 985ccfa8dff9560af7f38a41368f82879684d55d (refs/bisect/bad)
Author: mataniko
Date:   Sun May 3 17:25:30 2020 -0400

    SCUMM: Fix MM NES dark rooms and flashlight
    Now that the palette swap hack is gone, the dark room and flashlight rendered incorrectly.

I'll investigate the exact cause of the crash later. Unless somebody familiar with the Scumm engine beats me to it.

Last edited 4 years ago by Mataniko (previous) (diff)

comment:2 by bgK, 4 years ago

The issue is caused by allocating a very large variable on the stack, resulting in stack overflow on the 3DS:
https://github.com/scummvm/scummvm/blob/985ccfa8dff9560af7f38a41368f82879684d55d/engines/scumm/gfx.cpp#L644

Seems easy to fix, though I have no idea how to test this case.

comment:3 by MarioKartFan, 4 years ago

I’m happy to test any commits you push, although I’m guessing that’s not what you mean!

comment:4 by bgK, 4 years ago

Owner: set to bgK
Resolution: fixed
Status: newclosed

This is fixed by commit c777d66.

Note: See TracTickets for help on using tickets.