(2022-04-16, 02:06 PM)Hobo Wrote: Hi,
I have installed Openplotter 3 and from there installed OpenCpn 5.6 Flatpak
When I start it through open plotter or via terminal (flatpak run org.opencpn.OpenCPN) I get the following response :
Invalid MIT-MAGIC-COOKIE-1 key15:22:44: Error: Unable to initialize GTK+, is DISPLAY set properly?
If I do a startup check, I get :
Checking OpenCPN... | running | | FP fullscreen autostart enabled
↳Unable to read OpenCPN FP configuration
So the problem is OpenCpn does not start up at the screen, what could be the cause of this problem ?
I have been able to reproduce this error. It happens when using OpenPlotter headless. This is my error:
Code:
(opencpn:2): Gdk-ERROR **: 18:54:58.144: The program 'opencpn' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
(Details: serial 380 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
I have reported this to OpenCPN devs, thanks for notifying: https://github.com/OpenCPN/OpenCPN/issues/2628