-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
PackageCompiler on GLMakie --> display(fig) --> segfault 11 on macos Sonoma 14.6.1 #4571
Comments
Looks like a package compiler / Julia issue to me |
Looks a bit like this issue: JuliaImGui/CImGui.jl#146 I see that the package creates the |
Oh, didn't look at the code... |
BTW, why is creating a |
Because it gets run at compile time, and will get baked into the shared library with all their pointers etc. This will include references to GPU memory and c libraries, tasks etc, which all won't be valid anymore when running the binary. |
Ahh I see, thanks. |
Thank you for the explanation! This does fix it. Here's the refactoring to make it work: |
I wrote a toy app that let's you zoom on the Mandelbrot set. It is at https://github.com/johnrfrank/MandelbrotZoom/
and you can run the app like this:
That works just fine. It works because it calls
wait(display(fig))
but!
If you compile it like this:
then you get an executable that almost works... it prints out messages up to where it calls
display(fig)
and then it does this:version of Makie and GLMakie
[ee78f7c6] Makie v0.21.15
[e9467ef8] GLMakie v0.10.15
can you reproduce the bug with a fresh environment ? (
]activate --temp; add Makie
)Yes, the segfault happens after compiling with PackageCompiler
MacBook 2021 Apple M1 Max
macos Sonoma 14.6.1
GLFW.GetVersionString()
"3.4.0 Cocoa NSGL Null EGL OSMesa monotonic dynamic"
The text was updated successfully, but these errors were encountered: