Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25080 - [libGL/Mesa] X server hungs at startup and crashes when trying to play videos

Attached to Project: Arch Linux
Opened by Aitor Pazos (aitorpazos) - Saturday, 09 July 2011, 09:37 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 10 July 2011, 11:07 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
With the new updates from testing (libgl 7.10.99.git20110706-2, intel-dri 7.10.99.git20110706-2, mesa 7.10.99.git20110706-2) acceleration is not working correctly. GNOME 3 starts in fallback mode and for KDE you need to switch to another VT and then back to VT7 in order to start it (only the first time I login after boot). Once started, X server crashes when you try to play a video using common players (Kaffeine, Mplayer, VLC).

These are the error reported by kdm:
(EE) intel(0): Detected a hung GPU, disabling acceleration.
(EE) intel(0): When reporting this, please include i915_error_state from debugfs and the full dmesg.
(EE) intel(0): failed to set mode: Input/output error

Fatal server error:
EnterVT failed for screen 0



Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.


Additional info:
testing/xorg-server 1.10.2-2
testing/libgl 7.10.99.git20110706-2
testing/intel-dri 7.10.99.git20110706-2
testing/mesa 7.10.99.git20110706-2

Uname: Linux Apidell 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 21:26:22 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU P9400 @ 2.40GHz GenuineIntel GNU/Linux

Lspci:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller])
Subsystem: Dell Device 024d
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at f6c00000 (64-bit, non-prefetchable) [size=4M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at ef98 [size=8]
Expansion ROM at <unassigned> [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 3
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
Subsystem: Dell Device 024d
Flags: bus master, fast devsel, latency 0
Memory at f6b00000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [d0] Power Management version 3


Steps to reproduce:
Upgrade your system from testing repository
Login and kde will hang in the splash screen. Changing VT makes it boot but kwin won't work correctly
After one login it goes into the desktop correctly but when you try to play a video the X server crashes


This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 10 July 2011, 11:07 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Saturday, 09 July 2011, 13:08 GMT
Please test new mesa 7.11rc1 in testing that I'm just uploading. Maybe we need to rebuild the xf86-video-intel driver pkg or even add some fixes.
Comment by Aitor Pazos (aitorpazos) - Saturday, 09 July 2011, 13:52 GMT
No improvements with testing/[mesa|libgl|intel-dri] 7.11rc1-1.
Btw, I have multilib/lib32-mesa 7.10.3-1 installed as well, can it affect the whole system or just 32 bit apps?
Comment by Andreas Radke (AndyRTR) - Saturday, 09 July 2011, 14:32 GMT
You have drm related error messages in your dmesg. I doubt the crashes are introduced by mesa 7.11 tree. Please downgrade to extra repo packages, save log files and readd testing repo and run a full -Syu and diff all the logs.

lib32* should only affect 32bit apps.
Comment by Aitor Pazos (aitorpazos) - Saturday, 09 July 2011, 16:06 GMT
I will upgrade this evening, but now I need video working for some hours. I've downgraded and I've kept mesa 7.11. Everything works fine. Once I upgrade libgl and intel-dri I will post the log's diffs.
Comment by Aitor Pazos (aitorpazos) - Saturday, 09 July 2011, 18:05 GMT
There they go!
Everything run under:
mesa 7.11rc1-1

This combination doesn't work:
libgl 7.11rc1-1
intel-dri 7.11rc1-1
This combination work:
libgl 7.10.3-1
intel-dri 7.10.3-1
Comment by Andreas Radke (AndyRTR) - Saturday, 09 July 2011, 22:03 GMT
Just to make sure: When you run mesa 7.11 you do a full -Syu to testing including the testing Xorg server and -libs?
Comment by Aitor Pazos (aitorpazos) - Saturday, 09 July 2011, 22:09 GMT
My system is updated with -Syu.
Just this ignores in pacman.conf:
IgnorePkg = libgl
IgnorePkg = intel-dri

Xorg Version: xorg-server 1.10.3-2
Comment by Andreas Radke (AndyRTR) - Saturday, 09 July 2011, 22:27 GMT
[ 35.786703] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung

looks similar to https://bugs.freedesktop.org/show_bug.cgi?id=38771

Try to apply http://lists.freedesktop.org/archives/mesa-commit/2011-July/031775.html to our latest mesa pkg.
Comment by Aitor Pazos (aitorpazos) - Sunday, 10 July 2011, 08:40 GMT
I've applied the patch but compilation fails somewhere else. This is where it fails (Sorry about being in spanish, but I think it's easy to understand):

make[3]: se ingresa al directorio `/home/aitor/src/abs/mesa/src/mesa-b033f050fd5179b051181a0a4b6d94110624d25c/src/gallium/auxiliary'
gcc -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0209 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS rbug/rbug_context.c -o rbug/rbug_context.o
gcc -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0209 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS rbug/rbug_texture.c -o rbug/rbug_texture.o
gcc -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0209 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS rbug/rbug_shader.c -o rbug/rbug_shader.o
gcc -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0209 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS rtasm/rtasm_cpu.c -o rtasm/rtasm_cpu.o
rbug/rbug_context.c:40:5: aviso: no hay un prototipo previo para ‘rbug_send_context_list’ [-Wmissing-prototypes]
rbug/rbug_context.c:76:28: error: nombre de tipo ‘rbug_context_t’ desconocido


Comment by Andreas Radke (AndyRTR) - Sunday, 10 July 2011, 09:30 GMT
Build finished here like all older version. Maybe it's your build system. See wiki section for building in clean chroots.

Please try the new -2 build in testing. It has the intel fix included.
Comment by Aitor Pazos (aitorpazos) - Sunday, 10 July 2011, 10:55 GMT
No problems so far with -2!!
Thank you very much!!

Loading...