Bug 546473 - [abrt] crash in warzone2100-2.2.1-3.fc12
Summary: [abrt] crash in warzone2100-2.2.1-3.fc12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: warzone2100
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karol Trzcionka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3a6483e0e41c4719a1cc2560f72...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-10 23:09 UTC by Vaclav "sHINOBI" Misek
Modified: 2010-01-29 03:27 UTC (History)
7 users (show)

Fixed In Version: 2.3-0.1.beta6.fc12
Clone Of:
Environment:
Last Closed: 2010-01-29 03:27:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (10.40 KB, text/plain)
2009-12-10 23:09 UTC, Vaclav "sHINOBI" Misek
no flags Details

Description Vaclav "sHINOBI" Misek 2009-12-10 23:09:14 UTC
abrt 1.0.1 detected a crash.

Attached file: backtrace
cmdline: warzone2100
component: warzone2100
executable: /usr/bin/warzone2100
kernel: 2.6.31.6-162.fc12.x86_64
package: warzone2100-2.2.1-3.fc12
rating: 4
reason: Process was terminated by signal 11

Comment 1 Vaclav "sHINOBI" Misek 2009-12-10 23:09:17 UTC
Created attachment 377617 [details]
File: backtrace

Comment 2 Dušan Hokův 2009-12-11 20:28:45 UTC
I have same problem. Game segfaulted. When I run warzone2100 with --nosound, game run. I think that there are problem with audio.

Comment 3 Dušan Hokův 2009-12-11 20:57:24 UTC
I tried another test. I run warzone2100 under root, game not crashed and run with sound.

Some messages on terminal:

[root@hunterz hunterz]# warzone2100 --window --sound
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

AL lib: alsa.c:486: Could not open playback device 'default': Connection refused
AL lib: oss.c:168: Could not open /dev/dsp: No such file or directory

Under user:

[hunterz@hunterz ~]$ warzone2100 --window --sound
Segmentation fault (core dumped)


[hunterz@hunterz ~]$ openal-info 
Available playback devices:
    ALSA Software on default
    ALSA Software on HDA Intel [AD198x Analog] (hw:0,0)
    ALSA Software on HDA Intel [AD198x Digital] (hw:0,1)
    OSS Software
    PortAudio Software
    PulseAudio Software
Segmentation fault (core dumped)

under root:

[root@hunterz hunterz]# openal-info
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

AL lib: alsa.c:486: Could not open playback device 'default': Connection refused
AL lib: oss.c:168: Could not open /dev/dsp: No such file or directory
Available playback devices:
    ALSA Software on default
    ALSA Software on HDA Intel [AD198x Analog] (hw:0,0)
    ALSA Software on HDA Intel [AD198x Digital] (hw:0,1)
    OSS Software
    PortAudio Software
    PulseAudio Software
Available capture devices:
    ALSA Capture on default
    ALSA Capture on HDA Intel [AD198x Analog] (hw:0,0)
    ALSA Capture on HDA Intel [AD198x Digital] (hw:0,1)
    ALSA Capture on Brooktree Bt878 [Bt87x Digital] (hw:1,0)
    ALSA Capture on Brooktree Bt878 [Bt87x Analog] (hw:1,1)
    OSS Capture
    PulseAudio Capture
Default device: ALSA Software
Default capture device: ALSA Capture on default
ALC version: 1.1
ALC extensions:
    ALC_ENUMERATE_ALL_EXT, ALC_ENUMERATION_EXT, ALC_EXT_CAPTURE, 
    ALC_EXT_disconnect, ALC_EXT_EFX, ALC_EXTX_thread_local_context
OpenAL vendor string: OpenAL Community
OpenAL renderer string: OpenAL Soft
OpenAL version string: 1.1 ALSOFT 1.10.622
OpenAL extensions:
    AL_EXTX_buffer_sub_data, AL_EXT_EXPONENT_DISTANCE, AL_EXT_FLOAT32, 
    AL_EXT_IMA4, AL_EXT_LINEAR_DISTANCE, AL_EXT_MCFORMATS, AL_EXT_OFFSET, 
    AL_EXTX_sample_buffer_object, AL_EXTX_source_distance_model, 
    AL_LOKI_quadriphonic
EFX version: 1.0
Max auxiliary sends: 2
Available filters:
    Low-pass
Available effects:
    EAX Reverb
    Reverb
    Echo

Comment 4 Vaclav "sHINOBI" Misek 2009-12-11 21:27:07 UTC
Yup, the same for me. It seems to be related to my bug #546474. I'm uncertain, if it's alsa, pulseaudio or openal-soft bug.

Comment 5 Dušan Hokův 2009-12-12 09:41:47 UTC
I think openal have problem, try openal-info under user and under root.

Comment 6 Damien Spaulding 2009-12-29 12:51:57 UTC
Even with the latest version of openal-info from the testing repo, warzone still segfaults.

Although onpenal-info functions without segfaulting. I'm guessing the bug is in pulse.

Comment 7 Vaclav "sHINOBI" Misek 2010-01-12 22:08:56 UTC
Solved for me in warzone2100-2.3-0.1.beta6.fc12.x86_64.

Comment 8 Mark Williamson 2010-01-13 15:35:34 UTC
Setting:

drivers = pulse

in .alsoftrc fixes this problem for me, along with cracking audio I had in another (self-compiled) OpenAL game.  AFAICT this makes OpenAL use Pulse directly, instead of Pulse's Alsa emulation.  Whatever the problem is with ALSA is probably a bug somewhere but  am curious as to why OpenAL doesn't use the pulse driver by default?

Comment 9 Mark Williamson 2010-01-13 17:27:51 UTC
(In reply to comment #8)
> Setting:
> 
> drivers = pulse
> 
> in .alsoftrc fixes this problem for me,

In the interest of credit where credit's due, I actually found this tip here: http://wiki.archlinux.org/index.php/PulseAudio#Configuration_of_OpenAL_for_PulseAudio

Comment 10 Damien Spaulding 2010-01-13 21:42:44 UTC
The drivers=pulse fix solved my problem.

Thanks!

Comment 11 Fedora Update System 2010-01-14 01:25:23 UTC
warzone2100-2.3-0.1.beta6.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update warzone2100'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0532

Comment 12 Mark Williamson 2010-01-14 01:44:29 UTC
(In reply to comment #10)
> The drivers=pulse fix solved my problem.
> 
> Thanks!    

This bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=555112
includes a link to an OpenAL update that makes OpenAL use PulseAudio by default, so that you don't have to set drivers=pulse anywhere.  I've confirmed it works for me and the Warzone crash goes away.  Thanks to Thomas Kowaliczek for a super-quick response in packaging an updated OpenAL!

Even if that resolves the problem for users it's only because the ALSA emulation is no longer being used.  I suspect that an underlying bug exists, since using ALSA emulation shouldn't cause programs to crash, even if it is suboptimal!  So perhaps this bug should stay open for now?

Comment 13 Vaclav "sHINOBI" Misek 2010-01-14 07:21:39 UTC
I tested it with openal-soft-1.10.622-6.0ceaa01c3de75c946ff2e7591e7f69b28ec00409git.fc12, no changes in .alsoftrc and warzone is not crashing any more.

Comment 14 Dušan Hokův 2010-01-14 19:36:24 UTC
New warzone2100 from testing repository works for me. Thanks!

Comment 15 Fedora Update System 2010-01-29 03:27:05 UTC
warzone2100-2.3-0.1.beta6.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.