jME SDK crashes shortly after startup on Ubuntu

I’m running Ubuntu and my jME SDK crashes after it has been started for just a few seconds. Here is the terminal output:

[java]wasd@wasd-EP35-DS3:~$ /bin/sh “/home/wasd/jmonkeyplatform/bin/jmonkeyplatform”

/home/wasd/jmonkeyplatform/bin/…/platform/lib/nbexec: rad 539: 13421 Avbruten (SIGABRT) “/usr/lib/jvm/java-6-openjdk/bin/java” -Djdk.home="/usr/lib/jvm/java-6-openjdk" -classpath “/home/wasd/jmonkeyplatform/platform/lib/boot.jar:/home/wasd/jmonkeyplatform/platform/lib/org-openide-modules.jar:/home/wasd/jmonkeyplatform/platform/lib/org-openide-util.jar:/home/wasd/jmonkeyplatform/platform/lib/org-openide-util-lookup.jar:/usr/lib/jvm/java-6-openjdk/lib/dt.jar:/usr/lib/jvm/java-6-openjdk/lib/tools.jar” -Dnetbeans.system_http_proxy=“DIRECT” -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/home/wasd/jmonkeyplatform/bin/…/jmonkeyplatform:/home/wasd/jmonkeyplatform/bin/…/harness:/home/wasd/jmonkeyplatform/bin/…/ide:/home/wasd/jmonkeyplatform/bin/…/java:" -Dnetbeans.home="/home/wasd/jmonkeyplatform/platform" ‘-Xms24m’ ‘-Xmx512m’ ‘-XX:PermSize=256m’ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/wasd/.jmonkeyplatform/dev/var/log/heapdump.hprof" org.netbeans.Main --userdir “/home/wasd/.jmonkeyplatform/dev” “–branding” “jmonkeyplatform” 0<&0

[/java]

Since it says OnOutOfMemoryError i guess it’s out of memory. If that’s the case, how do i run it with more memory?

Huumm! I already saw this problem before. These values shown by output [java]-Xms24m’ ‘-Xmx512m’ ‘-XX:PermSize=256m’[/java] remind me of this topic starting by penultimate post, perhaps it will help you.

I tried messing around with the numbers in jmonkeyplataform.conf but it doesnt make any difference. I got 4gb ram on my machine and i set the numbers to -Xms64m -Xmx1400m but it still crashes at startup. The terminal outputs the new numbers i have entered so i have saved the file correctly.

Try installing as root

I’m quite new to linux, how do i uninstall the SDK? :stuck_out_tongue: I think i know how to install it as root: “sudo sh ‘path/to/file’”

theres an uninstall.sh in the jMP folder

Ah, how obvious. Should have seen that one myself.

But it didn’t help. I uninstalled with sudo, then installed with sudo. Still crashes at the same place. I increased the numbers in jmonkeyplataform.conf, still no luck.

Ok, then it might be a problem on the native side, do you have the latest graphics drivers for your card installed?

I have something, Not sure if it’s the latest. I have an ATI HD4850. I see the 3D planet at the startup so it’s not that which is crashing the jME.

When i go to the driver-thing (i used a swedish OS so I’m not sure what it’s called in english) I have a green dot on the graphics card. I can play WoW in Wine with 30-60 fps on medium-low.

Keep in mind that the terminal output includes OnOutOfMemoryError…

You aren’t the one with this problem.

glaucomardano said:
You aren't the one with this problem.

That doesn't look like my problem. I can't even start the SDK. His projects run out of memory when he starts them.

I tried setting -Xmx64m but according to ubuntus task manger the SDK is using close to 200mb when it crashes so I'm starting to think that the setting in changing in jmonkeyplataform.conf doesn't do anything about it's memory limit.

Yeah, but why should jMP use more memory on your computer and then halt w/o a proper stack trace? This problem is definitely not on the Java side.

I get this error now too. Not sure if i had it before or if i just missed it while copying the terminal output for my first post.

[java]#

A fatal error has been detected by the Java Runtime Environment:

#

SIGSEGV (0xb) at pc=0xb77b5424, pid=14550, tid=1343896432

#

JRE version: 6.0_20-b20

Java VM: OpenJDK Server VM (19.0-b09 mixed mode linux-x86 )

Derivative: IcedTea6 1.9.2

Distribution: Ubuntu 10.10, package 6b20-1.9.2-0ubuntu2

Problematic frame:

C [+0x424] __kernel_vsyscall+0x10

#

An error report file with more information is saved as:

/home/wasd/hs_err_pid14550.log

[thread 1375730544 also had an error]

#

If you would like to submit a bug report, please include

instructions how to reproduce the bug and visit:

Bugs : openjdk-6 package : Ubuntu

#

[/java]

And after that comes the regular text that i have pasted in my first post.

Tell me if you want the hs_err_pid14550.log it saved.

I don’t know why you’re using the jdk-20 if already there’s the jdk-23…but that’s not the case…since this is not a java problem.

Please try downloading and installing the latest ATI catalyst driver.

An issue in the ATI driver. But the bug in their tracker doesn’t exist anymore? They must have fixed it then.

normen said:
Please try downloading and installing the latest ATI catalyst driver.

When i open my Catalyst control panel it says i got version 10.12. And when i go through http://support.amd.com/us/gpudownload/Pages/index.aspx it tells gives me a link for 10.11 :S No idea where i got 10.12, i think i downloaded it from their site.

I may try uninstalling and then downloading 10.11 from their site if you think it sounds like a good idea.
WASD said:
No idea where i got 10.12, i think i downloaded it from their site.


ATI Catalyst Display Driver 10.12
glaucomardano said:
ATI Catalyst Display Driver 10.12

"Sistema: Windows XP/Vista/7"
(I'm running Ubuntu if you missed that)

However I have found a fix to my problem. I downloaded the jME SDK Alpha build 2 instead of 3 and manually updated the sources to the latest version now and it works just fine. The SDK is stuck at "opening scene viewer 14%" but that's about the only problem I've had so far. Good enough for me. I'm not at a very high level yet and about the only use I've had from using your IDE instead of Netbeans is that i don't have to set up the libraries.

Edit: Actually it doesn't work very well at all. The IDE is fine but I have made a small game and it often randomly crashes with this output. Sometimes after 5 sec, sometimes after 1 minute.
[java]#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb785d424, pid=11391, tid=1789963120
#
# JRE version: 6.0_20-b20
# Java VM: OpenJDK Server VM (19.0-b09 mixed mode linux-x86 )
# Derivative: IcedTea6 1.9.2
# Distribution: Ubuntu 10.10, package 6b20-1.9.2-0ubuntu2
# Problematic frame:
# C[thread 1789397872 also had an error]
[+0x424] __kernel_vsyscall+0x10
#
# An error report file with more information is saved as:
# /home/wasd/jMonkeyProjects/BallGuy/hs_err_pid11391.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
Java Result: 134[/java]
Looks just like the output i got when jME SDK Alpha 3 crashes :( Gonna try updating my drivers soon.
WASD said:
"Sistema: Windows XP/Vista/7"
(I'm running Ubuntu if you missed that)


No problem! Found it for linux system also : ATI Catalyst Display Driver 10.12