[Openal] linux pitch/loop issues (again)

Mikko Rytkönen mikko at fractilegames.com
Mon Apr 16 11:55:30 PDT 2007


Alexander Brinkman wrote:
> On Mon, 2007-04-09 at 23:20 -0700, Mikko Rytkönen wrote:
>> Now the problem is that if I change the pitch on any non-looping sample, the
>> application starts randomly crashing. Debugger shows that the segfault
>> occurs somewhere in al_filter.c (pitch filter). It might be that the patch
>> was faulty and caused the crashing. I will soon try to verify this by
>> testing the non-patched version again.
>>
>> Has anyone managed to get OpenAL on Linux working with both looping and
>> non-looping samples while adjusting pitch? Any help would be appreciated..
> 
> Not to defend my patch ;) it might indeed cause your crashes... Just to
> let you know that I use OpenAL w/patch constantly without problems;
> although 90%+ of my samples are looping, so I can't really comment on
> non-looping pitch changes. I also must say that I have the priority
> patch applied; without it OpenAL gives me nothing but trouble (sound
> trouble that is, not crashes). I use OpenAL trunk 1146.
> 
> Unfortunately the Linux port (Sample) does not seem to have much
> attention... Patches go unchecked for moths/years, even if the patches
> fix fairly blocking problems.
> 
> Anyway, I don't have much time to test any new patches, but if you find
> anything please let me know, perhaps I still can be of some
> assistance... :)

I'm currently using trunk revision 1426 with the pitch patch applied,
default configure options. I did clean checkout+compile just to be sure.
This is what I get quite randomly (this one after running fine for about
10 minutes):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1252734048 (LWP 10685)]
0xb76d101d in alf_tpitch (cid=36864, src=0x81d4a00, samp=0x8212910,
buffers=0xb7702e90, nc=2, len=1736) at al_filter.c:1452
1452                                    finalsample = firstsample +
Current language:  auto; currently c
(gdb) bt
#0  0xb76d101d in alf_tpitch (cid=36864, src=0x81d4a00, samp=0x8212910,
buffers=0xb7702e90, nc=2, len=1736) at al_filter.c:1452
#1  0xb76d1560 in _alApplyFilters (cid=36864, sid=16386) at al_filter.c:412
#2  0xb76d3441 in _alMixSources () at al_mixer.c:266
#3  0xb76d44d2 in async_mixer_iterate (dummy=0x0) at al_mixer.c:1080
#4  0xb770b504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7c1f51e in clone () from /lib/tls/i686/cmov/libc.so.6

I compiled non-patched version of the library and had the application
running over last night (~10 hours) without crash. I could still try
revision 1146..

- Mikko



More information about the Openal mailing list