Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-07-2014, 00:33   #106
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
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, 04:06   #107
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
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 online now   Reply With Quote
Old 03-07-2014, 07:49   #108
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 07:58   #109
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
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, 08:04   #110
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 08:05   #111
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 08:35   #112
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
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, 08:43   #113
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
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, 09:01   #114
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,810
Re: OpenCPN Beta Version 3.3.1824 Released

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

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
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 online now   Reply With Quote
Old 04-07-2014, 14:40   #116
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
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:	111
Size:	278.8 KB
ID:	84438  
__________________
Ptizef is offline   Reply With Quote
Old 04-07-2014, 17:16   #117
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
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, 07:18   #118
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 07:08   #119
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
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, 42 views)
__________________
CarCode is online now   Reply With Quote
Old 06-07-2014, 08:48   #120
Registered User
 
NEVERMIND's Avatar

Join Date: Apr 2011
Location: CORSE
Boat: PRIVILEGE 12
Posts: 141
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

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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:08.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.