ScummVM 2.1 - macOS crashes

Ask for help with ScummVM problems

Moderator: ScummVM Team

User avatar
almeath
Posts: 180
Joined: Fri Mar 14, 2008 1:40 pm
Location: Australia

ScummVM 2.1 - macOS crashes

Post by almeath »

Is anyone using macOS Mojave 10.14.6 experiencing crashes in ScummVM 2.1 when switching between windowed and fullscreen mode?

I am getting various "segmentation fault" crashes when switching with the option-return keyboard command - usually when going from windowed mode back into fullscreen.
User avatar
almeath
Posts: 180
Joined: Fri Mar 14, 2008 1:40 pm
Location: Australia

Re: ScummVM 2.1 - macOS crashes

Post by almeath »

I also tested in Catalina (fresh installation) and got similar segmentation faults, partial output below:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [693]
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

There was an issue with the original 2.1.0 macOS release which has now been fixed. You can see some details on https://bugs.scummvm.org/ticket/11197. If you download again from https://www.scummvm.org/downloads/#stable it should now work.
User avatar
almeath
Posts: 180
Joined: Fri Mar 14, 2008 1:40 pm
Location: Australia

Re: ScummVM 2.1 - macOS crashes

Post by almeath »

Confirming it works now. Thanks.
SnakeCoils
Posts: 3
Joined: Wed Oct 16, 2019 8:17 pm

Re: ScummVM 2.1 - macOS crashes

Post by SnakeCoils »

Not really a crash but there are some serious troubles with the OSX PPC version.
The first oddity is the DMG distribution image disk that contains an executable (bundle) without the usual green "S" icon, completely blank.
The executable itself does nothing, I can only see the title "ScummVM" in the top menu bar and the mouse pointer disappear (like it was behind the backdrop).
No menus, no dialog window, nothing. Also I can't quit the application, the only way it is to force the task to be killed through the usual ALT+CMD+ESC key combination.
I am on a PowerMac G4 MDD with latest OSX 10.5.8 installed, Radeon X800XT and 2 Gig of System memory.
I have also tried to built the executable (bundle) from source with identical results, no icon, no windows, nothing.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

The PPC version becomes harder to generate with each release, at least for me, and I almost didn't make one for this release. The only system I have to test it is a Mac OS X 10.6 intel iMac, which means it uses Rosetta to run the PPC executable. This is far from ideal. This latest release works properly for me (and I do have the icon), but I am not really surprised that others have issue with it.
SnakeCoils
Posts: 3
Joined: Wed Oct 16, 2019 8:17 pm

Re: ScummVM 2.1 - macOS crashes

Post by SnakeCoils »

Most of the missing MacPorts packages for PPC are (unofficially) available thanks to a bunch of enthusiast that still support this platform.
For example SDL2 and Flac (needed for ScummVM build) exists natively for OSX PPC but not so up to date, SDL2 is hold on 2.0.3 (most recent is 2.0.10) and flac to 1.3.2 (latest 1.3.3) thanks to a developer named "Kencu" and his unvaluable work in PPC porting to old OSX systems named "TigerPorts", the link to the repository is the following:

https://github.com/kencu/TigerPorts

I prefer to compile the PPC binaries natively on PowerMacs instead of cross-compiling on intel Macs because the results are more predictable on the real hardware. I can provide some support for OSX PPC version of ScummVM with debug reports but since I am not a programmer I need some hints on how to proceed. I have already done this in the past for other projects like the Amiga emulator FS-UAE ported to PPC Macs so I can borrow some spare time to help in mantaining this wonderful project.
I am addicted to adventure games since the very first Apple II releases so I followed ScummVM almost since the very first day and even if I have a modern MacPro for my everyday activity I like to play vintage games on vintage hardware :-)
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

I am wondering if with the software getting bigger with each release we might have hit some kind of limits in the executable size or stack memory usage on PPC macs. One thing you could try is to compile ScummVM with just one (or a few engines) and see if the application then opens properly (for example use the --disable-all-engines --enable-engines=scumm,scumm_7_8,he,sci,sci32 flags with configure to enable only the scumm and sci engines).
Richtw
Posts: 2
Joined: Sat Nov 23, 2019 1:01 am

Re: ScummVM 2.1 - macOS crashes

Post by Richtw »

I am using an iMac g4, with a 1.0 ghz cpu, 2 gb ram and OSX 104. I am also seeing the same behavior - no icon and it won't run. I have tried both the stable and nightly builds.

I would also be willing to help out with any testing or activities to keep this version going.
digitall
ScummVM Developer
Posts: 1177
Joined: Thu Aug 02, 2012 1:40 pm

Re: ScummVM 2.1 - macOS crashes

Post by digitall »

Richtw: Not sure what is going on, but you would need to run the latest nightly under a debugger such as https://lldb.llvm.org/ and then get a backtrace if it is an OS level crash or at least some level of debug information to help pinpoint what is causing the issue.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

SnakeColls, Richtw, I think I may have fixed the issues with the PPC version and I have generated a test version. If you try it please let me know if it works.
You can get the version from https://www.dropbox.com/s/n90ws6k7l2quv ... c.dmg?dl=0
nozomi
Posts: 56
Joined: Tue Nov 01, 2005 9:28 pm

Re: ScummVM 2.1 - macOS crashes

Post by nozomi »

I tested your dropbox version and it does now work on my G5 desktop. But...the "S" icon for the app is still missing. Strangely, the icon does appear in the "properties" window when viewing the applications properties.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

Il have edited the link above with a version that use a new icon which I think should work.
nozomi
Posts: 56
Joined: Tue Nov 01, 2005 9:28 pm

Re: ScummVM 2.1 - macOS crashes

Post by nozomi »

Just tested and the icon now works as well. Any chance you can upload an official 2.1.1 build?
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: ScummVM 2.1 - macOS crashes

Post by criezy »

nozomi wrote: Sun Mar 29, 2020 9:33 pm Any chance you can upload an official 2.1.1 build?
We just released an official 2.1.2 build for PPC macs. You can find it on our Downloads page.
Post Reply