[Openal] Null Pointer crash in Linux openal

Sven Panne Sven.Panne at BenQ.com
Wed Aug 23 04:08:59 PDT 2006


> -----Original Message-----
> From: openal-bounces at opensource.creative.com 
> [mailto:openal-bounces at opensource.creative.com] On Behalf Of 
> Thilo Schulz
> Sent: Mittwoch, 23. August 2006 12:13
> To: openal at opensource.creative.com
> Subject: Re: [Openal] Null Pointer crash in Linux openal
> [...]
> I think you don't really need to install it... the 
> peculiarity of that app is that it uses said 
> MakeContextCurrent(NULL) before it closes the device as some 
> hack for previous OpenAL versions:
> 
> ###
> // Check for Linux shutdown race condition // FIXME: this 
> will probably not be necessary once OpenAL CVS
> //        from 11/11/05 is released and prevelant
> if( Q_stricmp((const char*)qalGetString( AL_VENDOR ), "J. 
> Valenzuela" ) ) {
> 	qalcMakeContextCurrent( NULL );
> }
> 
> qalcDestroyContext(alContext);
> qalcCloseDevice(alDevice);
> ###
> 
> I'll have a more thorough look tomorrow if you wish to, you 
> can also have me create debugging outputs.

Setting the current context to NULL before it is destroyed is normal
application behaviour, and a simple test with and without that call
works for me. I think that I'll try quake3 + OpenAL on my Linux box
after my vacation. But I wouldn't mind if somebody finds the problem in
the OpenAL SI before that... ;-) (the relevant files are al_main.c and
al_mixer.c)

Cheers,
   S.



More information about the Openal mailing list