Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 26-04-2023, 06:02   #16
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

There is nothing to delete, if you still experience your problem in the exactly same way, you simply did not fix the locale issue for your primary account properly.
nohal is offline   Reply With Quote
Old 23-11-2023, 09:57   #17
Registered User

Join Date: Dec 2013
Posts: 7
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

Quote:
Originally Posted by nohal View Post
...
Then, if you have time, I would like to see the stack trace of the crash, you would need to do the following to create one:

Add the following line to /etc/apt/sources.list.d/opencpn-ubuntu-opencpn-jammy.list:

Code:
deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu/ jammy main/debug
Update the APT data and install the GNU debugger and OpenCPN debugging symbols:

Code:
sudo apt update
sudo apt install gdb opencpn-dbgsym
Start OpenCPN in the debugger from terminal

Code:
gdb -ex run opencpn
Cause the crash

Execute bt command in the debugger

A lot of text will be printed to the terminal, copy it and send to me

Execute q command to quit the debugger

-------------

could I use these commands on my Linux Mint 21.2 Victoria?


I also can crash OpenCpn 5.8.4 with Draw 1.8.28.2, but by hitting the "Draw" button.

The crash is reproducable with my ODnavobj.xml (which has no faults)
Draw works if I start with an empty new ODnavobj.xml

I tried the above commands and got the following

Thread 1 "opencpn" received signal SIGSEGV, Segmentation fault. 0x00007ffff6efbcd4 in wxListBase::Item(unsigned long) const () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 (gdb)

Maybe this helps
Klaus_S is offline   Reply With Quote
Old 23-11-2023, 10:11   #18
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

Quote:
Originally Posted by Klaus_S View Post
-------------

could I use these commands on my Linux Mint 21.2 Victoria?
Probably yes, it should be Jammy if I understand their release notes correctly.
Quote:
I also can crash OpenCpn 5.8.4 with Draw 1.8.28.2, but by hitting the "Draw" button.

The crash is reproducable with my ODnavobj.xml (which has no faults)
Draw works if I start with an empty new ODnavobj.xml

I tried the above commands and got the following

Thread 1 "opencpn" received signal SIGSEGV, Segmentation fault. 0x00007ffff6efbcd4 in wxListBase::Item(unsigned long) const () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 (gdb)

Maybe this helps
No, this unfortunately does not help much, we would need to see the whole backtrace (= what led to the SEGFAULT and where exactly in our code we likely tried to access a non-existent item in some list, not just that it happened).

Is that one line really all you got after you used the bt command in gdb? If it is, I'm afraid the only way forward is trying to reproduce the problem using your ODnavobj.xml
nohal is offline   Reply With Quote
Old 23-11-2023, 11:45   #19
Registered User

Join Date: Dec 2013
Posts: 7
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

no problem, I try to append the XML
Valid file extensions: bmp doc gif gpx jpe jpeg jpg kml kmz pdf png txt xls


so I will rename to .kmz
211.625 Bytes
Attached Files
File Type: kmz ODnavobj.xml.kmz (206.7 KB, 18 views)
Klaus_S is offline   Reply With Quote
Old 23-11-2023, 12:42   #20
Registered User

Join Date: Dec 2013
Posts: 7
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

btoh yes, the bt command: #0 0x00007ffff6efbcd4 in wxListBase::Item(unsigned long) const () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #1 0x00007ffff7595409 in ?? () from /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0 #2 0x00007ffff75975d7 in wxGenericListCtrl::SortItems(int (*)(long, long, long), long) () from /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0 #3 0x00007fffbc5d5a09 in ?? () from /home/stephan/.local/lib/opencpn/libocpn_draw_pi.so #4 0x00007fffbc5daead in ?? () from /home/stephan/.local/lib/opencpn/libocpn_draw_pi.so #5 0x00007fffbc5de14b in ?? () from /home/stephan/.local/lib/opencpn/libocpn_draw_pi.so #6 0x00007fffbc4ac0b9 in ?? () from /home/stephan/.local/lib/opencpn/libocpn_draw_pi.so #7 0x0000555555bc8207 in ocpnToolBarSimple::OnMouseEvent (this=0x55555b225b80, event=...) at /build/opencpn-bVCMxg/opencpn-5.8.4+8089+1637c28fb~ubuntu22.04.1/src/toolbar.cpp:2373 #8 0x00007ffff6f9df26 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTable EntryBase const&, wxEvtHandler*, wxEvent&) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #9 0x00007ffff6f9e4ab in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #10 0x00007ffff6f9facd in wxEvtHandler::TryHereOnly(wxEvent&) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #11 0x00007ffff6f9fb4f in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #12 0x00007ffff6f9fc69 in wxEvtHandler::ProcessEvent(wxEvent&) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #13 0x00007ffff6fa10cb in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #14 0x00007ffff756efd8 in ?? () from /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0 #15 0x00007ffff59e5b77 in ?? () from /lib/x86_64-linux-gnu/libgtk-3.so.0 #16 0x00007ffff5eadd2f in g_closure_invoke () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #17 0x00007ffff5ec9c36 in ?? () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #18 0x00007ffff5ecb026 in g_signal_emit_valist () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #19 0x00007ffff5ecb863 in g_signal_emit () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #20 0x00007ffff59ae724 in ?? () from /lib/x86_64-linux-gnu/libgtk-3.so.0 #21 0x00007ffff5851680 in ?? () from /lib/x86_64-linux-gnu/libgtk-3.so.0 #22 0x00007ffff585252a in gtk_main_do_event () from /lib/x86_64-linux-gnu/libgtk-3.so.0 #23 0x00007ffff5f32743 in ?? () from /lib/x86_64-linux-gnu/libgdk-3.so.0 #24 0x00007ffff5f69f56 in ?? () from /lib/x86_64-linux-gnu/libgdk-3.so.0 #25 0x00007ffff50aad3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #26 0x00007ffff5100258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007ffff50aa2b3 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00007ffff5848cfd in gtk_main () from /lib/x86_64-linux-gnu/libgtk-3.so.0 #29 0x00007ffff7546b95 in wxGUIEventLoop:oRun() () from /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0 #30 0x00007ffff6ebb531 in wxEventLoopBase::Run() () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #31 0x00007ffff6e9938a in wxAppConsoleBase::MainLoop() () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #32 0x00007ffff6ef6a3e in wxEntry(int&, wchar_t**) () from /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0 #33 0x0000555555827edc in main (argc=<optimized out>, argv=<optimized out>) at /build/opencpn-bVCMxg/opencpn-5.8.4+8089+1637c28fb~ubuntu22.04.1/src/ocpn_app.cpp:937
Klaus_S is offline   Reply With Quote
Old 23-11-2023, 17:02   #21
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

I can reproduce the crash using your data with the released OD package, but it is fixed in the current codebase, you just need to wait for Jon to release a new version...
nohal is offline   Reply With Quote
Old 27-11-2023, 02:18   #22
Registered User

Join Date: Dec 2013
Posts: 7
Re: OpenCpn crashes on hitting a config button (last but one in menu); Draw plugin?

thanks, with DRAW from the beta catalog (1.8.44.0) it works fine.
Klaus_S is offline   Reply With Quote
Reply

Tags
enc, men, opencpn, plug, plugin


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
OpenCPN 5.6.0: Dashboard Plugin crashes OpenCPN Thonglor OpenCPN 5 10-02-2023 10:39
OpenCpn Draw plugin disappears after install on Android chris14679 OpenCPN 39 06-04-2021 08:03
Ocpn Draw Plugin 1.8.1.2 issue jean_pfoumf OpenCPN 6 07-02-2021 20:43
Grib plugin for Mac - Write and Send Email Config SeattleSail OpenCPN 7 02-09-2015 06:05

Advertise Here


All times are GMT -7. The time now is 13:21.


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.