Hardware wedged when running some example apps

I am using OpenFrameworks with CodeBlocks IDE (rev 6181) on a Ubuntu 10.4 machine.

I can run most of the example apps (like graphicsExample, audioOutputExample or fontShapeExample), but whenever I try to run e.g. moviePlayerExample or dirListExample the screen goes black and the machine becomes unresponsive except for a cold reset.

The kernel.log shows “GPU hung” and “hardware wedged” error messages (see below). Obviously, the machine gets caught in a loop.

The machine is equipped with a (not optimal) 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device.

What could be the reason for the crashes, especially regarding the rather harmless (in regard to GPU usage) dirListExample? And what could I do about it?

Please let me know if I should add more information about the hardware setup.

Best regards,
Tobi

May 11 17:54:58 localhost kernel: [ 904.344017] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:54:58 localhost kernel: [ 904.344034] render error detected, EIR: 0x00000000
May 11 17:54:58 localhost kernel: [ 904.344055] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122462 at 122461)
May 11 17:55:00 localhost kernel: [ 906.264019] [drm:i915_gem_idle] *ERROR* hardware wedged
May 11 17:55:03 localhost kernel: [ 909.243108] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
May 11 17:55:03 localhost kernel: [ 909.644029] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:55:03 localhost kernel: [ 909.644040] render error detected, EIR: 0x00000000
May 11 17:55:03 localhost kernel: [ 909.644080] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122466 at 122461)
May 11 17:55:05 localhost kernel: [ 911.764015] [drm:i915_gem_idle] *ERROR* hardware wedged
May 11 17:55:07 localhost kernel: [ 913.332781] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
May 11 17:55:07 localhost kernel: [ 913.708013] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:55:07 localhost kernel: [ 913.708022] render error detected, EIR: 0x00000000
May 11 17:55:07 localhost kernel: [ 913.708861] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122468 at 122461)
May 11 17:55:09 localhost kernel: [ 915.776015] [drm:i915_gem_idle] *ERROR* hardware wedged
May 11 17:55:11 localhost kernel: [ 917.341212] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
May 11 17:55:11 localhost kernel: [ 917.716013] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:55:11 localhost kernel: [ 917.716023] render error detected, EIR: 0x00000000
May 11 17:55:11 localhost kernel: [ 917.716874] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122470 at 122461)
May 11 17:55:13 localhost kernel: [ 919.784016] [drm:i915_gem_idle] *ERROR* hardware wedged
May 11 17:55:15 localhost kernel: [ 921.358671] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
May 11 17:55:15 localhost kernel: [ 921.732012] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:55:15 localhost kernel: [ 921.732022] render error detected, EIR: 0x00000000
May 11 17:55:15 localhost kernel: [ 921.732862] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122472 at 122461)
May 11 17:55:18 localhost kernel: [ 923.800025] [drm:i915_gem_idle] *ERROR* hardware wedged
May 11 17:55:19 localhost kernel: [ 925.358914] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
May 11 17:55:19 localhost kernel: [ 925.732012] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed… GPU hung
May 11 17:55:19 localhost kernel: [ 925.732021] render error detected, EIR: 0x00000000
May 11 17:55:19 localhost kernel: [ 925.732864] [drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 122474 at 122461)
May 11 17:55:22 localhost kernel: [ 927.800018] [drm:i915_gem_idle] *ERROR* hardware wedged

the videoplayer example has a problem with ubuntu 10.04, and it can be causing the crash. it’s solved in github already:

http://github.com/openframeworks/openFrameworks

but don’t know why the dirList example can be crashing, you can try debugging it to see what line is causing the crash, although usually gpu crashes are hard to debug

Thanks for the quick reply.

I cloned the git repository on the machine and reinstalled the OF library by running the two shell scripts in scripts/linux/ubuntu, then rebuilt the library and the moviePlayerExample project in CodeBlocks.

Unfortunately, the machine still crashes when running the app.
:frowning:

Could you please give me a pointer to a description of the problem you are referring to? (I fear the issue is rooted deeper and more generally in the video driver for the Intel chipset.)

the problem with the video player was that gstreamer was sending 32bit frames and OF expecting 24bit ones. If it was the opposite it could be some problem with memory access but i doubt it is.

if you try debugging the examples and see in what line it crashes that can be useful to know what can be happening