Page MenuHome

blender becomes gradually slower hogging cpu, believed to be related to soundsystem. attempting to change soundsystem to 'None' causes hang without crash
Closed, InvalidPublic

Description

blender's cpu usage is high when doing nothing. blender gradually slows down throughout a session. cpu intensive activities such as rendering execute slowly and cause it to grind to a complete halt *after* they have completed. i have a gut feeling its related to the soundsystem (could a backlog of buffers be building up?) The system previously suffered from this problem and changing the soundsystem to none seemed to stop the slow down. Trying to change the soundsystem now results in a hang without a crash (the blender windows become completely unresponsive.

attempt to change soundsystem to None causes a hang, interrupting in gdb and getting the trace results in the following:

Program received signal SIGINT, Interrupt.
0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
#1 0x00007ffff66f923c in ?? () from /usr/lib/libopenal.so.1
#2 0x00007ffff66faa25 in ?? () from /usr/lib/libopenal.so.1
#3 0x00007ffff66eaff6 in alcCloseDevice () from /usr/lib/libopenal.so.1
#4 0x0000000000e845a9 in AUD_OpenALDevice::~AUD_OpenALDevice() ()
#5 0x0000000000e85993 in Device_dealloc(Device*) ()
#6 0x0000000000e7d23a in AUD_exit ()
#7 0x0000000000e7eab3 in AUD_init ()
#8 0x0000000000aebe50 in sound_init ()
#9 0x00000000009cce02 in rna_property_update ()
#10 0x00000000008cb937 in ui_apply_but_funcs_after ()
#11 0x00000000008d5c78 in ui_handler_region ()
#12 0x00000000006f03b4 in wm_handlers_do ()
#13 0x00000000006f0d92 in wm_event_do_handlers ()
#14 0x00000000006eba88 in WM_main ()
#15 0x00000000006e9ce6 in main ()
(gdb)

attempting to change soundsystem to SDL also causes a hang, interrupting in gdb and getting the trace results in the following:

Program received signal SIGINT, Interrupt.
0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
#1 0x00007ffff66f923c in ?? () from /usr/lib/libopenal.so.1
#2 0x00007ffff66faa25 in ?? () from /usr/lib/libopenal.so.1
#3 0x00007ffff66eaff6 in alcCloseDevice () from /usr/lib/libopenal.so.1
#4 0x0000000000e845a9 in AUD_OpenALDevice::~AUD_OpenALDevice() ()
#5 0x0000000000e85993 in Device_dealloc(Device*) ()
#6 0x0000000000e7d23a in AUD_exit ()
#7 0x0000000000e7eab3 in AUD_init ()
#8 0x0000000000aebe50 in sound_init ()
#9 0x00000000009cce02 in rna_property_update ()
#10 0x00000000008cb937 in ui_apply_but_funcs_after ()
#11 0x00000000008d5c78 in ui_handler_region ()
#12 0x00000000006f03b4 in wm_handlers_do ()
#13 0x00000000006f0d92 in wm_event_do_handlers ()
#14 0x00000000006eba88 in WM_main ()
#15 0x00000000006e9ce6 in main ()
(gdb)

trying to change any of the settings for OpenAL (eg stereo, mono etc) also results in the hang:

Program received signal SIGINT, Interrupt.
0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff2d52cfd in pthread_join () from /lib/libpthread.so.0
#1 0x00007ffff66f923c in ?? () from /usr/lib/libopenal.so.1
#2 0x00007ffff66faa25 in ?? () from /usr/lib/libopenal.so.1
#3 0x00007ffff66eaff6 in alcCloseDevice () from /usr/lib/libopenal.so.1
#4 0x0000000000e845a9 in AUD_OpenALDevice::~AUD_OpenALDevice() ()
#5 0x0000000000e85993 in Device_dealloc(Device*) ()
#6 0x0000000000e7d23a in AUD_exit ()
#7 0x0000000000e7eab3 in AUD_init ()
#8 0x0000000000aebe50 in sound_init ()
#9 0x00000000009cce02 in rna_property_update ()
#10 0x00000000008cb937 in ui_apply_but_funcs_after ()
#11 0x00000000008d701b in ui_handler_region_menu ()
#12 0x00000000006f03b4 in wm_handlers_do ()
#13 0x00000000006f0c2c in wm_event_do_handlers ()
#14 0x00000000006eba88 in WM_main ()
#15 0x00000000006e9ce6 in main ()
(gdb)


system openal is libopenal.so.1.8.466

00:1b.0 Audio device: Intel Corporation 631xESB/632xESB High Definition Audio Controller (rev 09)
Flags: bus master, fast devsel, latency 0, IRQ 23
Memory at f3100000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

my /etc/modprobe.d/alsa-base.conf is here... http://www.pasteall.org/15139

not sure if this is relevant but the system log has many instances of...
ashndrome-06 pulseaudio[1837]: ratelimit.c: 118 events suppressed

the system is a MacPro4,1 running Ubuntu 9.10

hope this is enough info, sound systems on linux are black magic to me,
thanks, josh


Details

Type
Bug

Event Timeline

I haven't seen the crash, but I'll confirm some strange sluggishness.

The only thing a run of 'top' seems to reveal is PulseAudio, and even then, it only chimes in at around 4%.

My gut reaction was that in fact it was tied to audio as well.

Perhaps Nexyon can chime in on this one?

This is an old one, complain here please: https://bugs.launchpad.net/ubuntu/+source/openal-soft/+bug/472687

Joerg Mueller (nexyon) closed this task as Invalid.Aug 23 2010, 12:26 AM

discussion on #blendercoders points to this:

https://bugs.launchpad.net/ubuntu/+source/openal-soft/+bug/503780

...and...

https://bugs.launchpad.net/ubuntu/+source/openal-soft/+bug/472687

seems to also affect 10.04 aswell as 9.10