Aegisub icon indicating copy to clipboard operation
Aegisub copied to clipboard

How can I run Aegisub on M1?

Open Animenosekai opened this issue 4 years ago β€’ 15 comments

I just came across your fork and wanted to try it out because the upstream repo isn't maintained anymore.

I'm currently on Apple Silicon and wish to run Aegisub.

The thing is that I tried running r9178, r9198, the GitHub Actions artifact and the latest release version through Rosetta but didn't seem to work, crashing right when I try to open it:

Process:               aegisub [61684]
Path:                  /Applications/Aegisub.app/Contents/MacOS/aegisub
Identifier:            com.aegisub.aegisub
Version:               9178-dev-ec89ce941 (1)
Code Type:             X86-64 (Translated)
Parent Process:        ??? [1]
Responsible:           aegisub [61684]
User ID:               501

Date/Time:             2021-08-04 02:50:35.782 +0200
OS Version:            macOS 11.2.3 (20D91)
Report Version:        12
Anonymous UUID:        2F73CD71-04B2-8CDC-C36A-5B584B294C8A

Sleep/Wake UUID:       8887130F-1334-478C-8071-66A805850E0B

Time Awake Since Boot: 640000 seconds
Time Since Wake:       20000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.Metal.DeviceDispatch

Exception Type:        EXC_BAD_INSTRUCTION (SIGABRT)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[NSAlert runModal] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.)'
BUG IN CLIENT OF LIBDISPATCH: trying to lock recursively
abort() called
terminating with uncaught exception of type NSException

[... long traceback ...]

I don't really care if it runs through Rosetta or natively (just saw #77 but Rosetta doesn't seem to work for me? Maybe I'm doing something wrong?)

Thank you in advance

Animenosekai avatar Aug 04 '21 01:08 Animenosekai

Reopen works for me. Have you tried doing so?

hthm00 avatar Aug 05 '21 17:08 hthm00

@hthm00 Reopen works for me. Have you tried doing so?

Oh, when the crash report comes? Yea I tried, but it doesn't work, keeps crashing

Animenosekai avatar Aug 06 '21 15:08 Animenosekai

Hmm, how about deleting this folder ~/Library/Application Support/Aegisub Then open Aegisub, when it crashes, hit Reopen

hthm00 avatar Aug 12 '21 23:08 hthm00

Hmm, how about deleting this folder ~/Library/Application Support/Aegisub Then open Aegisub, when it crashes, hit Reopen

Still crashing...

Here is the message from hitting Reopen about 3 times

Process:               aegisub [49195]
Path:                  /Applications/Aegisub.app/Contents/MacOS/aegisub
Identifier:            com.aegisub.aegisub
Version:               9198-dev-4df5f61a5 (1)
Code Type:             X86-64 (Translated)
Parent Process:        ??? [1]
Responsible:           aegisub [49195]
User ID:               501

Date/Time:             2021-08-14 20:18:31.433 +0200
OS Version:            macOS 11.2.3 (20D91)
Report Version:        12
Anonymous UUID:        2F73CD71-04B2-8CDC-C36A-5B584B294C8A

Sleep/Wake UUID:       5F3F624F-E58E-420B-8B88-4511273F7A17

Time Awake Since Boot: 1100000 seconds
Time Since Wake:       4900 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.Metal.DeviceDispatch

Exception Type:        EXC_BAD_INSTRUCTION (SIGABRT)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[NSAlert runModal] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.)'
BUG IN CLIENT OF LIBDISPATCH: trying to lock recursively
abort() called
terminating with uncaught exception of type NSException
[...]

Animenosekai avatar Aug 14 '21 18:08 Animenosekai

I'm having this same issue on an M1 Mac Mini -- Aegisub 3.3.2 starts to launch, bounces a couple times in the dock, and then dies.

I was happy to find this fork, since it looks like the main Aegisub project has been abandoned, so fingers crossed that this can be figured out.

djwudi avatar Sep 10 '21 23:09 djwudi

I'm having this same issue on an M1 Mac Mini -- Aegisub 3.3.2 starts to launch, bounces a couple times in the dock, and then dies.

I was happy to find this fork, since it looks like the main Aegisub project has been abandoned, so fingers crossed that this can be figured out.

Yea that's exactly what happens to me... Still having my fingers crossed 🀞

Animenosekai avatar Sep 11 '21 10:09 Animenosekai

I'm currently experiencing this on macOS 12.0.1. Reopening worked for me under macOS 11, but it keeps crashing for me under 12 even when I reopen.

codeman38 avatar Oct 31 '21 18:10 codeman38

I provided a bit more info in my issue above (which was a duplicate, so I closed it, whoops).

Really hoping this can be fixed!! Weirdly the "official" 3.2.2 release still works (…why?!) – but of course it's from 2014, and buggy and unstable…

Edit: @XStylus' comment https://github.com/wangqr/Aegisub/issues/77#issuecomment-909813623 points out the r8942 build at http://plorkyeran.com/aegisub/ does work on M1 Macs – it's from 2018, so a bit better than the 2014 one at least (no dark mode though, ha).

frozenpandaman avatar Nov 08 '21 16:11 frozenpandaman

Compiling all the posts about this, in case it's helpful:

https://github.com/wangqr/Aegisub/issues/117 – How can I run Aegisub on M1? https://github.com/wangqr/Aegisub/issues/77 – Universal Binary for macOS 11 https://github.com/wangqr/Aegisub/issues/104 – Tips for building under macOS https://github.com/wangqr/Aegisub/issues/124 – Crashing on M1 Macs https://github.com/wangqr/Aegisub/issues/97 – macOS m1 chip crashes directly when opened and does not work https://github.com/Aegisub/Aegisub/issues/256 – Is it possble for a Apple Silicon native build? https://github.com/TypesettingTools/Aegisub/pull/138 – Mac dmg build https://github.com/TypesettingTools/Aegisub/issues/145 – [macOS] [M1] Build fails https://github.com/Ristellise/AegisubDC/issues/39 – macOS support?

frozenpandaman avatar Nov 08 '21 17:11 frozenpandaman

Regarding this, I've read a Stack Overflow's article that try to answer how to detect the architecture and build the target. The related source is here: https://github.com/axr/solar-cmake/blob/master/TargetArch.cmake . Hope this can help you. CC @wangqr

WhiredPlanck avatar Dec 18 '21 14:12 WhiredPlanck

Edit: @XStylus' comment #77 (comment) points out the r8942 build at http://plorkyeran.com/aegisub/ does work on M1 Macs – it's from 2018, so a bit better than the 2014 one at least (no dark mode though, ha).

This build does work for me πŸ‘

Animenosekai avatar Dec 18 '21 17:12 Animenosekai

In case it helps anyone:

https://gist.github.com/frozenpandaman/92a84cd2ba690bb2399afd04e695bf8c

frozenpandaman avatar Dec 23 '21 01:12 frozenpandaman

I dunno what changed, but wangqr's build of Aegisub 3.3.2 and r9198 appear to be running (or at least launching) after an update to MacOS 12.3.

I have not performed any exhaustive testing beyond just launching the program as of yet.

XStylus avatar Mar 17 '22 04:03 XStylus

Can confirm what XStylus reports - wangqr's build works for me now after upgrading to macOS 12.3.

codeman38 avatar Mar 19 '22 01:03 codeman38

@XStylus @codeman38 Thanks! Huh, that's odd – works for me too. I really do wonder what changed. Wonder if that means the TypesettingTools builds will work too. I'll make a note of this in my Gist as well.

frozenpandaman avatar Mar 20 '22 08:03 frozenpandaman