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-06-2022, 06:13   #16
Registered User

Join Date: Apr 2022
Posts: 21
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

Now I'm gonna try an simple install without building rpms
filochard is offline   Reply With Quote
Old 26-06-2022, 07:19   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

filochard...


If you make o-charts_pi as debug build (cmake -DCMAKE_BUILD_TYPE=Debug ..), then you can run OCPN under gdb or ddd to discover the exact crash location by backtrace.


Dave
bdbcat is offline   Reply With Quote
Old 26-06-2022, 09:02   #18
Registered User

Join Date: Apr 2022
Posts: 21
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

Hi Dave

Very strange thing
I have rebuilt my o-charts_plugin rpm (version 1.0.25.0) after having only added -DCMAKE_BUILD_TYPE=Debug in the cmake line of the spec file...

I reinstalled the rpms (built upon wxgtk3.1.5) of OpenCPN s63_pi o-charts_pi sar_pi radar_pi route_pi

I runned Opencpn 5.6.2 inside gdb
I activated o-charts_pi and actualized my charts list
no crash !!!

Then I stopped opencpn, stopped gdb,
I erased /home/myname/.opencpn
I launched again opencpn inside a console
I activated o-charts_pi and actualized my charts list
no crash !!!
and now the /.opencpn/o_charts_pi/ folder contains ChartImage-xxx files

I don't understand why the simple fact to add -DCMAKE_BUILD_TYPE=Debug
in the spec file solved the crash

Sorry for such a noise for that weird aporia !
Now I can use o-charts_pi with a classical install and may propose to update the whole stuff !

Thanks a lot for your help and for the time you wasted for this

We may change the title of this thread with this one :
"Thanks to Dave (bdbcat) no more problem to replace oernc_pi and oesenc_pi with o-charts_pi"
filochard is offline   Reply With Quote
Old 26-06-2022, 13:34   #19
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

filochard....
I am glad we are making some progress.
We can both be pretty sure that the o-charts_pi is compatible with Fedora-based systems now. The fault, whatever it is, probably has nothing to do with the hand-crafted RPM packaging workflow. Agree?


However, building the o-charts plugin in "Debug" mode does have serious effects on its performance. So, we still need to get to the bottom of this problem.


Did you try running OCPN under gdb (plugin built in normal Release mode), and getting a backtrace on the fault?


Dave
bdbcat is offline   Reply With Quote
Old 26-06-2022, 18:16   #20
Registered User

Join Date: Apr 2022
Posts: 21
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

Hi Dave

Everything is OK now : I uninstalled my debug packages letting only the normal packages installed

I launched normally OpenCPN and o-charts_pi works perfectly on a fresh install (creating a new /home/myname/.opencpn/folder)

I then tested if I could even use (instead of this new created folder that I have erased for this test) my previous /home/myname/.opencpn that I had backuped
(my previous config and charts are still OK)

I digged a liittle more and I found why I got segfaults with my first trial to create a rpm by cherry picking the components :
I made a very big and stupid mistake
Instead of simply using :
cmake -B .
make

I had used :
cmake -B .
make tarball

The libo-charts_pi.so that I had cherry picked then was not built to be used inside a classical install but with the plugin manager

I'm very sorry to have made such a noise for such a mistake of mine !!!

Nevertheless the good news is that with a correct workaround I can continue building rpms for updating previous rpm installations
And the other good news is the fact that for what I have already tested everything can be built upon wxgtk3.1.5
(I have not yet rebuilt and tested logbookkonni whose I know that in the past it caused segfaults when built upon wxgtku3.1... its code seems needing to be someway modified to be complient with wxgtk3.1.x)


Thanks again for your patience
filochard
filochard is offline   Reply With Quote
Old 26-06-2022, 18:26   #21
Registered User

Join Date: Apr 2022
Posts: 21
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

By the way
I don't know how to modify the title of this thread
It would be something else such as
"how to allow a classical installation of o-charts_pi replacing oernc_pi and oesenc_pi"
filochard is offline   Reply With Quote
Old 27-06-2022, 07:21   #22
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: ethical problem with o-charts plugin replacing oernc and oesenc plugins

Quote:
Originally Posted by filochard View Post
By the way
I don't know how to modify the title of this thread
It would be something else such as
"how to allow a classical installation of o-charts_pi replacing oernc_pi and oesenc_pi"

Ask the moderators - click the triangle with the "!" on the left bottom side of the entry...
bcn is online now   Reply With Quote
Old 27-06-2022, 17:15   #23
Moderator
 
JPA Cate's Avatar

Join Date: Nov 2011
Location: aboard, in Tasmania, Australia
Boat: Sayer 46' Solent rig sloop
Posts: 28,559
Re: "how to allow a classical installation of o-charts_pi replacing oernc_pi and oese

The OP has requested the title of this thread be changed to "how to allow a classical installation of o-charts_pi replacing oernc_pi and oesenc_pi", and that is how it will appear from this post onwards.

Ann
JPA Cate, moderator
__________________
Who scorns the calm has forgotten the storm.
JPA Cate is offline   Reply With Quote
Reply

Tags
charts, installation, cal, enc, classic


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
NEW o-charts plug-in - oeSENC/oeRNC pi retired bcn OpenCPN 34 02-07-2023 08:33
Stuck on oeRNC charts Plug in and installing oeRNC Charts on a MacBook lambrettaman OpenCPN 55 19-03-2020 00:57
oeRNC Plugin for Android Macdyver OpenCPN 5 22-11-2019 12:53
oeRNC and oeSENC plug-ins bcn OpenCPN 0 26-09-2019 03:53
Ethical Laundry . . . otherthan Liveaboard's Forum 57 22-12-2010 12:12

Advertise Here


All times are GMT -7. The time now is 12:50.


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.