Crash on loading

21 replies [Last post]
Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

I installed the 0.9.13 version from the ebuild for 0.9.12 (just renamed it). I successfully installed the game, I can launch the frontend, but when I try to start a round, I see the 'Loading ...' message and then this window crashes (not the frontend). There are no error messages in console. Any suggestions?

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Retest with audio unchecked (frontend and game) in options, and with compiz or other forms of X11 special effects disabled.

Also system info please. (driver/card/window manager/sound system)

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
Retest with audio unchecked (frontend and game) in options

Done, still crashes. I also tried to switch fullscreen/window mode, change resolution. I use dualscreen setup, I tried to disable one screen. Nothing helps.

Quote:
with compiz or other forms of X11 special effects disabled.

I don't use compiz/xgl/etc.

Quote:
Also system info please. (driver/card/window manager/sound system)

Gentoo/linux-2.6.32-gentoo-r7
Video: Nvidia 9600GT powered by nvidia-drivers-195.36.15
Sound: Realtek ALC883 powered by alsa-lib-1.0.21a
QT libs: qt-core-4.6.2-r1, qt-gui-4.6.2, qt-script-4.6.2
WM: openbox-3.4.10

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Could you pastebin ~/.hedgewars/debug0.txt and glxinfo output please?

That nvidia driver - is that the proprietary one?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

nemo allegedly wrote:

Could you pastebin ~/.hedgewars/debug0.txt and glxinfo output please?

http://vminko.org/storage/temp/debug0.txt
http://vminko.org/storage/temp/glxinfo

nemo allegedly wrote:

That nvidia driver - is that the proprietary one?

Yep.

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

I just noticed you said you simply renamed the .12 ebuild - I assume that means you already had liblua installed or you'd think you'dve run into a problem there.

Anyway, the debug0.txt looks fine as well as the glxinfo.

Do you mind trying

gdb /path/to/hwengine /path/to/hedgewars/Data demo.31.hwd

You can use:
http://m8y.org/tmp/demo.31.hwd

Which is some short demo from last night.

If/when it crashes, run bt and give us a trace.

Also, if trace doesn't have much info, it might be best to compile w/ -g - if you can do that in the ebuild, great. Otherwise just unpack the tarball, run cmake, and then in hedgewars/ dir run:
fpc -g hwengine.pas

to generate an hwengine in that dir.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11
nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Ok. That error isn't really the one we want.

That could simply be due to failure to open the file handle for debug0.txt which defaults to the Data dir in this case.
Now that *should* be handled more cleanly but I can't swear to it.

Please copy Data to somewhere you have write access to and rerun this test with the new path.

(that or perhaps give games group users write access to that directory)

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Yeah, this time I saw the 'Loading...' window, and then it crashed:
http://vminko.org/storage/temp/gdb2.log

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Huh. That's an odd one.
Mind running the full game and enabling Reduce Quality?

Then retesting?

Also if you don't mind doing a:

print Gear^

in gdb?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
Mind running the full game and enabling Reduce Quality?

In this case I can start a round. But there's no sound at all (even music), despite the fact that I've enabled it in menu.
edit: I mean there is no sound in game, but I hear music in the menu.

Quote:
Then retesting?

I tried, but it doesn't seem to be affected by my hedgewars config: it still crashes, stack trace is exactly the same.

Quote:
print Gear^

http://vminko.org/storage/temp/gdb3.log

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

lol. By retesting I meant exactly what you did. Ok. So it does work w/ Reduce Quality.

Weird.

As for sound. Dunno. Try turning off frontend sound/music and just leave backend active. Maybe you have issues w/ your soundcard too (like locking).

Kind of out of theories on the actual crash, there's no reason I can see for sigsegv there.

What version of fpc, and what CFLAGS did you build it with?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
Try turning off frontend sound/music and just leave backend active. Maybe you have issues w/ your soundcard too (like locking).

Wow, you are right. Now I have both music and sounds in game.

Quote:
What version of fpc, and what CFLAGS did you build it with?

fpc-2.2.0
CFLAGS="-march=core2 -O2 -pipe"

sheepluva
sheepluva's picture
User offline. Last seen 3 days 6 hours ago. Offline
Joined: 2009-07-18
Posts: 563

Vitel allegedly wrote:

Quote:
Try turning off frontend sound/music and just leave backend active. Maybe you have issues w/ your soundcard too (like locking).

Wow, you are right. Now I have both music and sounds in game.

Quote:
What version of fpc, and what CFLAGS did you build it with?

fpc-2.2.0
CFLAGS="-march=core2 -O2 -pipe"

please try with an fpc 2.2.4 or higher Smile

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

huh. never tried 2.2.0 - a bit old, but not that much so. don't see it explaining the sigsegv.

Well, anyway. you have it working I guess w/ reduced quality, that's something...

sound issue presumably can be fixed by use a sound daemon like pulse or esd w/ your SDL

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
please try with an fpc 2.2.4 or higher

Recompiled using fpc-2.4.0. It doesn't crash with high quality anymore!

Quote:
sound issue presumably can be fixed by use a sound daemon like pulse or esd w/ your SDL

Doesn't the game use ALSA? I thought this kind of issues are specific for OSS. But personally I'm ok with no sounds in menu.

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

The game uses SDL, which *can* use ALSA.
Depends on your configuration for SDL in /etc and/or the USE flags you enabled when you built the lib.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
USE flags you enabled when you built the lib
I have both oss and alsa enabled.

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Also, if the game crashes w/ 2.2.0 could you file a bug requesting a bump in the fpc dependancy for gentoo's ebuild?
Or maybe note it in the existing 0.9.13 bug, if there is one.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

I retested with fpc-2.2.4. The game works fine with this version as well.

Quote:
Or maybe note it in the existing 0.9.13 bug, if there is one.

Done: http://bugs.gentoo.org/show_bug.cgi?id=313013

nemo
nemo's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Vitel allegedly wrote:

Doesn't the game use ALSA? I thought this kind of issues are specific for OSS. But personally I'm ok with no sounds in menu.

As noted, probably dependant on your SDL configuration (the frontend simply calls SDL_Init(SDL_INIT_AUDIO); Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024) ), but anyway. The one thing you might miss in 0.9.13 is the notification sound when players join your room. Useful if you're idling while waiting for people to join.

Also, sound backend wasn't changed between .12 and .13, so no new problems should be cropping up unless your system changed.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Vitel
User offline. Last seen 14 years 3 weeks ago. Offline
Joined: 2010-04-05
Posts: 11

Quote:
probably dependant on your SDL configuration

Is there a corresponding config file?

Quote:
Also, sound backend wasn't changed between .12 and .13, so no new problems should be cropping up unless your system changed.

0.9.13 is actually the first version I tried.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]