Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.96a is out! (05/05/23); Blog post: Colony Crises (11/24/23)

Pages: [1] 2 3

Author Topic: fatal error on main menu  (Read 15359 times)

liamdawe

  • Ensign
  • *
  • Posts: 23
    • View Profile
    • Gaming On Linux
fatal error on main menu
« on: May 05, 2011, 01:23:17 PM »

http://pastebin.com/ibiafZB7

Under Linux 64bit Ubuntu 11.04

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #1 on: May 05, 2011, 01:31:22 PM »

Ugh, sorry to hear that.

Would you mind also posting the contents of starfarer.log? (could also email it using the Contact Us link on the main page of the site).

Also, can you try running in non-fullscreen mode and see if you have the same problem?
Logged

liamdawe

  • Ensign
  • *
  • Posts: 23
    • View Profile
    • Gaming On Linux
Re: fatal error on main menu
« Reply #2 on: May 05, 2011, 01:45:24 PM »

That was in windowed mode.

http://pastebin.com/1GK3SY6N

That's the log file.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #3 on: May 05, 2011, 01:51:08 PM »

Thanks. Hmm... any chance your video drivers are out of date? That's the first thing that comes to mind.

Seems like it's generally working (gets as far as the main menu, at any rate), but then when anything fancy starts to happen, crash.

Actually, when exactly *does* it crash? Do you get to see the main menu?
Logged

liamdawe

  • Ensign
  • *
  • Posts: 23
    • View Profile
    • Gaming On Linux
Re: fatal error on main menu
« Reply #4 on: May 05, 2011, 01:53:15 PM »

Video drivers fully updated, AMD 5770 HD.

I see the main menu but the mouse pointer is a bit messed up, has like a box around it. Can't do anything just crashes on the menu.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #5 on: May 05, 2011, 02:02:46 PM »

Ack. Can you try this build and post another log file (just starfarer.log)?

Edit: It will likely crash too, but the logfile is a bit more informative.

Edit #2: It looks like it's a graphics driver issue.
Code
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [+0x430]  __kernel_vsyscall+0x10
C  [fglrx_dri.so+0x1837b23]
[error occurred during error reporting (printing native stack), id 0xb]

Unfortunately, I don't think there is anything I can do about that.
« Last Edit: May 05, 2011, 03:14:40 PM by Alex »
Logged

liamdawe

  • Ensign
  • *
  • Posts: 23
    • View Profile
    • Gaming On Linux
Re: fatal error on main menu
« Reply #6 on: May 06, 2011, 01:31:44 AM »

Well here are the two logs with the build you sent me:

http://pastebin.com/DQ5HghfA
http://pastebin.com/KU6WaPvj

If it is a driver issue and therefore i cannot play, can i get a refund since it would be useless to me.

Knall

  • Ensign
  • *
  • Posts: 17
    • View Profile
Re: fatal error on main menu
« Reply #7 on: May 06, 2011, 02:14:13 AM »

So.. Let's see.
I think I had the same problem.
I am currently running Ubuntu 10.10 and also have a HD5770 (using the latest fglrx driver drom the x-swat ppa).
When I started the game, the game crashed after the menu had loaded. (I think in a very similar way to you)

What I did, was changing the shellscript to load the openjdk java version shipped with ubuntu (and not the Hotspot version shipped with starfarer)
After this change, the game started just fine.
The weird thing about it is, that now I'm also able to switch back to the hotspot version, and the game is now not crashing anymore.
Maybe it has something to do with the initial game settings.

HTH Knall
Logged

liamdawe

  • Ensign
  • *
  • Posts: 23
    • View Profile
    • Gaming On Linux
Re: fatal error on main menu
« Reply #8 on: May 06, 2011, 02:31:18 AM »

Can you tell me how you did that so i can test it too.

Knall

  • Ensign
  • *
  • Posts: 17
    • View Profile
Re: fatal error on main menu
« Reply #9 on: May 06, 2011, 02:57:47 AM »

Ok, so I changed the line in "starfarer.sh"
from
Code
./jre_linux/bin/java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -Xms256m -Xmx256m -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.res.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:lwjgl_util_applet.jar:jinput.jar:lwjgl_test.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar com.fs.starfarer.StarfarerLauncher
to
Code
java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -Xms256m -Xmx256m -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.res.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:lwjgl_util_applet.jar:jinput.jar:lwjgl_test.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar com.fs.starfarer.StarfarerLauncher

this will run the game using your default jvm. (You can see which one if you type "java -version" in the console)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #10 on: May 06, 2011, 08:15:15 AM »

Ok, so I changed the line in "starfarer.sh"
from
Code
./jre_linux/bin/java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -Xms256m -Xmx256m -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.res.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:lwjgl_util_applet.jar:jinput.jar:lwjgl_test.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar com.fs.starfarer.StarfarerLauncher
to
Code
java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -Xms256m -Xmx256m -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.res.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:lwjgl_util_applet.jar:jinput.jar:lwjgl_test.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar com.fs.starfarer.StarfarerLauncher

this will run the game using your default jvm. (You can see which one if you type "java -version" in the console)

Thanks for posting this (and figuring it out in the first place!). Hmm, I can't imagine what could possibly make it run fine with hotspot after it had already failed to, this is very interesting.

Can you tell me how you did that so i can test it too.

Would you mind letting me know if this works for you? If it does, we just might start offering a linux build bundled with OpenJDK as an option.
Logged

Knall

  • Ensign
  • *
  • Posts: 17
    • View Profile
Re: fatal error on main menu
« Reply #11 on: May 06, 2011, 12:13:51 PM »

Hello again,

I investigated a bit further, was trying to reproduce the error.
If I double-click on the original shellscript with nautilus and choose "run" it will crash when it reaches the menu (nothing changed at all). http://pastebin.com/MHtHdYXz
If I do the same with my modified shellscript, it runs (seemingly) correctly, but also produces a hs_err_pid*.log file after quitting. http://pastebin.com/FnDjsyZN
Same happens if you use a launcher.

I didn't notice that it generated error files, there was 1 for every start of the program. :P

Starting starfarer from the terminal (or choosing "run in terminal" in nautilus) will run the game without crashes at all. weird.
The downside from running in terminal: If you have visual effects enabled it will flicker like ****. Seizure warning.
I think the flickering is a problem related to fglrx, I've also encountered it on some other games using lwjgl (Minecraft and every game from puppy games) and also some other opengl games.
I haven't tried using the sun (oracle :/ ) jvm. Don't want the "partners" ppa. :P
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #12 on: May 06, 2011, 12:27:53 PM »

Thanks for the detailed report! It really helps to know this in case someone else has a similar problem.
Logged

shadowfire

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: fatal error on main menu
« Reply #13 on: May 06, 2011, 02:37:25 PM »

Apparently it has to do with ATI video cards and this game.  I read through the post and copied old ./starfarer.sh to a bak then edited original .sh to what you put and I still can not load the game with out it crashing any ideas and clear method of making the game work?  Let me know.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23008
    • View Profile
Re: fatal error on main menu
« Reply #14 on: May 06, 2011, 02:54:08 PM »

Nothing definitive at this point, I'm afraid. I apologize for the trouble.

Do you have the latest drivers for your card? That's might help.

Which version of the JDK do you have on your system? OpenJDK or Hotspot? (run java -version to find out) If you have Hotspot, then getting OpenJDK and running it with that might help - that's what seems to have worked for Knall.

What's your video card? You did say it's ATI, but I wonder if it's a problem with ATI across the board or if it's limited to a particular card.

Do you know if you are able to run other games that use OpenGL? (say, Minecraft, or any of the Puppy Games games?)?
Logged
Pages: [1] 2 3