Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-04-2019, 14:13   #1
Registered User

Join Date: Apr 2019
Posts: 5
Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

Fully updated Linux Mint 19.1; have been using opencpn for years (kudos!)
After update to 5.0.0, opencpn crashes after I hit OK on the initial disclaimer dialog with:
Quote:
The program 'opencpn' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 3174 error_code 2 request_code 154 minor_code 24)
Bottom of the log shows:
Quote:
17:07:27 EDT: Opencpn language set to: en_US
17:07:27 EDT: Loading Configs catalog: /home/sergey/.opencpn/Configs/configs.xml
17:07:41 EDT: Creating MyFrame...size(1291, 1046) position(115, 34)
17:07:41 EDT: Error: can't open file '/home/sergey/.opencpn/mmsitoname.csv' (error 2: No such file or directory)
Nothing else in the log looks interesting.

Please help troubleshoot.

Thanks!
SirG is offline   Reply With Quote
Old 02-04-2019, 15:09   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

Install GDB
Code:
sudo apt-get install gdb
point the debugger to OpenCPN
Code:
gdb /usr/bin/opencpn
Start the process
Code:
run
Let it crash and then generate the backtrace
Code:
bt
Post the output here

Thanks

Pavel
nohal is offline   Reply With Quote
Old 02-04-2019, 16:24   #3
Registered User

Join Date: Apr 2019
Posts: 5
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

Hi Pavel, thanks for the response.
The error is apparently being generated asynchronously, according to the rest of the message:
Code:
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 3048 error_code 2 request_code 154 minor_code 24)
  (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 --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Inferior 1 (process 7619) exited with code 01]
I tried running opencpn with --sync and setting a break on gdk_x_error, as suggested, but no success (see above). The cause is that none of my libs have symbols, so the break is set as pending on future lib load:
Code:
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
, but I suspect it never succeeds, since the symbol never shows up.

Suggestions? I will be happy to install some -dbg lib packages, if you can recommend which ones are needed.

Thanks!
---Sergey
SirG is offline   Reply With Quote
Old 02-04-2019, 16:38   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

It seems to be somewhere deep in Gnome/X/drivers. I personally would probably rather switch distributions than trying to debug this (which I suppose is not what you wanted to hear)...
If I wanted to do the debugging, I would first start without any configuration (mv ~/.opencpn ~/.opencpn.bak) to discard something caused by your settings and then started stepping through the code from the place where the last log message is, but describing that is a little too complex for a forum post - it can be done either from an IDE, some GDB frontend like DDD or GDB directly (RMS's gdb Tutorial: How do I watch the execution of my program?), but in any case you should be building the opencpn binary locally.

Pavel
nohal is offline   Reply With Quote
Old 02-04-2019, 17:56   #5
Registered User

Join Date: Apr 2019
Posts: 5
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

Thinks for the advice:
Quote:
[...]rather switch distributions than trying to debug this (which I suppose is not what you wanted to hear).
You read my mind
  • (re)moving ~/.opencpn does not help
  • running with -no_opengl does not help, which is surprising: the reported code 154 is a GLX:GetHistogram opcode; I am not very familiar with X/OpenGL innards, but I would expect disabling OpenGL would eliminate glx ops
I'm fine with running gdb: I've used it plenty, although not recently.
Looks like I can use your Dockerfile to build/debug. Are the build instructions on the wiki under Compiling on Linux reasonably up to date?

I will probably not get around to it until this weekend or the next.

Thanks,
---Sergey
SirG is offline   Reply With Quote
Old 02-04-2019, 18:15   #6
Registered User

Join Date: Apr 2019
Posts: 5
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

I tried to downgrade to a previous version and found that only 5.0.0 is available from the PPA. Where can I get an older version?
SirG is offline   Reply With Quote
Old 02-04-2019, 18:17   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

This is how PPAs work, you can build from source. Or convince someone to do it for you.
nohal is offline   Reply With Quote
Old 07-04-2019, 13:34   #8
Registered User

Join Date: Apr 2019
Posts: 5
Re: Mint 19.1: OpenCPN 5.0.0 from Ubuntu ppa crashes on startup

Resolved:

Error was caused by some confusion after openGL updates (details described here).

Fixed by a reboot. D'oh.
SirG is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OpenCPN on Ubuntu 18.04 - PPA problem TonyX OpenCPN 5 13-02-2019 02:42
Opencpn (on Ubuntu bionic) crashes on startup when displaying S63 charts gnaffron OpenCPN 14 20-08-2018 01:09
Debian, Raspberypi : How to install OpenCPN 4.8 from ppa Gilletarom OpenCPN 8 21-01-2018 10:24
OpenCPN GPS/AIS fix for Linux Mint 13 or Ubuntu 12.04 stephenippolito OpenCPN 3 20-10-2012 19:31
Opencpn 2.2 Build 823 Crashes when Dashboard Is Opened in Ubuntu tebsin OpenCPN 1 24-08-2010 14:16

Advertise Here


All times are GMT -7. The time now is 02:55.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.