openal alsa problem on startup

Unhandled exception caused by audio system

Discussion about the game and its default mods.
Post Reply
jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

openal alsa problem on startup

Post by jimbo »

Hi,

Getting the following errors on startup:

Code: Select all

Platform is Linux
Using Gl renderer
Desktop resolution: 1680x1050
Using resolution: 1200x1000
Available mods:
        cnc: C&C (release-20120630)
        ra: Red Alert (release-20120630)
AL lib: alsa_reset_playback: snd_pcm_hw_params(data->pcmHandle, hp) failed: Invalid argument
Followed by unhandled-exception related backtrace info.

Code: Select all

Unhandled Exception: System.InvalidOperationException: Can't create OpenAL context
  at OpenRA.OpenAlSoundEngine..ctor &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.CreateEngine &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.Create &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Initialize &#40;OpenRA.Arguments args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
&#91;ERROR&#93; FATAL UNHANDLED EXCEPTION&#58; System.InvalidOperationException&#58; Can't create OpenAL context
  at OpenRA.OpenAlSoundEngine..ctor &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.CreateEngine &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.Create &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Initialize &#40;OpenRA.Arguments args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
Using 64bit Arch Linux, installed OpenRA via pacman.

Matt
Posts: 1155
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Try installing the OpenAL library. If you already have and this solves nothing start the game without sound as a workaround by writing this into $HOME/openra/settings.yaml

Code: Select all

Sound&#58;
	Engine&#58; Null

jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

Post by jimbo »

I'm using the ALSA > JACK PCM plugin in .asoundrc, see: http://jackaudio.org/routing_alsa

If I disable that then OpenRA starts up as normal.

The errors I posted earlier are with the ALSA JACK plugin and JACK is running. I don't know if it's a problem with openal or with openra.



Thanks.

ddd
Posts: 272
Joined: Sat Oct 23, 2010 5:04 pm

Post by ddd »

Does sound work without jack through default device? If so you should probably post bug on http://bugs.open-ra.org.

Post Reply