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 13-05-2013, 08:36   #1
wbt
Registered User

Join Date: May 2013
Posts: 3
OpenCPN for Mac crashes on S57 cell

Dear OpenCPN users and developers,

I am using OpenCPN for Mac with the S57 ENCs made available by the Dutch waterway authority at ENC - Fairway Information Services
When trying to display cell 1R5OS005, the program crashes. I include the logfile and crash report below. The interesting thing is, with the last version 3.2.0, it crashed about 1/3 of generating the SENC file, whereas with the newest version 3.2.2, it crashes when the SENC file is complete. Can you confirm this crash? Is there anything I can do about it? Thanks!

Wouter
--
Logfile:
(...)
16:26:11 CEST: Initializing Chart /Users/bergmann/Documents/charts/Nederland/ENC_ROOT/1R5OS005.000
16:26:11 CEST: Building SENC file for /Users/bergmann/Documents/charts/Nederland/ENC_ROOT/1R5OS005.000 to /Users/bergmann/Library/Preferences/SENC/1R5OS005.S57
16:26:11 CEST: ENC update number is 0
16:26:14 CEST: Error: S57 SENC Create Error 2

Crash report:
Process: OpenCPN [72034]
Path: /Users/bergmann/Applications/OpenCPN.app/Contents/MacOS/OpenCPN
Identifier: ???
Version: ()
Code Type: X86 (Native)
Parent Process: launchd [136]

Date/Time: 2013-05-13 17:27:36.953 +0200
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 6886357 sec
Crashes Since Last Report: 99
Per-App Interval Since Last Report: 19831 sec
Per-App Crashes Since Last Report: 17
Anonymous UUID: 05F2858A-9D8D-4D96-9F64-8C82793B97C6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
Assertion failed: (m_validbbox == TRUE), function PointInBox, file /Users/dsr/Projects/opencpn/src/bbox.cpp, line 206.


Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x94cc1c5a __kill + 10
1 libSystem.B.dylib 0x94cc1c4c kill$UNIX2003 + 32
2 libSystem.B.dylib 0x94d545a5 raise + 26
3 libSystem.B.dylib 0x94d6a6e4 abort + 93
4 libSystem.B.dylib 0x94d5720f __assert_rtn + 252
5 0x0004bad2 wxBoundingBox::PointInBox(double, double, double) + 162
6 0x002525c2 s57chart::GetAssociatedObjects(S57Obj*) + 290
7 0x0022daff _UDWHAZ03(S57Obj*, double, _ObjRazRules*) + 223
8 0x00232f05 WRECKS02(void*) + 357
9 0x0023ef88 s52plib::GetAndAddCSRules(_ObjRazRules*, _Rules*) + 40
10 0x0024c950 s52plib:oRenderObject(wxDC*, _ObjRazRules*, ViewPort*) + 1360
11 0x002536f4 s57chart:CRenderLPB(wxMemoryDC&, ViewPort const&, wxRect*) + 420
12 0x00256084 s57chart:CRenderRect(wxMemoryDC&, ViewPort const&, wxRect*) + 1140
13 0x002565eb s57chart:oRenderViewOnDC(wxMemoryDC&, ViewPort const&, RenderTypeEnum, bool) + 907
14 0x0025c0e0 s57chart::BuildThumbnail(wxString const&) + 1632
15 0x0025e47a s57chart::PostInit(ChartInitFlag, ColorScheme) + 570
16 0x0026ea6c s57chart::Init(wxString const&, ChartInitFlag) + 1628
17 0x000535f3 ChartDB::OpenChartUsingCache(int, ChartInitFlag) + 2387
18 0x0007fc8e Quilt::Compose(ViewPort const&) + 3246
19 0x000a6606 ChartCanvas::SetViewPoint(double, double, double, double, double, bool) + 2758
20 0x000363ae MyFrame:oChartUpdate() + 462
21 0x00037a53 MyFrame::SetbFollow() + 83
22 0x00041761 MyFrame::OnToolLeftClick(wxCommandEvent&) + 1489
23 libwx_macu-2.8.0.dylib 0x005ef6e3 wxEvtHandler::ProcessEventIfMatches(wxEventTableEn tryBase const&, wxEvtHandler*, wxEvent&) + 131
24 libwx_macu-2.8.0.dylib 0x005f09f1 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 113
25 libwx_macu-2.8.0.dylib 0x005f0f0f wxEvtHandler::ProcessEvent(wxEvent&) + 207
26 libwx_macu-2.8.0.dylib 0x005f0ea9 wxEvtHandler::ProcessEvent(wxEvent&) + 105
27 libwx_macu-2.8.0.dylib 0x0072cc98 wxWindowBase::TryParent(wxEvent&) + 88
28 libwx_macu-2.8.0.dylib 0x005f0eb9 wxEvtHandler::ProcessEvent(wxEvent&) + 121
29 libwx_macu-2.8.0.dylib 0x005f0d4b wxEvtHandler::ProcessPendingEvents() + 123
30 libwx_macu-2.8.0.dylib 0x00565b69 wxAppConsole::ProcessPendingEvents() + 105
31 libwx_macu-2.8.0.dylib 0x005e7992 wxMacProcessNotifierAndPendingEvents + 34
32 libwx_macu-2.8.0.dylib 0x00614bb2 wxApp::MacHandleOneEvent(void*) + 50
33 libwx_macu-2.8.0.dylib 0x006153db wxApp::MacDoOneEvent() + 123
34 libwx_macu-2.8.0.dylib 0x0062ec53 wxEventLoop:ispatch() + 35
35 libwx_macu-2.8.0.dylib 0x006d6218 wxEventLoopManual::Run() + 136
36 libwx_macu-2.8.0.dylib 0x006af3d3 wxAppBase::MainLoop() + 83
37 libwx_macu-2.8.0.dylib 0x0059d8a0 wxEntry(int&, wchar_t**) + 160
38 0x00028d58 main + 24
39 0x00027149 start + 53
wbt is offline   Reply With Quote
Old 13-05-2013, 15:51   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac crashes on S57 cell

wbt...

I confirm the crash bug. It relates to an improperly formatted ENC cell, which OpenCPN does not handle well in this case.

The bug was addressed and partially corrected in 3.2.2, which is why you see different behaviour. But we get no points for "close".

We will fix it for the 3.3.x Beta series, starting soon.

If you have a real need for this chart, I can make you an error-free SENC file as a workaround, and email it to you (maybe). It will be a 6 MB file....

Thanks for the report
Dave
bdbcat is offline   Reply With Quote
Old 14-05-2013, 02:00   #3
wbt
Registered User

Join Date: May 2013
Posts: 3
Re: OpenCPN for Mac crashes on S57 cell

Thanks Dave!

I do not think I will need the cell anytime soon, so I can wait for the beta update.

But if the cell is improperly formatted, perhaps I can pass along what is wrong with it to the creator (I contacted them before about this problem). Could you tell me what is the offending element exactly?

Bye,

Wouter
wbt is offline   Reply With Quote
Old 14-05-2013, 04:47   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac crashes on S57 cell

Wouter....

OK, no problem.

The DEPARE with FeatureID=182 seems to have less than three points, so is not a valid AREA feature. Also has no attributes.

OCPN ignores this invalid feature.

Will you please confirm this with me after getting comments from the ENC publisher?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 21-05-2013, 04:43   #5
wbt
Registered User

Join Date: May 2013
Posts: 3
Re: OpenCPN for Mac crashes on S57 cell

Thanks Dave. I have passed the information on to the publisher, but have not heard from them since.

Wouter
wbt is offline   Reply With Quote
Reply

Tags
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


Advertise Here


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


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.