Replies: 18 comments 7 replies
-
hm... Overall, you could accuse Debian of many things, but perhaps not releasing too soon. The main problem with the Debian universe is that it moves so damned slow. When I build opencpn on native Fedora which is way ahead of Debian, this does not happen. Likewise, Flatpak on Arch does not show these problems either; all this tested on RPi-4 or Orange Pi 5. Which boils down to that we need to look into this. |
Beta Was this translation helpful? Give feedback.
-
First of all: I can reproduce this on Rpi-4 Secondly: it's not like Wayland is something new. We have been living with Wayland since 2020, see for example #1166. It seems like this is some interaction between the OS and opencn. Next step would be to install vanilla Debian and try that. We already know that Bookworm on other platforms does nto exhibit this behaviour |
Beta Was this translation helpful? Give feedback.
-
You are right, wayland is stable in Ubuntu Jammy and opencpn 5.8.4 works ok there. It seems something wrong in the implementation in Raspberry OS bookworm. This is why I think we should wait some time. My next test is to force X11 into the Raspberry OS bookworm to see if everything falls back into place again. |
Beta Was this translation helpful? Give feedback.
-
Here is one interesting data point: On vanilla Bookworm/RPi-4 this issue seemingly does not exist. Ergo: I have tested opencpn 5.8 on Arch, Fedora-38, Debian-12 and Raspbian-12. Only raspbian is showing this error. My conclusion is that this is not a bug in opencpn, it's Raspbian which somehow have messed up things. Since this is not an opencpn bug: Can we agree to convert this to a discussion instead? EDIT: Add OS versions. |
Beta Was this translation helpful? Give feedback.
-
Late here, but as I was going to bed I sort of figured it out: it must be the window manager. Reason: this is the code which is most modified by the Raspbian team (yes, I don't really trust them...) And indeed: installing gnome on top of raspbian solves this problem, opencpn looks normal. This means that you should probably file a bug against Raspbian's xfce component which most likely is the culprit. Anyway, this is yet another sign that this is not an opencpn problem. |
Beta Was this translation helpful? Give feedback.
-
Reopening. We need @sailoog's input before either closing or converting to a discussion. |
Beta Was this translation helpful? Give feedback.
-
forced x11 in Raspberry OS bookworm and everything works again. yes, that makes sense, let's create a discussion of this. Learning about wayfire now... thanks |
Beta Was this translation helpful? Give feedback.
-
Done. Wayland or not, OpenCPN always interfaces to an X11 display server. In the wayland case, this is the x11 emulation layer. The important snippet is this one in ocpn_app.cpp:
Questions:
|
Beta Was this translation helpful? Give feedback.
-
https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ |
Beta Was this translation helpful? Give feedback.
-
Reading @tkurki 's link once again, not the first time. @sailoog : Now also they recommend TigerVNC. I told you so ;) |
Beta Was this translation helpful? Give feedback.
-
In real life: |
Beta Was this translation helpful? Give feedback.
-
Answering my self:
It uses xorg/X11 instead of Wayfire/Wayland.
Because the Wayfire x11 emulation is broken. It does work if using Gnome i. e., the mutter compositor. |
Beta Was this translation helpful? Give feedback.
-
hi, signed in to say I'm experiencing these issues (crashes) on RPi4, Bookworm, running X11 not Wayland. The crash is in openCPN code. it happens with and without a real monitor connected, and with and without VNC session. I'm trying to build a navigation demo kiosk on a WWII museum ship. I can try the openGL=0 workaround |
Beta Was this translation helpful? Give feedback.
-
If you have time, it would be great if you could help us track down your crashes. The discussion here is so far not so much about crashes as weird display issues using the Raspbian wayland environment. The first question is, as you say, if this is about the graphics driver. This could indeed be checked by disabling OpenGL (there are many ways to do that), and check if it still crashes. If it does, the next question is if this is about plugins. The easiest way to check this is to use the dialog which is visible when restarting OpenCPN after a crash. It says something like Do you want to run in safe mode without plugins and other possibly problematic features . The default answer is No, but by pressing the Yes button instead you will be running without both plugins and opengl It is also possible to use the Could you please try this and report back? |
Beta Was this translation helpful? Give feedback.
-
hi @leamas , thanks for your reply. sorry for the histrionic word "crash" but that's what I am seeing. main window isn't drawn, and program quits with a log message:
so I restarted and followed your suggestion of safe mode. the main window comes up but is unuseable, huge lag in redrawing (must be openGL=0). and, missing the AIS and a couple other plugins defeats my purpose of the display kiosk. exact same OpenCPN version and plugins work fine on another rpi4 running Bulldozer, previous rpi os. but I compiled native there, not running flatpak. I'm going to uninstall the flatpak and compile native on this new Bookworm image |
Beta Was this translation helpful? Give feedback.
-
Your system must be broken somehow. We have no reports which resembles your symptoms, neither for Flatpak nor the native package.
Indeed. OTOH, opencpn does not log anything to stderr, it logs to a logfile. The location of the logfile is available under the ? (help) icon.
There is no such thing. Debian 11 is Bullseye.
I would generally recommend updating the OS before any other actions. "Stock" is IMHO not the best of breeds when it comes to Debian.
If you want more feedback here you need to describe the exact steps which leads to the crash. This is so we can reproduce the same steps to make sure if this is about opencpn or your system. As you probably understand, I currently lean to that this is about your bookworm system rather than opencpn. Certainly not sure, though |
Beta Was this translation helpful? Give feedback.
-
I know that this is an older discussion and all, but I experienced the same issues noted here under wayland in Arch. Seemingly, I need to rebuild my instance. . . I am here to request a versioned list of software used to compile OCPN , specifically, the version of wxWidgets used. Current arch version is 3.2.4, and I have the issues with the undraggable, centered menu, and crashing on start at times. |
Beta Was this translation helpful? Give feedback.
-
Whatever is available on the target platform. wxWidgets 3.2.4 on most nowadays, but can even be 3.0.x on older Linux distributions. This specific problem should be gone in current master code. Crash on startup hard to say, that can be "anything", so if reproducible with current master, run it under |
Beta Was this translation helpful? Give feedback.
-
Raspberry Pi 5 and a new Raspberry OS based on Debian Bookworm are officially here.
Wayland is the default protocol instead of X11 for Raspberry Pi 4 and 5. Raspberry Pi 3 and older will keep using X11.
I have tested OpenCPN 5.8.4 in the official Raspberry OS Bookworm running in Raspberry Pi 4 (Raspberry Pi 5 will be available in the middle of October). The test was done installing OpenCPN from PPA (jammy), Debian backport (bookworm) and flatpak.
The result is the same for all sources, OpenCPN becomes unusable due to multiple GUI issues and frequent crashes causing the system to log out. In fact, this not only happens with OpenCPN, other applications cause a logout when an error occurs.
The zoom menu is always in the center and cannot be dragged. The main menu is always on the top layer and cannot be dragged either. The main menu items work randomly, sometimes they work and sometimes they don't and sometimes they cause a crash.
What do you think? My impression is that the system is not yet very stable and still receives daily updates. Should we let the dust settle before working on this?
Beta Was this translation helpful? Give feedback.
All reactions