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 02-07-2014, 23:33   #106
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: OpenCPN Beta Version 3.3.1824 Released

Dave,

no success with the AIS list bug (ARMhf).
And it's even simpler: just toggling one Track to YES and then closing with x will crash.
SHOW ALL TRACKS and x is ok.

Hubert
bcn is offline   Reply With Quote
Old 03-07-2014, 03:06   #107
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by bdbcat View Post
Hi there...

I have just posted a new commit to github which addresses the AIS target list closure crash bug.

Please have a look if you can build from source.

Thanks
Dave
Dave,
there is a semantic issue at

src/AIS_Decoder.cpp:1081:

Code:
if( dse_mmsi || b_take_dsc){
        if( m_ptentative_dsctarget ){
Variable 'pTargetData' is used uninitialized whenever 'if' conditions are false.


Gerhard
CarCode is offline   Reply With Quote
Old 03-07-2014, 06:49   #108
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Beta Version 3.3.1824 Released

Hubert...

Any chance of a stack trace on the ARMhf crash?

I have never actually seen a crash on my various systems on closing the list, so I am working blind.

Dave
bdbcat is offline   Reply With Quote
Old 03-07-2014, 06:58   #109
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: OpenCPN Beta Version 3.3.1824 Released

Dave...

a HowTo/hint for beginners under Debian? I'm using just a script for cake/built.
In the log there is nothing of course.

Sean perhaps should be able to test this as well. The basic platform of the Cubies is identical to the Olimex (A20 processor).

Hubert
bcn is offline   Reply With Quote
Old 03-07-2014, 07:04   #110
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Beta Version 3.3.1824 Released

Hubert...

I think gdb and/or ddd are available for armhf.

So, try this:
A. with ddd
$sudo apt-get install ddd

$ddd opencpn

Program->Run

Make it crash

Status->Backtrace

Take a screenshot,

or

B. With gdb

gdb opencpn

(gdb) r

Make it crash

(gdb) bt

Screenshot, or cut/paste the output.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 03-07-2014, 07:05   #111
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Beta Version 3.3.1824 Released

Gerhard...

Good catch.

Fixed in github now.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 03-07-2014, 07:35   #112
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by bdbcat View Post
Hubert...

So, try this:
A. with ddd
$sudo apt-get install ddd

$ddd opencpn

Program->Run

Make it crash

Status->Backtrace

Take a screenshot,

Good Luck
Dave
here we go.
The debug info:

Code:
Starting program: /usr/local/bin/opencpn 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb12c52a0 (LWP 3137)]
[New Thread 0xb0ac52a0 (LWP 3138)]
Program received signal SIGSEGV, Segmentation fault.
0xb6e3c85c in wxWindowBase::Close(bool) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
(gdb) bt
#0  0xb6e3c85c in wxWindowBase::Close(bool) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
#1  0x0018cb88 in AISTargetListDialog::OnPaneClose (this=0xae5f70, event=...)
    at /root/GitOpenCPN/OpenCPN/src/AISTargetListDialog.cpp:633
#2  0xb6f2fbd4 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#3  0xb6f7e99c in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#4  0xb6f7ec62 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#5  0xb6f7ecd2 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#6  0xb6b14818 in wxAuiManager::ProcessMgrEvent(wxAuiManagerEvent&) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_aui-2.8.so.0
#7  0xb6b181d8 in wxAuiManager::OnFloatingPaneClosed(wxWindow*, wxCloseEvent&)
    () from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_aui-2.8.so.0
#8  0xb6b1c15c in wxAuiFloatingFrame::OnClose(wxCloseEvent&) ()
   from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_aui-2.8.so.0
#9  0xb6f2fbd4 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
Hubert
bcn is offline   Reply With Quote
Old 03-07-2014, 07:43   #113
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: OpenCPN Beta Version 3.3.1824 Released

Dave,

ok now with the latest Git pull.

Hubert
bcn is offline   Reply With Quote
Old 03-07-2014, 08:01   #114
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: OpenCPN Beta Version 3.3.1824 Released

<message deleted>
seandepagnier is offline   Reply With Quote
Old 03-07-2014, 08:05   #115
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by bcn View Post
Dave,

ok now with the latest Git pull.

Hubert
So I guess I was correct with my assumption about the uninitialized variable above. In Xcode I got a warning about this but other compilers might be silence and one often search in the wrong place to fix something in such cases.

Gerhard
CarCode is offline   Reply With Quote
Old 04-07-2014, 13:40   #116
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: OpenCPN Beta Version 3.3.1824 Released

Hi Dvae

With the last git compiled, it seems that crashes are behind us now
Just a curious behavior with the AIS alarm dialog which is uncompleted
The acknowledge button is missing. I never noticed that before
see screen shot attached
Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	alert.jpg
Views:	192
Size:	278.8 KB
ID:	84438  
Ptizef is offline   Reply With Quote
Old 04-07-2014, 16:16   #117
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: OpenCPN Beta Version 3.3.1824 Released

Jeez you guys are ggoodd. How to do a backtrace in Win?
rgleason is offline   Reply With Quote
Old 05-07-2014, 06:18   #118
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Beta Version 3.3.1824 Released

jp...

Thanks for the catch on AIS Alert dialog bug.

Simple typing error, too late at night.
Fixed in github now.

Dave
bdbcat is offline   Reply With Quote
Old 06-07-2014, 06:08   #119
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: OpenCPN Beta Version 3.3.1824 Released

Is there a kind soul who can quality control the code a little bit before the final version 3.4 is released? It seems to be mostly dead values of variables, null pointer problems and the such, see analytic results attached (remove .doc).

Gerhard
Attached Files
File Type: doc Analyze-OCPN.rtf.doc (105.3 KB, 64 views)
CarCode is offline   Reply With Quote
Old 06-07-2014, 07:48   #120
Registered User
 
NEVERMIND's Avatar

Join Date: Apr 2011
Location: CORSE
Boat: PRIVILEGE 12
Posts: 157
Images: 3
Re: OpenCPN Beta Version 3.3.1824 Released

Hi,
With the last version and XP when you mouve the chart there is a background black at the corner and after Opencpn shut down.
Jean Paul
NEVERMIND is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn


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 Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 10:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 17:08

Advertise Here


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


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.