World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-20-2011, 01:46 AM   #1
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default WWJ problem on Ubuntu

New Notebook computer and having problems on Ubuntu 11.04.

The demos and apps work fine in Win7.

In Ubuntu the demos and apps crash with about the same errors.

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7807424, pid=2053, tid=2249218928
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Server VM (20.0-b11 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10.2
# Distribution: Ubuntu 11.04, package 6b22-1.10.2-0ubuntu1~11.04.1
# Problematic frame:
# [thread -2036335760 also had an error]
C [+0x424] __kernel_vsyscall+0x10
#
# An error report file with more information is saved as:
# /home/neil/NLN/NLNww/hs_err_pid2053.log
# [ timer expired, abort... ]
Aborted

In System Monitor "java sleeping 100% CPU" (one core of 4)

Ubuntu is dual boot. VMware doesn't support OpenGl, VirtualBox has been downloaded but not tried yet.

The demos open and shows the Marble OK then locks up and eventually crashes.

This has an AMD 64bit Quad Core but running WWJ as 32bit.

I have two other 32bit Notebooks and a 64bit Desktop that run WWJ in Windows and Ubuntu OK.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Old 07-20-2011, 01:58 AM   #2
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

Can you attach the crash log (hs_err_pid2053.log)? My first suspicion is a problem in the graphics driver. Have you updated the driver? Is it the same card and driver as your other Linux machines that are working?
pabercrombie is offline   Reply With Quote
Old 07-20-2011, 02:40 AM   #3
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default

Here is the .log file, the forums limit for attaching I have maxed out so had to transfer that to another computer with FileZilla to upload it.
http://www.nlneilson.com/wwposts/hs_err_pid2053.log

Each computer has a different video card/driver.

The new computer has ATI Radeon HD 4250 graphics
When installing Ubuntu 11.04 there was a pop-up for the 4250 so that was installed.

The 64bit box has an AMD chip and Nvidia GeForce 6150

edit: This is the WWJ app I am trying to run and the .log file is from:
http://www.nlneilson.com/nlnww.html

I don't know if there is or where a .log file for the demos is at.
__________________
Neil
http://www.nlneilson.com

Last edited by nlneilson; 07-20-2011 at 03:04 AM.
nlneilson is offline   Reply With Quote
Old 07-20-2011, 03:31 AM   #4
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default

I don't know if this is related to the Ubuntu problem but in Win the NLNww.jar app is usually run with a bat file to set the heap space:
java -jar -Dsun.java2d.noddraw=true -Xmx512m NLNww.jar
The AMD Phenom II Quad Core apparently takes care of that and shares the load when clicking the .jar file and runs OK, trying to run the .bat file returns:
C:\NLN\NLNww>java -jar -Dsun.java2d.noddraw=true -Xmx512m NLNww.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\NLN\NLNww\jogl.dll
: Can't load IA 32-bit .dll on a AMD 64-bit platform

On Ubuntu there is no comparable error with the .bash file:
cd ~/NLN/NLNww
java -Xmx512m -Dsun.java2d.noddraw=true -Djava.library.path=. -jar NLNww.jar
or variations of this.
clicking the .jar directly nothing happens even with execute permission.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Old 07-20-2011, 05:39 AM   #5
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

The "Can't load IA 32-bit .dll on a AMD 64-bit platform" indicates that you're running on a 64 bit OS and using a 64 bit JVM, but your jogl.dll is for a 32 bit OS. If you need a 64 bit version of JOGL you can find it here: http://download.java.net/media/jogl/...jsr-231-1.1.1/. Alternatively, you can use a 32 bit JVM on a 64 bit platform, and then the 32 bit JOGL library will work.

I'm afraid that I wasn't able to learn anything from the error log in your previous post. I still suspect a problem/bug in the Linux graphics drivers on this machine.
pabercrombie is offline   Reply With Quote
Old 07-20-2011, 08:27 AM   #6
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default

The only time "Can't load IA 32-bit .dll on a AMD 64-bit platform" came up was on Win7 when trying to run the app with the .bat file. Clicking on the .jar it ran OK.
I had installed Eclipse 32bit which may have pulled the 32bit Java in.
Also when I initially run Win7 it asked to update the JRE.
Or maybe this computer was set up by HP to run either 32 or 64bit Java.

Ubuntu 11.04 was installed with the 32bit ISO.
I downloaded Eclipse Indigo and running the WWJ app from the IDE shows the same
error as trying to run the the .jar with a .bash file:

# SIGSEGV (0xb) at pc=0xb780
# Java VM: OpenJDK Server VM (20.0-b11 mixed mode linux-x86)

The app hangs, cannot be closed even if Eclipse is closed and System Manager shows the jogl .jars are still running. After several minutes the app closes by itself.

There has not been a problem shown of 32bit v 64bit on Ubuntu.

With a Google search found something about SIGSEGV and Server VM.
Apparently it should be a regular VM (whatever that is) rather than Server VM but that was back in 2009.

I just upgraded the 64bit box from Ubuntu 10.10 to 11.04.
Now it doesn't work, driconf does not recognize the Nvidia video.
javax.media.opengl.GLException: DXTn compressed textures not supported by this graphics card

Will stick with Windows for now on the computers with problems.
__________________
Neil
http://www.nlneilson.com

Last edited by nlneilson; 07-20-2011 at 08:54 AM.
nlneilson is offline   Reply With Quote
Old 07-20-2011, 09:17 AM   #7
what_nick
Worldwind Developer
 
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
what_nick is an unknown quantity at this point
Default

Hi Neil,

I am not sure if you have realised that you can use JNLP's to perform platform detection, native library choosing and launching without a webserver. Try this option if you are supporting lots of platforms.

Cheers,

whatnick.
__________________
Coding This and That in World Wind and helping new people out, as long as they don't pester too much.
Currently blogging at: http://whatnicklife.blogspot.com
Working at:
Aerometrex - http://aerometrex.com.au/blog/
Impact so far:


what_nick is offline   Reply With Quote
Old 07-20-2011, 10:23 AM   #8
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default

Hi whatnick

I have never used JNLP's.
I have no idea how that would be done.

I just removed Ubuntu 11.04 and installed 10.10, apparently there are a lot of problems on the latest version with driconf and OpenGL apps with many video cards.

Installed driconf and it recognizes my video, installed the OpenJDK.

The demos run but just shows a white globe, the layer list, controls, etc are OK.

My app runs without the SIGSEGV error.
It shows a white globe and the rest seems OK same as the demos.
I get this:

unsupported texture format in setup_hardware_state
failed to validate texture for unit 0.

Have not researched that yet.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Old 07-21-2011, 02:49 AM   #9
garakl
Administrator
 
Join Date: May 2006
Location: Seattle
Posts: 250
garakl is on a distinguished road
Default

Neil, I would suspect your libGL.so.* driver. From your log file I see that your Ubuntu installation is using the /usr/lib/fglrx/libGL.so.1.2

I just installed Ubuntu 10.4 x64 and I have the /usr/lib/mesa/libGL.so.6.0.12092.670880

I had many issues with fglrx, especially with the graphics performance.

Last edited by garakl; 07-21-2011 at 03:02 AM.
garakl is offline   Reply With Quote
Old 07-21-2011, 03:42 AM   #10
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,617
nlneilson is on a distinguished road
Default

Quote:
Originally Posted by garakl View Post
Neil, I would suspect your libGL.so.* driver. From your log file I see that your Ubuntu installation is using the /usr/lib/fglrx/libGL.so.1.2

I just installed Ubuntu 10.4 x64 and I have the /usr/lib/mesa/libGL.so.6.0.12092.670880

I had many issues with fglrx, especially with the graphics performance.
Did you mean 11.04 rather than 10.04?

I am attempting to run everything as 32bit as most 64bit computers will run that as well as the 32bit computers.

Almost all of my development is in Windows but want the apps to be able to run on Linux, at least Ubuntu.

When I update I just replace the gov directory, have any of the jogl .so files been changed?
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup WWJ Hervé Development Help 96 03-04-2013 03:42 PM
Place Name problem in Ubuntu nlneilson Development Help 14 06-23-2012 12:52 PM
WWJ app run in Ubuntu on USB flash drive. nlneilson Development Help 18 07-04-2011 05:44 PM
WWJ - Ubuntu 10.10 nlneilson Development Help 4 10-19-2010 10:03 PM
Problem in running WWJ under Ubuntu linnuxxy Development Help 19 03-20-2009 08:10 PM


All times are GMT +1. The time now is 08:08 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.