Opened 18 months ago

Last modified 2 weeks ago

#14747 pending defect (pending)

BACKENDS: HAIKU: ScummVM 2.7.1 build crashes when pressing "F5/F1" to open the menu on "Day of the Tentacle"

Reported by: reedlove Owned by: Begasus
Priority: normal Component: Ports
Version: Keywords: Haiku, DOTT, day_of_the_tentacle
Cc: Game: Day of the Tentacle

Description

Hi there.
So I was trying to play "Day of the Tentacle" using ScummVM 2.7.1 on the most up to date version of Haiku (R1/beta4 Revision hrev56578+93) and ScummVM crashes when I press F5/F1 to bring up the menu to save.

I have generated a report file of the crash and will attach it to this ticket.

Attachments (2)

ScummVM-1164-debug-12-12-2023-07-21-30.report (44.6 KB ) - added by reedlove 18 months ago.
ScummVM-2543-debug-31-12-2023-16-32-01.report (52.4 KB ) - added by reedlove 17 months ago.

Download all attachments as: .zip

Change History (11)

comment:1 by sev-, 18 months ago

Priority: highnormal
Summary: Haiku ScummVM 2.7.1 build crashes when pressing "F5/F1" to open the menu on "Day of the Tentacle"HAIKU: ScummVM 2.7.1 build crashes when pressing "F5/F1" to open the menu on "Day of the Tentacle"

comment:2 by sev-, 18 months ago

Summary: HAIKU: ScummVM 2.7.1 build crashes when pressing "F5/F1" to open the menu on "Day of the Tentacle"BACKENDS: HAIKU: ScummVM 2.7.1 build crashes when pressing "F5/F1" to open the menu on "Day of the Tentacle"

comment:3 by reedlove, 17 months ago

Still a problem with ScummVM 2.8.0 on Haiku R1/beta4 (Revision hrev56578+94) x86_64 with the latest updates as of 12/31/2023.
Attached is another report file.

Last edited 17 months ago by reedlove (previous) (diff)

comment:4 by dwatteau, 12 months ago

Owner: set to dwatteau
Resolution: assigned
Status: newpending

Hi, thanks for reporting this issue. I have a Haiku build environment sitting somewhere, so I'll try having a look at it.

comment:5 by dwatteau, 2 months ago

Component: Engine: SCUMMPorts
Owner: changed from dwatteau to Begasus
Resolution: assignedpending

Hi,

Well, I've lost too many hours with sudden runtime_loader errors on my Haiku VM, so I'll give up exploring this myself, for now.

@reedlove: Do you still experience this problem with scummvm-2.9.0-2 from HaikuPorts? It looks like they've added a tentative patch* for better savepath integration on Haiku. I can't confirm it, but I think it's very likely that the DOTT problem came from there as well (i.e. not an engine problem but a backend problem).

*: <https://github.com/haikuports/haikuports/commit/8126f6f5f55a2b92e9393fa44836e255ef3d4ee3>

@Begasus: Could you have a look at this, since you're more familiar with the environment? We might need that patch through a PR, if it does fix the issue and looks good to you. Thanks!

comment:6 by Begasus, 8 weeks ago

I have checked a demo from Rings World and F1 does seem to work when entering the first stage, if @reedlove could confirm 2.9.0-2 (with the patch from korli) works I can ask to upstream the patch.

The issue for that patch was reported at haikuports, where we keep track on issues like these: https://github.com/haikuports/haikuports/issues/11673

Couldn't attatch the image from the demo, so linking it here: https://0x0.st/8eI2.png

Last edited 8 weeks ago by Begasus (previous) (diff)

comment:7 by Begasus, 8 weeks ago

@dwatteau what kind of runtime_loader errors did you get for ScummVM on Haiku, I'm not seeing them here?

in reply to:  7 comment:8 by dwatteau, 8 weeks ago

OK thanks!

Replying to Begasus:

@dwatteau what kind of runtime_loader errors did you get for ScummVM on Haiku, I'm not seeing them here?

@Begasus: Well, that was my own build, not the HaikuPorts or official build.

It'd complain that libSDL2.so.foobar didn't exist, but it did exist in the default paths. When forcing it with LD_PRELOAD or LIBRARY_PATH, I'd get internal errors in some system libraries. I guess I just broke some part of the system for some reason, although it's a bit strange, because the VM was intentionally frozen on a working R1/beta2 (or beta3) environment where all previous builds were fine.

Then I tried to update to R1/beta5, just in case, following the official instructions, but then I hit other undocumented errors. I just gave up and deleted the VM. I'll start over from scratch when I have a bit more time for OS setup stuff.

Anyway, it's not important for the current ScummVM issue, don't worry. It just means that I don't have a working Haiku VM at the moment for this.

comment:9 by Begasus, 2 weeks ago

@dwatteau just looked at the announced new 2.9.1 release and checking the build.

Played around a bit in Mother Goose and saw that the default path looks correctly but isn't created automaticly, just asked on IRC at Libera chat, but no respons yet so I'm adding it here to the ticket.

Manualy setting this in the ScummVM GUI does work however and on the saves files are written to the location, but there must be a way to do this without user interference? (my skill lack the skills to find/hunt/fix that myself, but an indecation on where to look would be a good start).

Note: See TracTickets for help on using tickets.