Skip to content
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

standalone segfaults #37

Open
magnetophon opened this issue Sep 20, 2021 · 8 comments
Open

standalone segfaults #37

magnetophon opened this issue Sep 20, 2021 · 8 comments

Comments

@magnetophon
Copy link

On NixOS, the standalone version of this plugin segfsaults directly after starting, without showing a window.
The terminal shows:

ChowCentaur
[1]    533966 segmentation fault (core dumped)  ChowCentaur

Also see: https://github.com/NixOS/nixpkgs/pull/136761?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDIzNzkzNTIwMjY6NzY0NTcxMQ%3D%3D&notifications_query=is%3Aunread#issuecomment-921937253

@jatinchowdhury18
Copy link
Owner

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?

@magnetophon
Copy link
Author

magnetophon commented Sep 27, 2021

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...

@jatinchowdhury18
Copy link
Owner

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.

@magnetophon
Copy link
Author

Yes it is: libjack2.
Do you still want me to try without jack?

@jatinchowdhury18
Copy link
Owner

Oh yeah, I see I missed that when I read the list initially. Building without Jack probably won't make a different then.

Would it be possible to try adding a couple of "print" statements (for example, here and here) to see where the program gets to before is segfaults.

@magnetophon
Copy link
Author

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.

@jatinchowdhury18
Copy link
Owner

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!

@magnetophon
Copy link
Author

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants