-
Notifications
You must be signed in to change notification settings - Fork 32
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
Segfaulting on GLFW.CreateWindow with Julia v1.5.0 #201
Comments
I'm wary this might be a driver issue, just perplexed why a Julia version change triggers it. Maybe it's a side-effect of the bump from LLVM 8 to 9? |
I'm not able to reproduce on my Ubuntu 20.04 machine. I'll leave this open in case someone else experiences the same problem or has insight. |
Can you give some information about the the GPU? |
|
Ok, so this may be a Julia + AMD LLVM problem -.- |
so I've had a round trip and found that this problem does not occur on the same machine if I use Ubuntu 20.04.1. Ideally I would just migrate to that distro, but I have some other driver constraints. I tried reverting my original installation to CentOS 8.2 (standard instead of Steam), and got the same segfault again but with a little more information this time:
Looks like there is indeed some LLVM nonsense going on. |
Following up to say that I've tried: -compiling Julia without binary builder ...and neither seem to help with GLFW on Julia 1.5.0. The following DO work: -Running a simple compiled C test program using GLFW to launch a window. Would it be worth a shot to try Julia and/or Mesa drivers statically linked to LLVM? Would that even make a difference? Should I flag this as an issue on the JuliaLang repo? As far as I can tell my drivers are in tip top shape. I'm not sure exactly whats different about the drivers used in Ubuntu that make them immune to this issue 😟 |
Following up to say that I've FIXED this issue. The trick was to compile and install mesa drivers statically linked to LLVM. This wasn't a trivial thing to do, but if someone else runs into this problem, I'm happy to attempt to walk someone through the process (be aware it's not for the faint of heart) |
This issue can be closed now, but if someone finds themselves in a similar situation:. In addition: On CentOS/RHEL distros Using up to date versions of meson and ninja will also help. (you'll need a recent version of Python 3). In my case I had to build If all goes well, after a system reboot |
Isn't this a main Julia repo issue? |
Yes and no. Since in this case it's specific to how GLFW/OpenGL interacts with Julia I've left instructions that might prove useful to others in the future. However, the larger issue is indeed a main Julia one: Libraries that dynamically link to system LLVM under the hood can still cause problems despite the library renaming patch used by Julia (this is an old issue, but seems to still occur under certain circumstances nonetheless) |
I see, it might make sense to open an issue there to track it, unless there's r already one. |
No problems on Julia v1.4.2 but Julia v1.5.0 segfaults on calls to
GLFW.CreateWindow
. Tested using a clean build/environment in both cases. Distro was CentOS 8 Stream.The text was updated successfully, but these errors were encountered: