-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mac os] Mandelbulber2 crash due to missing libc++abi.1.dylib (possible fix) #930
Comments
However, there seem to be a few more packaging-related issues. First I noticed was the app complaining it could not find the fractal formula under Same issue when I tried enabling OpenCL. It looks as if the developer working on the application decided to start following the convention for the app package:
... but the one packaging the app still put the files directly under mandelbulber.app/ as was the case for v2.24. |
I have corrected file structure in the dmg files for Intel builds. I hope everything will be fine. Unfortunately I cannot test it, because I don't have any Mac with Intel CPU. |
Wow, that's fast. I just installed it, it opens and runs fine as far as I can see, though I can test it more thoroughly tomorrow.
but that's not a big deal. Thanks 👍 |
Great! Thanks for the feedback. Which version did you tried version compiled with xcode 12 or 14? |
That was the latest one for v14, mandelbulber2-macOS-2.28-1-xcode14-intel.dmg |
I just tried mandelbulber2-macOS-2.28-1-xcode14-intel.dmg on my work iMac as well and there it did not work.
and then it worked again. I suppose it worked on my laptop because I had |
System information (version)
Detailed description
I've seen several other tickets relating to this issue for the last two (or maybe more) versions of Mandelbulber2.
I tried installing the current version v2.28 yesterday on an iMac running Monterey (12.4) and could not get it to work with a suggestion I read in one of the related tickets: to manually copy libc++abi.1.dylib to mandelbulber2.app/Contents/Frameworks. Since I did not have that file anywhere on that computer I tried with one I found in another Github repository, but that didn't work either.
Today I tried installing v2.28 on my laptop. That has a (still) working v2.24, but I had the same immediate crash with v2.28.
The crash report says:
With things like Frameworks/../ and the duplicate entries removed the search path comes down to:
Directory
/Applications/mandelbulber2.app/Contents/lib/
does not exist in the .app package, and neither/usr/lib/
nor/usr/local/lib/
have a copy of libc++abi.1.dylib, which I suppose depends on what happens to be installed on your machine.I did happen to have llvm installed (homebrew, I think it came with Android Studio), but that was
v13.0.something
- and unfortunately,brew upgrade llvm
gave me/usr/local/Cellar/llvm/14.0.6_1
, not/usr/local/Cellar/llvm/14.0.6
.So I copied
/usr/local/Cellar/llvm/14.0.6_1/lib/libc++abi.1.dylib
( a simlink to-> libc++abi.1.0.dylib) to/Applications/mandelbulber2.app/Contents/Frameworks/
and that did work.This makes sense, because that file WAS available in v2.24.
I'll admit right away that I don't know that much about packaging an app for Mac OS, but it looks as if you will only need to add libc++abi.1.0.dylib to
/Applications/mandelbulber2.app/Contents/Frameworks/
to make the app work for everyone (including those who don't happen to have the DYLIB installed by another app).Steps to reproduce
(whichever one applies)
start mandelbulber2.app, watch it crash
$> mv temp-libc++abi.1.dylib /Applications/mandelbulber2.app/Contents/Frameworks/libc++abi.1.dylib
start mandelbulber2.app, watch it not crash
and don't forget to revert the above name changes 😇
I hope this helps someone!
The text was updated successfully, but these errors were encountered: