Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-06-2017, 23:40   #1
Registered User

Join Date: Jun 2017
Posts: 76
OpenCPN crashes when zooming oeSENC charts

I am running OpenCPN version 4.6.1 build 2017-03-29 on a Raspberry Pi 3. Earlier this week I installed the oeSENC plugin and loaded some charts I'd purchased.

The charts seem to work well until I try to zoom out a few levels. Then OpenCPN crashes.

If I start OpenCPN from the command line (with or without -no_opengl) I get the following:

(opencpn:1693): Gdk-CRITICAL **: IA__gdk_drawable_get_image: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(opencpn:1693): Gdk-CRITICAL **: IA__gdk_image_get_colormap: assertion 'GDK_IS_IMAGE (image)' failed

(opencpn:1693): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
The program 'opencpn' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 107567 error_code 11 request_code 53 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

I've tried increasing the amount of memory allocated to the GPU from 64 up to 224 but the error remains.

Note that I am also running OpenPlottter but am not sure that's relevant if I start OpenCPN from the command line rather than via Plotter.

I'd very much appreciate any advice on how to approach this issue. Zooming works fine with CM93 charts.
baltika_no_9 is offline   Reply With Quote
Old 05-06-2017, 00:00   #2
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,031
Re: OpenCPN crashes when zooming oeSENC charts

Maybe try running "top" in the command line to see what's using most memory / cpu?
conachair is offline   Reply With Quote
Old 05-06-2017, 00:22   #3
Registered User

Join Date: Jun 2017
Posts: 76
Re: OpenCPN crashes when zooming oeSENC charts




No obvious resource hogging. OpenCPN steadily consuming about 13% of memory.
baltika_no_9 is offline   Reply With Quote
Old 05-06-2017, 00:25   #4
Registered User

Join Date: Jun 2017
Posts: 76
Re: OpenCPN crashes when zooming oeSENC charts

I thought I'd replied to this but the post seems to have disappeared.

Trying again:

baltika_no_9 is offline   Reply With Quote
Old 05-06-2017, 02:11   #5
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,031
Re: OpenCPN crashes when zooming oeSENC charts

Hmmm, try as I might I can't get the crash zooming on oeSENC charts (Spain) .

What opencpn/openplotter versions are you using?

I'm on openplotter 0.11.9 alpha and opencpn 4.6.1.

Also, might be worth having an ask on the openplotter forums >
OpenMarine

I've tried it both with the hardware graphics driver installed and without.

Sorry, can't be any more help.
conachair is offline   Reply With Quote
Old 05-06-2017, 07:11   #6
Registered User

Join Date: Jun 2017
Posts: 76
Re: OpenCPN crashes when zooming oeSENC charts

I'm on the same versions as you, OpenPlotter 0.11.9 alpha and OpenCPN 4.6.1

Interestingly I get an error in the OpenCPN log when I start the application as follows:

pi@panza:~/.opencpn $ tail opencpn.log
15:05:11 BST: Available TRUE
15:05:11 BST: oeSENC_pi failed to initialize OpenGL
15:05:12 BST: Initializing Chart /home/pi/Charts/UKandFrance/redpi-FRatl_UK-2017-1/redpi-FRatl_UK-2017-1/OC-44-201411.oesenc
15:05:12 BST: processChartInfo /home/pi/Charts/UKandFrance/redpi-FRatl_UK-2017-1/redpi-FRatl_UK-2017-1/OC-44-201411.oesenc
15:05:12 BST: validate_SENC_server
15:05:12 BST: Available TRUE
15:05:12 BST: oeSENC_pi failed to initialize OpenGL
15:05:16 BST: TCP Datastream connection established: TCP:localhost:10109
15:05:16 BST: ***GPS Watchdog timeout at Lat:41.1834 Lon: 2.005
15:05:21 BST: TCP Datastream watchdog timeout: TCP:localhost:10109

I am not sure this is relevant, the OpenGL erro as the programme works fine until I zoom out. Zooming in is fine.

Thanks any for your responses, it tells me that it should be working correctly as we're using the same versions. I'll try with a different display just in case.
baltika_no_9 is offline   Reply With Quote
Old 05-06-2017, 08:28   #7
Registered User

Join Date: Jun 2017
Posts: 76
Re: OpenCPN crashes when zooming oeSENC charts

I'm on exactly the same versions as you for both.

How perplexing. I get failures when using either the KMS of the Fake s/w KMS OpenGL drivers but it works fine with the non-OpenGL one. I am certain I didn't make any changes in that area so why it suddenly went wrong is a mystery.

I am leaving things as they are for now and maybe will try the OpenGL another day.

Thanks for your input Conachair it was much appreciated.
baltika_no_9 is offline   Reply With Quote
Old 05-06-2017, 09:08   #8
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,031
Re: OpenCPN crashes when zooming oeSENC charts

Quote:
Originally Posted by baltika_no_9 View Post
I'm on exactly the same versions as you for both.

How perplexing. I get failures when using either the KMS of the Fake s/w KMS OpenGL drivers but it works fine with the non-OpenGL one. I am certain I didn't make any changes in that area so why it suddenly went wrong is a mystery.

I am leaving things as they are for now and maybe will try the OpenGL another day.

Thanks for your input Conachair it was much appreciated.
Hmm, strange.......

How's your power supply? Pi3 can get grumpy if it doesn't get the volts it wants, I get the little lightning bolt icon top-right of the screen very occasionally but had problems before with a cheap 5v supply. Now have a bigger one set to about 5.2v from memory.

Also, welll worth having a word on the openplotter forums - the developers (also involved with supplying the oesenc charts) are very grateful for any info about any bugs / problem so they can fix them if it's an openplotter issue (or otherwise, they want a product which works for everyone).
conachair is offline   Reply With Quote
Old 05-06-2017, 09:35   #9
Registered User

Join Date: Jun 2017
Posts: 76
Re: OpenCPN crashes when zooming oeSENC charts

Now the power supply is a good point. I'll try an alternative even though it is stable at the moment.

I'll also post something on the OpenPlotter forum as suggested.

Thanks again and best wishes
baltika_no_9 is offline   Reply With Quote
Reply

Tags
charts, enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Up-to-date vector charts for OpenCPN - oeSENC bcn OpenCPN 116 13-04-2020 07:16
oeSENC vector charts for OCPN - new plug-in version 1.2 bcn OpenCPN 12 18-06-2017 10:53
OPenCpN collaps by zooming under Win 10 Jacekpio OpenCPN 11 25-04-2016 08:59
OpenCPN 3.3.2222 "Not Responding" when zooming jim326 OpenCPN 9 30-11-2014 05:12
Zooming in/out question Slackwater OpenCPN 5 17-06-2012 09:44

Advertise Here


All times are GMT -7. The time now is 19:11.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.