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 15-04-2014, 01:53   #1
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Ubuntu 14.04 64bit crashes for opengl

Hi,

current version crashes for me when enabling opengl since upgrading to Ubuntu 14.04 64bit. I built some older versions (incl 3.2.0) but they crash as well. Anyone has an idea? I get the following stacktrace (after setting _Xdebug=1) in gdb:
Code:
#0  0x00007ffff14d7420 in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1  0x00007ffff14d45e7 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007ffff14d4695 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007ffff14d5578 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007ffff14d10cd in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffff14d115b in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffff14b77bf in XFillRectangle () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007ffff4273f56 in gdk_draw_rectangle () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#8  0x00007ffff4273f56 in gdk_draw_rectangle () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#9  0x00007ffff76797de in wxWindowDC::Clear() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#10 0x000000000064994e in PianoWin::OnPaint (this=0xe58b70, event=...) at /home/nkiesel/Projects/OpenCPN/src/statwin.cpp:283
#11 0x00007ffff7b68966 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#12 0x00007ffff7b68a0b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#13 0x00007ffff7b68d77 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#14 0x00007ffff76968e7 in wxWindow::GtkSendPaintEvents() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#15 0x00007ffff7696da4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#16 0x00007ffff46317e5 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x00007ffff3ba33b8 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff3bb4d3d in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff3bbc6f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff3bbcce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff4741674 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffff46305e0 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#23 0x00007ffff4292f1f in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#24 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#25 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#26 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#27 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#28 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#29 0x00007ffff4292ec5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#30 0x00007ffff428fb9a in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#31 0x00007ffff4290478 in gdk_window_process_all_updates () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#32 0x00007ffff45b8e21 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#33 0x00007ffff426fce7 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#34 0x00007ffff38d3ce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007ffff38d4048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007ffff38d40ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007ffff462f611 in gtk_main_iteration () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#38 0x00007ffff7670315 in wxApp::Yield(bool) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#39 0x00000000005085fd in MyApp::OnInit (this=0xbe5a70) at /home/nkiesel/Projects/OpenCPN/src/chart1.cpp:2141
#40 0x000000000052742f in wxAppConsole::CallOnInit (this=0xbe5a70) at /usr/include/wx-2.8/wx/app.h:76
#41 0x00007ffff7b15e4c in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#42 0x0000000000504c46 in main (argc=1, argv=0x7fffffffe3c8) at /home/nkiesel/Projects/OpenCPN/src/chart1.cpp:773
nkiesel is offline   Reply With Quote
Old 15-04-2014, 02:37   #2
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Ubuntu 14.04 64bit crashes for opengl

I am not on Linux but Mac OS X with x86_64.
Can you try wxWidgets 2.95 or even 3.0 instead of v2.8?

Gerhard
CarCode is offline   Reply With Quote
Old 15-04-2014, 06:35   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Ubuntu 14.04 64bit crashes for opengl

So this crash never occured in previous versions of ubuntu?

Maybe you can try a different window manager? lxde, xfce4 etc...? Is ubuntu using mir or xorg?
seandepagnier is offline   Reply With Quote
Old 15-04-2014, 09:01   #4
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: Ubuntu 14.04 64bit crashes for opengl

Quote:
Originally Posted by CarCode View Post
I am not on Linux but Mac OS X with x86_64.
Can you try wxWidgets 2.95 or even 3.0 instead of v2.8?

Gerhard
I tried to compile against 3.0 (which I think is actually a 2.95 snapshot) that is available pre-packaged but got compile errors (seems some methods were removed). Is that version working for MacOS? If so, perhaps there are already some #ifdefs in the code I could use to work around this problem.
nkiesel is offline   Reply With Quote
Old 15-04-2014, 09:15   #5
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: Ubuntu 14.04 64bit crashes for opengl

Quote:
Originally Posted by boat_alexandra View Post
So this crash never occured in previous versions of ubuntu?

Maybe you can try a different window manager? lxde, xfce4 etc...? Is ubuntu using mir or xorg?
Nope, 13.10 did not crash. I'm using Xorg (with Gnome Shell instead of Unity), and the open-source Intel driver for i915.

I will try with different window managers and see what happens.
nkiesel is offline   Reply With Quote
Old 15-04-2014, 14:23   #6
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Ubuntu 14.04 64bit crashes for opengl

I have just upgraded to Kubuntu 14.04. Of course using the KDE windows manager. Quick tests does not show any problems with latest mainstream git code.
I'll upgrade wxgtk from 2.8 to 3.0 and and see how that works when compiling, tomorrow...

Thomas
cagney is offline   Reply With Quote
Old 19-04-2014, 13:07   #7
Registered User

Join Date: Mar 2014
Boat: Sovereign 24
Posts: 72
Re: Ubuntu 14.04 64bit crashes for opengl

Seems to be working good with my 32bit 14.04 running OpenCPN 3.3.1419.

Is there a Ubuntu 14.04 repository ppa planned for OpenCPN?
Phantoms is offline   Reply With Quote
Old 19-04-2014, 13:18   #8
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Ubuntu 14.04 64bit crashes for opengl

Quote:
Originally Posted by Phantoms View Post
Seems to be working good with my 32bit 14.04 running OpenCPN 3.3.1419.

Is there a Ubuntu 14.04 repository ppa planned for OpenCPN?
Have a look! 14.04, aka "Trusty", is already in the ppa.
https://launchpad.net/~nohal/+archive/opencpn

Thomas
cagney is offline   Reply With Quote
Old 19-04-2014, 16:59   #9
Registered User

Join Date: Mar 2014
Boat: Sovereign 24
Posts: 72
Re: Ubuntu 14.04 64bit crashes for opengl

Quote:
Originally Posted by cagney View Post
Have a look! 14.04, aka "Trusty", is already in the ppa.
https://launchpad.net/~nohal/+archive/opencpn

Thomas
I had this one in my repositories that hasn't been updated for trusty:

Code:
http://ppa.launchpad.net/opencpn/opencpn/ubuntu
Is that the correct ppa?
Phantoms is offline   Reply With Quote
Old 19-04-2014, 17:22   #10
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: Ubuntu 14.04 64bit crashes for opengl

Phantoms...
Both the PPAs are correct, but Trusty packages are and will be available just in the beta one (the one with nohal in the name) until the next stable OpenCPN release, or at least that's my plan for now, when Trusty is just a couple of days old...

Pavel
nohal is offline   Reply With Quote
Old 19-04-2014, 17:42   #11
Registered User

Join Date: Mar 2014
Boat: Sovereign 24
Posts: 72
Re: Ubuntu 14.04 64bit crashes for opengl

Quote:
Originally Posted by nohal View Post
Phantoms...
Both the PPAs are correct, but Trusty packages are and will be available just in the beta one (the one with nohal in the name) until the next stable OpenCPN release, or at least that's my plan for now, when Trusty is just a couple of days old...

Pavel
Ok, added the nohal one and updated to 3.3.1606. Still runs fine on my 14.04 32bit system. So nkiesel's problem must be with the 64bit side of Ubuntu.
Phantoms is offline   Reply With Quote
Old 12-05-2014, 11:56   #12
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: Ubuntu 14.04 64bit crashes for opengl

Just a quick update: the latest GIT head no longer crashes with the current Ubuntu 14.04 64bit. No idea why, might very well be an Ubuntu update that fixed it.

So I'm officially a happy sailor again!

Next up is Spinnaker Cup from San Francisco to Monterey (about 90 miles costal race)
nkiesel is offline   Reply With Quote
Reply


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 in UBUNTU (12.04 64bit) will not Unpack Don1500 OpenCPN 21 22-04-2014 03:19
Open 3.2.2 Crashes on Ubuntu 12.04 64 bit redog OpenCPN 35 06-08-2013 22:03
OCPN installation on Ubuntu 12.10 64bit fails. HotRod OpenCPN 37 03-05-2013 10:17
3.0.0 on Ubuntu 12.04 armhf - Crashes When Opening ENC bobmor99 OpenCPN 21 27-07-2012 14:27
Opencpn 2.2 Build 823 Crashes when Dashboard Is Opened in Ubuntu tebsin OpenCPN 1 24-08-2010 14:16

Advertise Here


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


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.