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 06-08-2014, 11:08   #46
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN Beta Version 3.3.1931 Released

Dave...
Just got a crash while building the texture cache somewhere along the east coast of US.
Code:
*** opencpn (wxWidgets 2.8.12) crashed ***, see backtrace!
0x73745d in wxCrashPrint::Report() at ??:?
0x5107cc in MyApp::OnFatalException() at ??:?
0x7f5399adc9fc in wxFatalSignalHandler at ??:0
0x7f5397265880 in  at ??:0
0x7f53979e9870 in __dynamic_cast at ??:0
0x74712b in GetLevel0Map(glTextureDescriptor*, wxRect const&, ChartBase*) at ??:?
0x7473b0 in GetFullMap(glTextureDescriptor*, wxRect const&, ChartBase*, int) at ??:?
0x74858d in CompressionWorkerPool::DoJob(JobTicket*) at ??:?
0x748365 in CompressionWorkerPool::ScheduleJob(glTexFactory*, wxRect const&, int, bool, bool) at ??:?
0x7492eb in glTexFactory::DoImmediateFullCompress(wxRect const&) at ??:?
0x73a41e in CompressChart(wxThread*, ChartBase*, wxString, wxString, wxEvtHandler*, wxString const&, int, int) at ??:?
0x746225 in CompressedCacheWorkerThread::Entry() at ??:?
0x7f5399ad8983 in wxThreadInternal::PthreadStart(wxThread*) at ??:0
0x7f539725e062 in  at ??:0
0x7f5396f92a3d in clone at ??:0
Aborted
Sorry, don't have more info at hand - will debug it if it repeats...

Pavel
nohal is offline   Reply With Quote
Old 06-08-2014, 11:09   #47
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN Beta Version 3.3.1931 Released

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

I looked at your crash dump.
Did you build 3.3.1931 from source for this test? If so, I cannot use the dump file. The .pdb debugging information does not match up with my locallly saved information.

Will you try again with the as-released 3.3.1931 binary?

Thanks
Dave
Dave..
Now I've the same scenario using the official beta binary and got a couple of similar crashes. I couldn't catch the first since the PC was completely hanged. From the second there's a crash report on this link: https://dl.dropboxusercontent.com/u/...fa2c05eeeb.zip
The environment is the same as before:
W7 32,
3.3.1911 as the main OCPN where all NMEA are connected and further broadcast to portable by UDP.
3.3.1931 as portable, switch -p, beside the main installed in it's own directory. It was installed to a clean directory but after installation I copied my old opencpn.ini and navobj.xml to the same dir. The charts are read from the same place as for the main OCPN.
(Also for the main OCPN a crash once occurred when using 3.3.1931 but that was my own variant so I went back to my own 1911)
A screenshot is attached
Håkan
Attached Thumbnails
Click image for larger version

Name:	Region Capture.jpg
Views:	167
Size:	362.0 KB
ID:	86240  
Hakan is offline   Reply With Quote
Old 06-08-2014, 11:18   #48
Registered User

Join Date: May 2012
Posts: 1,205
Re: OpenCPN Beta Version 3.3.1931 Released

Hello Dave.

Using OpenGL the same picture break up happens.

Tried a few different settings from the Options panel but with no better result.

Mike
Attached Thumbnails
Click image for larger version

Name:	raster.opengl1.jpg
Views:	154
Size:	82.3 KB
ID:	86244   Click image for larger version

Name:	raster.opengl2.jpg
Views:	398
Size:	108.0 KB
ID:	86245  

Rasbats is offline   Reply With Quote
Old 06-08-2014, 11:33   #49
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN Beta Version 3.3.1931 Released

Rasbats...

Wow, not good. I need to get my hands on one of these chart sticks.

For fun, will you please try some NOAA raster charts on your machine, in OpenGL mode? Just to try and show this error is chart-specific, you understand. And to get some idea of performance on your hardware.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-08-2014, 11:58   #50
Registered User

Join Date: Feb 2011
Location: uk
Posts: 93
Re: OpenCPN Beta Version 3.3.1931 Released

Hi

I am using a visit my harbour chart stick only get the crashed image with open GL off.

never tried gl off before as visit my h recommend the use of GL

With open GL on no problem or slowness. havnt got a nmea stream though to test with as am at home.

sony i7 ram 8gb

ps

Just been looking at the same area of the humber and estuary.

No problems with GL, on my lap top
yachtman is offline   Reply With Quote
Old 06-08-2014, 12:13   #51
Registered User

Join Date: May 2012
Posts: 1,205
Re: OpenCPN Beta Version 3.3.1931 Released

Dave ...

With NOAA raster charts I get the same aberrations with both OpenGL ON and OFF.

My copy of 3.3.1931 is from the O downloads page.

Mike
Attached Thumbnails
Click image for larger version

Name:	noaa.raster.no.opengl1.jpg
Views:	147
Size:	119.8 KB
ID:	86250   Click image for larger version

Name:	noaa.raster.no.opengl2.jpg
Views:	129
Size:	140.8 KB
ID:	86251  

Click image for larger version

Name:	noaa.raster.opengl1.jpg
Views:	147
Size:	76.6 KB
ID:	86252   Click image for larger version

Name:	noaa.raster.opengl2.jpg
Views:	176
Size:	96.9 KB
ID:	86253  

Rasbats is offline   Reply With Quote
Old 06-08-2014, 12:37   #52
Registered User

Join Date: May 2012
Posts: 1,205
Re: OpenCPN Beta Version 3.3.1931 Released

Dave,

Interesting.

I rebuilt the chart database with only the NOAA charts and bits of the VMH UK charts appear in the panel.

Mike
Rasbats is offline   Reply With Quote
Old 06-08-2014, 13:17   #53
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN Beta Version 3.3.1931 Released

Quote:
Originally Posted by Rasbats View Post
Dave,

Interesting.

I rebuilt the chart database with only the NOAA charts and bits of the VMH UK charts appear in the panel.

Mike
Dave

Looking at Mikes screen dumps I had a deja vu - flashback, to this old thread http://www.cruisersforum.com/forums/...tml#post834226

Chart cache-handling-regression?

Thomas
cagney is offline   Reply With Quote
Old 06-08-2014, 15:09   #54
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN Beta Version 3.3.1931 Released

Rasbats....

OK, thanks for the tests.
Two separate problems here.

1. No-OpenGL. Well understood problem, introduced by 3.3.1931.

2. OpenGL patch scrambling: I see a way that this could be happening, although I have never seen it before in testing. Definitely related to cagney's comment regarding cache coherency, seen earlier. I will have a tentative solution in the next Beta.

Sorry for the trouble today.
Dave
bdbcat is offline   Reply With Quote
Old 06-08-2014, 18:50   #55
Registered User
 
pkrawetzky's Avatar

Join Date: Mar 2009
Location: Coventry, CT
Boat: Viking Sportfish 35' - Nauti Lady
Posts: 59
Send a message via Skype™ to pkrawetzky
Re: OpenCPN Beta Version 3.3.1931 Released

Version 3.3.1931
Windows XP
Panasonic Toughbook CF-29

Used the latest beta version going from Mystic, CT to Block Island. Several issues with screen refresh and distorted charts showing up. I zoom out and then which seems to be resolve the problem. If I move the cursor around and drag the map thats when the distortion happens. It sounds like it might be a know problem.
pkrawetzky is offline   Reply With Quote
Old 06-08-2014, 20:46   #56
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN Beta Version 3.3.1931 Released

Hakan...

OK, thanks to your crash dump report I have discovered the root cause of the problem you report.

We had a leak in GDIObjects, specifically Windows Regions. Windows has a hard limit of 10,000 GDI Objects per process, and fails ungracefully when the limit is reached.

We leaked about 1 Object per second, when an active GPS was showing ownship on the screen. Works out to about 3 hours, give or take.

This leak may explain many of our "un-explained" crashes. I know it explains some of the Windows crash reports I have analyzed recently.

For the devs, a nice tool to look at this kind of problem is GDIView.exe, from Nirsoft. Freeware.

GDIView - View GDI handles/resources list and detect GDI leaks

New OCPN code in github master now.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-08-2014, 23:28   #57
Registered User

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

Hi Dave

Tested 3.3.1931 rasters low pow W8.1

Quote:
Originally Posted by bdbcat View Post
Have you tried dense quilted raster charts with 3.3.1931 with texture compression ON and caching OFF on your low end machine? This is the worst case in performance, theoretically. Especially for a single core CPU.
Dave
I tested all configurations
Compression OFF, caching OFF
Compression ON, caching OFF
Compression ON, caching ON but no cache pre-built

In all these cases , with very minor differences, I got the same result
Slowness and frequent hangs
When panning/zooming a bit quickly, it take less than a minute to get O hanging for several ten seconds
Also I got "real" crashes with the last config. Two crash reports have been sent this night
Only after a complete cache rebuilt, things are OK. Not extremely fast but correct

Quote:
Originally Posted by bdbcat View Post
It might be useful for testing to activate the Windows Task Manager, and monitor the CPU load while you are zooming and panning. If it goes very high for long periods of stall, that would be interesting to know.
Dave
I did it
When panning/zooming, the CPU load from O goes up to around 50-55%
Curiously, when hanging, the CPU load tend to go down to about 20% even less
Another element is the memory usage
with CM93 it never overcomes 100 MO
when I start raster in a zone without map, also the memory usage is far less than 100 MO. But when rasters are displayed, it grows up to 600 MO even 700 MO around a hang ( 70% !)
And after having displayed rasters, this parameter never goes down. Even if I pan to a zone without map, or switch to CM93, it stay at 500-600 MO

Jean Pierre
Ptizef is offline   Reply With Quote
Old 07-08-2014, 01:14   #58
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: OpenCPN Beta Version 3.3.1931 Released

Hello Dave,

Quote:
Originally Posted by bdbcat View Post
....
We had a leak in GDIObjects, specifically Windows Regions. Windows has a hard limit of 10,000 GDI Objects per process, and fails ungracefully when the limit is reached.

We leaked about 1 Object per second, when an active GPS was showing ownship on the screen. Works out to about 3 hours, give or take.

This leak may explain many of our "un-explained" crashes. I know it explains some of the Windows crash reports I have analyzed recently.
.......
Dave
Dave, if I had no trouble with my internet connection, I have reported yesterday that the problems we had with the 322 version of this summer.

We sailed in the Channel, an area where many, many circulating cargo, tankers etc. ... but increasingly also sailboats with an AIS transmitter. Besides all tags that have an AIS transmitter on the coasts. This makes a huge amount of AIS messages are received and qur O must deal.

During the return to France, between the Isle of Wight and Cherbourg, whenever O has stopped working (3 times), I struggled to revive O. AIS targets were not displayed briefly . It was a long wait. Too long we have the patience to wait.
Twice I stopped and restarted the PC completely PC. The third time, I was content to use the PolarWiew software, which always runs in parallel with O in spare wheel, never stop working. But Polarwiew only receives NMEA sentences from a GPS backup (ND100 GlobalSat)

In addition, this summer, twice the power of 12V PC has been idle without me noticing. Each time, when the battery in my PC was too low, O stopped working. I suspected VHF that transmits NMEA sentences from the GPS and AIS sentences to be the cause of the blockage. I guess O was unable to process all sentences correctly because those he received was poor.

I hoped to solve this problem by reducing the number of AIS targets visible. I limited distance, acceptable targets, less than 10 miles, but it seems to have been ineffective.

Best regards

Gilletarom.
Gilletarom is offline   Reply With Quote
Old 07-08-2014, 04:59   #59
bcn
Registered User

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

Dave...

Further testing with the Australian S63 set (W7, No OpenGL).

Panning will encrease allocated memory starting from 60MB and OpenCPN will get slower and slower. Memory now > 650MB (2GB RAM total).
And as now Firefox is up as well free memory goes close to zero.

Hubert
bcn is offline   Reply With Quote
Old 07-08-2014, 05:42   #60
Registered User

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

The latest commit of wxWidgets 3.1.0 shows:
Quote:
Commit: 3c7ba391352d3a8d781df7d83738d4ca4616b8a6 [3c7ba39]
Parents: e58975a7e4
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date: 7. August 2014 01:31:41 MESZ
Labels: HEAD origin/master origin/HEAD master
Subversion Revision: 77018

Allow requesting core OpenGL profile and explicit OpenGL version.

Add WX_GL_CORE_PROFILE and WX_GL_{MAJOR,MINOR}_VERSION attributes which can be
used to use modern OpenGL with wxGLCanvas.
Closes #16402.
Does this help to solve the desaster introduced by the so called "optimizations"?
As Hubert already wrote there might be 80% Windows, 10% Mac and 10% Linux users, which is my assumption as well. I don't understand how a single person is able to spoil the code of OCPN with his "optimizations" for a Raspberry Pi.

Gerhard
CarCode 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 03:26.


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.