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

Stable release not running on Raspberry Pi #559

Closed
riban-bw opened this issue Jul 27, 2023 · 8 comments
Closed

Stable release not running on Raspberry Pi #559

riban-bw opened this issue Jul 27, 2023 · 8 comments

Comments

@riban-bw
Copy link

When I run Cardinal or CardinalNative I get the following errors:

[0.001 info CardinalCommon.cpp:543 Initializer] Cardinal Standalone 23.07, compatible with Rack version 2.3.0
[0.001 info CardinalCommon.cpp:544 Initializer] Linux 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64
[0.001 info CardinalCommon.cpp:545 Initializer] Binary filename: 
[0.001 info CardinalCommon.cpp:547 Initializer] Bundle path: (null)
[0.001 info CardinalCommon.cpp:553 Initializer] System directory: /usr/share/cardinal
[0.001 info CardinalCommon.cpp:554 Initializer] User directory: /home/dietpi/Documents/Cardinal
[0.001 info CardinalCommon.cpp:555 Initializer] Template patch: /home/dietpi/Documents/Cardinal/templates/native.vcv
[0.002 info CardinalCommon.cpp:556 Initializer] System template patch: /usr/share/cardinal/patches/templates/native.vcv
[0.002 info CardinalCommon.cpp:570 Initializer] Initializing plugins
[0.088 info CardinalCommon.cpp:573 Initializer] Initializing plugin browser DB
[0.099 info CardinalCommon.cpp:644 loadSettings] Loading settings
[0.099 info Rack/src/settings.cpp:512 load] Loading settings /home/dietpi/.config/Cardinal/native.json
[0.099 info CardinalCommon.cpp:596 Initializer] OSC Remote control is not enabled in this build
assertion failure: "world != nullptr" in file src/ApplicationPrivateData.cpp, line 67
Failed to create Pugl view, everything will fail!
Segmentation fault

I have tried with arm64 deb packages from kxstudio and also compiling from source. I am testing on a minimal debian based system:

  • Raspberry Pi 4
  • dietpi OS 8.19 based on Debian Bookworm

There may be missing dependencies (although I would have expected dpkg to have resolved these - unless some are inappropriately assumed). Maybe the error may point towards a clue as to the cause???

@falkTX
Copy link
Contributor

falkTX commented Jul 27, 2023

that is likely due to missing OpenGL support, you can try running in software mode like so:

env LIBGL_ALWAYS_SOFTWARE=1 CardinalNative

@riban-bw
Copy link
Author

Indeed - it was due to no xserver running. Obviously this is a bad state but maybe the application should detect this before seg faulting and ideally give a more useful warning!

@falkTX
Copy link
Contributor

falkTX commented Jul 27, 2023

Could be yes, but I dont have a way to reproduce this myself. I would have to purposefully break the graphics driver or something. if there is no x11/display, that is a different case.

@riban-bw
Copy link
Author

You can simulate this issue by running via ssh without X forwarding. (This is how I discovered it - my host had dropbear installed that was not allowing X forwarding. I installed openssh server to get X forwarding working.)

@falkTX
Copy link
Contributor

falkTX commented Jul 27, 2023

sure, but for that I can just use a VT and run Cardinal from there.
pushed something on dpf side already DISTRHO/DPF@072cc44

rebuilding cardinal on this PC and will see if it runs now.

Would be nice to be able to catch non-GL supported but still with X11/display running scenarios, so we would show a warning dialog for those cases.

@falkTX
Copy link
Contributor

falkTX commented Jul 27, 2023

ok confirmed a fix in 0ad791d

@falkTX falkTX closed this as completed Jul 27, 2023
@riban-bw
Copy link
Author

Cool! I will test when I can. It takes a looong time to compile. Cheers!

@falkTX
Copy link
Contributor

falkTX commented Jul 27, 2023

You can just wait for the github actions to build, typically they take around 1h. The builds there match the release binaries

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