![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
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. |
|
|
|
|
|
#2 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
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?
|
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
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. Last edited by nlneilson; 07-20-2011 at 03:04 AM. |
|
|
|
|
|
#4 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
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. |
|
|
|
|
|
#5 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
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. |
|
|
|
|
|
#6 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
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. Last edited by nlneilson; 07-20-2011 at 08:54 AM. |
|
|
|
|
|
#7 |
|
Worldwind Developer
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
![]() |
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: ![]() |
|
|
|
|
|
#8 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
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. |
|
|
|
|
|
#9 |
|
Administrator
Join Date: May 2006
Location: Seattle
Posts: 250
![]() |
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. |
|
|
|
|
|
#10 |
|
Administrator
Join Date: May 2006
Location: Seattle
Posts: 250
![]() |
Here is a list of linux commands I used to install and run WorldWind application on fresh Ubuntu linux 10.04 64-bit and OpenJDK 6.
Code:
sudo apt-get install ant1.8 sudo apt-get install openjdk-6-jdk ## This is needed for ANT which is using JRE and not JDK by default sudo apt-get install openjdk-6-jre-headless sudo apt-get install openjdk-6-jre-lib cd ~/Desktop mkdir WorldWind cd WorldWind ## get latest World Wind Java SDK release wget -O worldwind-1.2.0.zip http://builds.worldwind.arc.nasa.gov/worldwind-releases/1.2/builds/worldwind-1.2.0.zip ## extract World Wind SDK unzip worldwind-1.2.0.zip ## get and extract JOGL natives for linux 64-bit wget -O gluegen-rt-natives-linux-amd64.jar http://worldwind.arc.nasa.gov/java/jogl/webstart/gluegen-rt-natives-linux-amd64.jar wget -O jogl-natives-linux-amd64.jar http://worldwind.arc.nasa.gov/java/jogl/webstart/jogl-natives-linux-amd64.jar unzip jogl-natives-linux-amd64.jar unzip gluegen-rt-natives-linux-amd64.jar ## build World Wind ant worldwind.jarfile ant worldwind.extensions.jarfile ## start World Wind 'InstallImageryAndElevationsDemo' java -Xmx1024m -Dsun.java2d.noddraw=true -cp worldwind.jar:worldwindx.jar:jogl.jar:gluegen-rt.jar:gdal.jar gov.nasa.worldwindx.examples.dataimport.InstallImageryAndElevationsDemo Code:
<javac encoding="ISO-8859-1" srcdir="${worldwind.src.dir}"
Last edited by garakl; 07-21-2011 at 03:13 AM. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |