Page 1 of 2
BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 6:59 am
by .maxx
Hey guy’s,
I can‘t get 3.4.0 to work on M1 Mac mini with macOS 11.6.
I downloaded the newest sabnzbd 3.4.0. Quit 3.3.1 and double clicked on 3.4.0 to launch it.
But nothing happens. No sabnzbd in activity monitor.
Tried to delete the Sabnzbd folder in application support but still no luck.
Please help.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 7:03 am
by HorseCalledHorse
I think something has changed with the MacOS build between 3.4.0RC1 and 3.4.0 final. I'll open a new thread for this, but support for older operating systems (I run 10.12.6) has also disappeared. I'm guessing the app has been built a different way.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 7:17 am
by sander
Any logging or messages?
What if you open a terminal and start SABnzbd from there? I guess the SABnzbd executable might be in ~/Library/Application Support/SABnzbd/
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 9:37 am
by .maxx
Code: Select all
Last login: Sat Sep 18 09:23:40 on console
mediencenter@Mac-mini ~ % /Applications/SABnzbd.app/Contents/MacOS/SABnzbd
[25667] Error loading Python lib '/Applications/SABnzbd.app/Contents/MacOS/Python': dlopen: dlopen(/Applications/SABnzbd.app/Contents/MacOS/Python, 10): no suitable image found. Did find:
/Applications/SABnzbd.app/Contents/MacOS/Python: mach-o, but wrong architecture
/Applications/SABnzbd.app/Contents/MacOS/Python: stat() failed with errno=1
mediencenter@Mac-mini ~ %
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 11:04 am
by sander
Code: Select all
'/Applications/SABnzbd.app/Contents/MacOS/Python' .... mach-o, but wrong architecture
As you're on M1, I guess the python binary (included by the SABnzbd Mac package) hasn't got the M1 binary, but only the x86 binary
Assuming MacOS has the "file" command, can you this:
Code: Select all
file Applications/SABnzbd.app/Contents/MacOS/Python
If possible, can you also do it on an earlier version of SAB (3.4.0 RC1 or 3.3.1) that did work on your M1?
PS:
All this is based on assumpation SABnzbd did provide a M1 binary earlier on. So dual architecture binary: x86 and M1.
And having said that: can you run the SABnzbd 3.4.0 executable with the M1 x86 emulator? AFAIK you can select that from the Mac GUI.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 11:32 am
by .maxx
3.4.0
Code: Select all
Last login: Mon Sep 20 18:26:59 on ttys000
mediencenter@Mac-mini ~ % file /Applications/SABnzbd.app/Contents/MacOS/Python
/Applications/SABnzbd.app/Contents/MacOS/Python: Mach-O 64-bit dynamically linked shared library x86_64
mediencenter@Mac-mini ~ %
3.3.1
Code: Select all
Last login: Mon Sep 20 18:27:35 on ttys000
mediencenter@Mac-mini ~ % file /Applications/SABnzbd.app/Contents/MacOS/Python
/Applications/SABnzbd.app/Contents/MacOS/Python: Mach-O 64-bit dynamically linked shared library x86_64
mediencenter@Mac-mini ~ %
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 11:40 am
by sander
And my PS?
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 11:59 am
by sander
On my Linux: dmg2img to unpack .dmg, then mount resulting .img:
3.3.1:
Code: Select all
sander@witte2004:/media/sander/SABnzbd-3.3.1/SABnzbd.app/Contents$ file MacOS/SABnzbd
MacOS/SABnzbd: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
sander@witte2004:/media/sander/SABnzbd-3.3.1/SABnzbd.app/Contents$ file MacOS/Python
MacOS/Python: Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
3.4.0RC1
Code: Select all
sander@witte2004:/media/sander/SABnzbd-3.4.0RC1/SABnzbd.app/Contents$ file MacOS/Python
MacOS/Python: Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
sander@witte2004:/media/sander/SABnzbd-3.4.0RC1/SABnzbd.app/Contents$ file MacOS/SABnzbd
MacOS/SABnzbd: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
So: x86_64 only. So M1 Mac must use the x86 emulator.
But then:
3.4.0:
Code: Select all
sander@witte2004:/media/sander/SABnzbd-3.4.0/SABnzbd.app/Contents$ file ./MacOS/SABnzbd
./MacOS/SABnzbd: Mach-O universal binary with 2 architectures:
[x86_64:Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>]
[arm64:Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>]
sander@witte2004:/media/sander/SABnzbd-3.4.0/SABnzbd.app/Contents$ file ./MacOS/Python
./MacOS/Python: Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
See that? The SABnzbd is dual-binary: also arm64 (but Python is not)
So ... my assumption: the SABnzbd binary is arm64, so MacOS expects the python also to be that ... which is not the case => mach-o error.
This must be a problem/bug in the SABnzbd building process.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 20th, 2021, 3:17 pm
by safihre
Will work on this..
Version 3.4.0 will not run on M1 macOS machines.
Posted: September 20th, 2021, 5:23 pm
by zer0future
Hello, I tried to update to the latest release however once I attempt to run the app it will not launch. I receive the prompt about allowing software downloaded from the internet to run and choose to allow but SAB doesn't actually launch. I rebooted and tried to download the DMG again but same issue. I attempted to run it on an M1 Mac mini and M1 MacBook air. Version 3.4.0 installs and runs normally on a Windows 10 machine however. I posted about this on the usenet subreddit over on reddit and someone replied that the latest update wouldn't run on linux also but I can not personally verify that. Thank you.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 21st, 2021, 4:51 am
by safihre
Could you try this version?
https://github.com/sabnzbd/sabnzbd/acti ... 1255094244
You'll need a Github account.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 21st, 2021, 7:52 am
by brightaxis
safihre wrote: ↑September 21st, 2021, 4:51 am
Could you try this version?
SNIP
You'll need a Github account.
Does not launch for me after install - error happened today and I'm glad I'm not the only one facing this.
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 21st, 2021, 8:34 am
by .maxx
Found a workaround.
Right Click on the app -> Information-> activate Rosetta emulation
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 21st, 2021, 9:20 am
by brightaxis
.maxx wrote: ↑September 21st, 2021, 8:34 am
Found a workaround.
Right Click on the app -> Information-> activate Rosetta emulation
Brilliant, worked. I wonder what changed between the updates?
Re: BUG - 3.4.0 doesn’t start on macOS 11.6 on M1 Mac Mini
Posted: September 21st, 2021, 9:38 am
by sander
.maxx wrote: ↑September 21st, 2021, 8:34 am
Found a workaround.
Right Click on the app -> Information-> activate Rosetta emulation
Ah, I think you're then
forcing Rosetta emulation. So that the semi-dual SAB binary does not confuse MacOS anymore.
Nice.