When debugging Blender in QTCreator, my whole system sometimes hangs. Has anyone else experienced this? I have noticed this on a couple of different machines, but it seems to only happen with ATI video cards (using either open source or closed drivers). My machine at work, which has an nVidia card, doesn't seem to be affected.
This doesn't happen every time, but it happens often enough to make me hesitate to run Blender in a debugger. Maybe 1 in 5 times. When it does happen, I have to do a hard reset of my machine.
Any assistance stopping this from happening would be greatly appreciated. Is it because I'm debugging an OpenGL app? Or because of QTCreator?
OS: Ubuntu 10.04 and 11.04
Affected video cards: ATI Mobility Radeon x1400 (FOSS driver, no Compiz), Mobility Radeon HD 5430 (fglrx, using Compiz)
A bit more testing: this happens even if using plain old gdb instead of QTCreator, and it happens whether or not Compiz is running.
The solution seems to be to use Mesa instead of the regular drivers. In Ubuntu 11.04: Install libgl1-mesa-dev
, then preload /usr/lib/mesa/libGL.so when starting Blender.
On the command line:
|LD_PRELOAD=/usr/lib/mesa/libGL.so gdb blender |
In QTCreator: Projects mode > Run settings > Run Environment > Details > Add; variable=LD_PRELOAD, value=/usr/lib/mesa/libGL.so
Thanks to ideasman_42 for his help with this!