Previous Thread  Next Thread

chat icon System hang when debugging

z0r

Posted: Wed Jul 20, 2011 2:32 am
Joined: 18 Oct 2006
Posts: 7
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)
Reply with quote


z0r

Posted: Wed Jul 20, 2011 4:20 am
Joined: 18 Oct 2006
Posts: 7
A bit more testing: this happens even if using plain old gdb instead of QTCreator, and it happens whether or not Compiz is running.
Reply with quote


z0r

Posted: Sun Aug 14, 2011 9:47 am
Joined: 18 Oct 2006
Posts: 7
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:
    Code:
    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!
Reply with quote


z0r

Posted: Sun Sep 30, 2012 6:31 am
Joined: 18 Oct 2006
Posts: 7
z0r wrote:


    On the command line:
    Code:
    LD_PRELOAD=/usr/lib/mesa/libGL.so gdb blender



In Ubuntu 12.04, the path is actually
Code:
/usr/lib/x86_64-linux-gnu/mesa/libGL.so

But it's quite unusable (causes flickering).
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group