Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314813 - games-strategy/hedgewars-0.9.13: game crashes while starting
Summary: games-strategy/hedgewars-0.9.13: game crashes while starting
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-12 14:15 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2010-04-19 17:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A hedgewars.ini with sound disabled. Put in ~/.hedgewars (hedgewars.ini,406 bytes, text/plain)
2010-04-16 14:19 UTC, bugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2010-04-12 14:15:11 UTC
Description

Reproducible: Always

Steps to Reproduce:
1. emerge hedgewars
2. hedgewars

Actual Results:  
$ hedgewars 
Floating point exception
Comment 1 bugs 2010-04-15 14:56:15 UTC
bug #313013, comment #6 (and comments further down - also see the attachment)
Comment 2 Sergey 'L29Ah' Alirzaev 2010-04-15 15:03:35 UTC
(In reply to comment #1)
> bug #313013, comment #6 (and comments further down - also see the attachment)

Eh? I have hedgewars built w/ fpc-2.4.0
Comment 3 bugs 2010-04-15 15:24:00 UTC
AMD64 though?

Also, just for heck of it, try 2.2.4?

I guess this could be a CFLAG thing. What are yours?
Comment 4 Sergey 'L29Ah' Alirzaev 2010-04-15 18:36:36 UTC
(In reply to comment #3)
> AMD64 though?
yep
> Also, just for heck of it, try 2.2.4?
same here
> I guess this could be a CFLAG thing. What are yours?
-O2 -pipe -fomit-frame-pointer
Comment 5 bugs 2010-04-15 19:35:51 UTC
well, the -fomit-frame-pointer is pointless on AMD64 (I think ignored anyway by gcc)

But apart from that, does seem quite safe.

Well, feel free to stop by IRC if you want to look into it further.  Could be a different issue.

Does it go away if you enable "reduce quality" ?
Comment 6 Sergey 'L29Ah' Alirzaev 2010-04-16 08:42:30 UTC
(In reply to comment #5)
> well, the -fomit-frame-pointer is pointless on AMD64 (I think ignored anyway by
> gcc)
> 
> But apart from that, does seem quite safe.
> 
> Well, feel free to stop by IRC if you want to look into it further.  Could be a
> different issue.
Where? I missed your message yesterday.
> Does it go away if you enable "reduce quality" ?
Huh?

Comment 7 bugs 2010-04-16 14:13:41 UTC
>> Well, feel free to stop by IRC if you want to look into it further.  Could be a
>> different issue.
> Where? I missed your message yesterday.

Um. #hedgewars ? :-p

>> Does it go away if you enable "reduce quality" ?
> Huh?

Reduce Quality - look in options...

Comment 8 bugs 2010-04-16 14:18:58 UTC
I missed the part where it was the frontend that was crashing.  Thought it was same issue as the guys in the .13 bug.

Ok, this is sound related.  SDL is having problems loading the frontend music.  My guess is missing ogg encoding, but who knows.

This seems to happen a lot to gentoo users BTW, forgot about it due to the other SIGFPE.

I will attach a test hedgewars.ini w/ sound disabled shortly.
Comment 9 bugs 2010-04-16 14:19:49 UTC
Created attachment 228035 [details]
A hedgewars.ini with sound disabled.  Put in ~/.hedgewars
Comment 10 Sergey 'L29Ah' Alirzaev 2010-04-16 14:45:14 UTC
The problem was about media-libs/libsdl compiled w/o USE=alsa
The ebuild should check for this or something.
Comment 11 bugs 2010-04-16 14:48:42 UTC
The underlying issue isn't needing ALSA, is more something like, your HW is incapable of HW mixing, and thus you must ensure you use consistent underlying sound system.

For example, if you choose esd, then ALSA must use esd, and other sound libs too.  If you're using only ALSA SW mixing, then everything must use ALSA.
Comment 12 bugs 2010-04-19 14:03:36 UTC
BTW, you might want to close this bug out, now that you've resolve the issue with your sound system...
Comment 13 Sergey 'L29Ah' Alirzaev 2010-04-19 14:37:36 UTC
(In reply to comment #12)
> BTW, you might want to close this bug out, now that you've resolve the issue
> with your sound system...

The bug is not about my sound system, but about hedgewars not bothering to puke out sane error messages or operate w/o sound out of the box, and gentoo ebuilds not requiring to specify the appropriate use flags. These are pretty open methings.
Comment 14 bugs 2010-04-19 15:03:17 UTC
The bug was your misconfigured sound system causing a failure to open the device.

I'm not sure what you think gentoo can do here, since there are a number of possible legitimate USE flags that would be ok
(only requirement is you be consistent if your HW isn't capable of running more than one).

In short, I'm going w/ PEBKAC, but whatever, will let the bug wranglers decide.
Comment 15 Sergey 'L29Ah' Alirzaev 2010-04-19 15:15:08 UTC
(In reply to comment #14)
> The bug was your misconfigured sound system causing a failure to open the
> device.
The bug was libsdl compiled w/o any sound output support.

> I'm not sure what you think gentoo can do here, since there are a number of
> possible legitimate USE flags that would be ok
> (only requirement is you be consistent if your HW isn't capable of running more
> than one).
Gentoo can make me choose at least one of possible sound system use flags for libsdl.

Anyway, according to gentoo devs, it's my failure: i've failed to read the *comment* in the libsdl ebuild (why didn't they put it in ewarn, huh?):
# WARNING:
# if you disable the audio, video, joystick use flags or turn on the custom-cflags use flag
# in USE and something breaks, you pick up the pieces.  Be prepared for
# bug reports to be marked INVALID.

Am i supposed as an user to read every ebuild i'm installing?
Comment 16 Sergey 'L29Ah' Alirzaev 2010-04-19 15:36:26 UTC
(In reply to comment #15)
> Anyway, according to gentoo devs, it's my failure: i've failed to read the
> *comment* in the libsdl ebuild (why didn't they put it in ewarn, huh?):
> # WARNING:
> # if you disable the audio, video, joystick use flags or turn on the
> custom-cflags use flag
> # in USE and something breaks, you pick up the pieces.  Be prepared for
> # bug reports to be marked INVALID.
> 
> Am i supposed as an user to read every ebuild i'm installing?
> 
Fail: there IS ewarn, but the comment and ewarn were about audio, video and joystick, but not about some specific output, so i did nothing wrong.
Comment 17 Mr. Bones. (RETIRED) gentoo-dev 2010-04-19 15:38:11 UTC
The hedgewars ebuild already requires that libsdl be built with the audio USE flag.
Comment 18 Sergey 'L29Ah' Alirzaev 2010-04-19 15:49:59 UTC
(In reply to comment #17)
> The hedgewars ebuild already requires that libsdl be built with the audio USE
> flag.
> 

I'll repeat again: libsdl WAS built w/ audio useflag.
Comment 19 Mr. Bones. (RETIRED) gentoo-dev 2010-04-19 16:08:43 UTC
Ah, yes.  Well, comment #14 is pretty much right on.  You can't have a broken sound setup and expect applications to just figure it out for you.  I'm closing this INVALID until the mind-reading interface to portage is out of beta.
Comment 20 Sergey 'L29Ah' Alirzaev 2010-04-19 17:21:58 UTC
(In reply to comment #19)
> mind-reading interface to portage

> Gentoo can make me choose at least one of possible sound system use flags for
libsdl.
> there IS ewarn, but the comment and ewarn were about audio, video and
joystick, but not about some specific output, so i did nothing wrong.

I guess it's useless to argue w/ a person who is unable to read. Anyway, thank you for the hints.