Open magnetophon opened 3 years ago
Hmmm, when I've run into this issue on Linux before, it's been because one (or more) of the dependencies was missing. For reference, these are the dependencies that I use for making the Linux installer.
Beyond that, would it be possible to get a stacktrace to see where the failure might be occuring?
I have these dependencies:
alsa-lib
, curl
, freeglut
, freetype
, libGL
, libXcursor
, libXext
, libXinerama
, libXrandr
, libjack2
, pkg-config
, python3
The only ones not explicitly mentioned are libc6
, libgcc-s1
and libstdc++6
, but I assume nix provides these as part of stdenv
, otherwise it wouldn't build at all. Does that sound correct to you?
A stacktrace can be troublesome on NixOS, I hope we can fix this without one...
Hmmm, I noticed that Jack wasn't part of the dependencies... i wonder if that could be the problem. As a test, would it be possible to try compile without Jack? For now, that can be done by settings JUCE_JACK=0
in the CMake configuration.
Yes it is: libjack2
.
Do you still want me to try without jack?
Sure, could you tell me exactly what to change?
Preferably in the form of a few sed
commands or a diff, but just the code would be fine too.
Actually, here's a branch with the print statements added: https://github.com/jatinchowdhury18/KlonCentaur/compare/nix-os-debug
Definitely let me know what you find!
Thanks!
Unfortunately none of the print statements are reached, or at least no output other than the segfault is printed to the terminal.
To make sure I didn't mix anything up, I opened the binary in vim, and it indeed contains the string Constructing ChowCentaur editor...
.
On NixOS, the standalone version of this plugin segfsaults directly after starting, without showing a window. The terminal shows:
Also see: https://github.com/NixOS/nixpkgs/pull/136761?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDIzNzkzNTIwMjY6NzY0NTcxMQ%3D%3D¬ifications_query=is%3Aunread#issuecomment-921937253