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 19-06-2024, 04:24   #1
Registered User

Join Date: Mar 2024
Posts: 33
Reload openCPN on Ubuntu system

I am trying to get opencpn working on my Ubuntu 22.04 machine to do some testing and learn the UI. I've struggled with this because it has a tendency to crash.

I'm trying to do a clean reload, but somehow, there is data remembered from prior attempts.

I removed the application through the Ubuntu software app and used this to clean up the rest:

sudo apt-get remove --purge opencpn

Whenever I load though, I am offered the option to use safe mode and if I do or don't, I see a chart of long Island sound including tide data for a few seconds, followed by a crash for segmentation fault.

If I start opencpn using sudo, it's clean and puts me off the coast Africa with no charts.

So apparently, opencpn leaves some user data behind after being uninstalled.

This finds some:
sudo find / -name opencpn -print

.cache and .local.lib still both have openCPN directories so I removed them.

The problem persists. I assume that there is per user data hiding in another directory that isn't called opencpn. Does anyone know what it is or how to get a completely fresh install?
bill424 is offline   Reply With Quote
Old 19-06-2024, 04:31   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Reload openCPN on Ubuntu system

This is everything you need to reset OpenCPN completely on any Linux system.
Code:
rm -rf ~/.opencpn
nohal is offline   Reply With Quote
Old 19-06-2024, 06:05   #3
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Quote:
Originally Posted by nohal View Post
This is everything you need to reset OpenCPN completely on any Linux system.
Code:
rm -rf ~/.opencpn
Sadly, that doesn't seem to be the case so far. Whatever I've tried from the command line, openCPN remembers that the previous use was a crash, even after a reinstall.

I'll whack the software again and make sure that directory is gone, but that still leaves stuff in .cache and .local. Cleaning up doesn't seem to be so simple.
bill424 is offline   Reply With Quote
Old 19-06-2024, 06:17   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Reload openCPN on Ubuntu system

Then you probably must be using some other OpenCPN than the one we have developed, because the "remembers the previous use was a crash" is implemented by looking for file ~/.opencpn/startcheck.dat during startup.
nohal is offline   Reply With Quote
Old 19-06-2024, 07:11   #5
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Quote:
Originally Posted by nohal View Post
Then you probably must be using some other OpenCPN than the one we have developed, because the "remembers the previous use was a crash" is implemented by looking for file ~/.opencpn/startcheck.dat during startup.
I'm pretty sure I'm using the plain old OpenCPN, but I think Ubuntu is "helping" me by caching things.

Time for install number fifteen or so
bill424 is offline   Reply With Quote
Old 19-06-2024, 07:30   #6
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Looks like it may have been caching. This time, I rebooted after the Ubuntu software uninstall and then checked for anything like opencpn anywhere on the drive. Nothing showed up.

I reinstalled OpenCPN using the Ubuntu tool and it runs without startup message or a seg fault using the user that installed it. Previously, I had to use Sudo to avoid a crash.

Now I'm off the coast of Africa again, but this is a great improvement

I note too, that the toolbars are staying where they should and I didn't need to specfy no_openGL anywhere.

Thanks for your help.
bill424 is offline   Reply With Quote
Old 20-06-2024, 07:29   #7
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Now I have a new set of problems. Same Ubuntu 22.04 machine. Everything was working from the install so I loaded all the US ENC charts and got a seg fault. Wiped everything and reinstalled and tried NY ENC charts only. Still shows the tidal data for a few seconds before the seg fault crash.

GLEW init success!n SENC: nCPU: 12 m_max_jobs :11
Segmentation fault (core dumped)


Very dispiriting
bill424 is offline   Reply With Quote
Old 20-06-2024, 09:48   #8
running down a dream
 
gonesail's Avatar

Join Date: Mar 2006
Location: Florida
Boat: cape dory 30 MKII
Posts: 3,152
Images: 7
Send a message via Yahoo to gonesail
Re: Reload openCPN on Ubuntu system

running version 5.8.4 on ubuntu 22.04 with zero issues. i copied it straight over from my old machine including charts and shortcut. are your sure the charts are good?
__________________
some of the best times of my life were spent on a boat. it just took a long time to realize it.
gonesail is offline   Reply With Quote
Old 20-06-2024, 14:43   #9
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Quote:
Originally Posted by gonesail View Post
running version 5.8.4 on ubuntu 22.04 with zero issues. i copied it straight over from my old machine including charts and shortcut. are your sure the charts are good?
I assume so - I re-pulled them from NOAA, rather than persisting old ones. I have had this working better than this on this machine, but I don't seem to be able to get a fresh install to function now.
bill424 is offline   Reply With Quote
Old 21-06-2024, 04:19   #10
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

More data: I can load RNC charts without issue. Any ENC charts, even just one such as US3NY01M, cause a segmentation fault.

For variety, I tried all the ENC NOAA charts for Massachusetts - seg fault, core dumped.

Where does that dump go on Ubuntu 22.04?
bill424 is offline   Reply With Quote
Old 21-06-2024, 05:04   #11
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Reload openCPN on Ubuntu system

As your problem is very likely with GPU drivers, looking at the stack trace is unlikely to reveal anything useful.

You never said what hardware you have, but you may try to start opencpn from terminal using mesa_glthread=false opencpn and see if it helps.

Or disable OpenGL in the toolbox.

Or use 5.9.1 beta.
nohal is offline   Reply With Quote
Old 21-06-2024, 05:24   #12
Registered User

Join Date: Mar 2024
Posts: 33
Re: Reload openCPN on Ubuntu system

Here's the hardware - Graphics from the motherboard:
Quote:
Summary
Computer
Processor AMD Ryzen 5 5600G with Radeon Graphics
Memory 65181MB (7488MB used)
Machine Type Desktop
Operating System Ubuntu 22.04.4 LTS
User Name
Date/Time Fri 21 Jun 2024 08:17:49 AM EDT
Display
Resolution 1920x1080 pixels
OpenGL Renderer (Unknown)
X11 Vendor The X.Org Foundation
Audio Devices
Audio Adapter HDA-Intel - HD-Audio Generic
Audio Adapter HDA-Intel - HD-Audio Generic
opencpn -no_opengl didn't help.

mesa_glthread=false opencpn Hah! but ooh, look at those lovely ENC charts for MA. Raster charts show too, possibly even quilted.

Thanks.
bill424 is offline   Reply With Quote
Old 21-06-2024, 05:32   #13
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Reload openCPN on Ubuntu system

Yes, the Radeon driver in new Mesa versions is known to not work for us with OpenGL threading enabled, have one such system on my table...
nohal is offline   Reply With Quote
Old 21-06-2024, 09:03   #14
Registered User

Join Date: Mar 2024
Posts: 33
Thumbs up Re: Reload openCPN on Ubuntu system

Quote:
Originally Posted by nohal View Post
Yes, the Radeon driver in new Mesa versions is known to not work for us with OpenGL threading enabled, have one such system on my table...
Well it's stable so far, so I think I'll avoid 5.9 for a few weeks - I'm not a bleeding edge guy. Now I can safely learn the app it seems.

Is there anywhere I should have looked to find this solution myself?

Thanks again
bill424 is offline   Reply With Quote
Old 21-06-2024, 09:55   #15
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Reload openCPN on Ubuntu system

Yes, you should have clicked that link you got after each crash that pointed you to https://github.com/OpenCPN/OpenCPN/w...8-known-issues
nohal is offline   Reply With Quote
Reply

Tags
enc, loa, 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
OCPN floods Ubuntu system log file JoHo OpenCPN 4 01-11-2021 11:45
OpenCPN Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 08:06
Ubuntu 10.10 and OpenCPN cagney OpenCPN 11 10-09-2011 10:40
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 12:16
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 11:38.


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.