Bug 88822

Summary: X freezes after watching videos
Product: xorg Reporter: rv <shuihuzhuan>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: keivan, shuihuzhuan
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Log file
none
Log file
none
Patch none

Description rv 2015-01-27 09:02:18 UTC
Created attachment 112879 [details]
Log file

Hi,

I use Totem to watch videos from Shotwell. After opening and closing Totem a
lot of time to watch video files (~30-40 times) the screen freezes, and I can't
vt-switch.

It's not Totem's fault (https://bugzilla.gnome.org/show_bug.cgi?id=743556) but some bug is triggered by Totem in the X stack.

I've joined  the result of 'journalctl -b -1'. Errors appear after 'janv. 26
22:13:30' :

janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE)
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) Backtrace:
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 0: /usr/bin/Xorg.bin
(xorg_backtrace+0x56) [0x594276]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 1: /usr/bin/Xorg.bin
(mieqEnqueue+0x24b) [0x5753cb]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 2: /usr/bin/Xorg.bin
(QueuePointerEvents+0x52) [0x44f1c2]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 3:
/usr/lib/xorg/modules/input/evdev_drv.so (0x7f7fcd847000+0x5f77)
[0x7f7fcd84cf77]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 4:
/usr/lib/xorg/modules/input/evdev_drv.so (0x7f7fcd847000+0x66bd)
[0x7f7fcd84d6bd]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 5: /usr/bin/Xorg.bin
(0x400000+0x75a78) [0x475a78]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 6: /usr/bin/Xorg.bin
(0x400000+0xa0717) [0x4a0717]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 7: /usr/lib/libc.so.6
(0x7f7fd72e3000+0x33b20) [0x7f7fd7316b20]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 8: /usr/lib/libc.so.6
(ioctl+0x7) [0x7f7fd73c3a87]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 9:
/usr/lib/libdrm.so.2 (drmIoctl+0x28) [0x7f7fd84859d8]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 10:
/usr/lib/libdrm.so.2 (drmCommandWrite+0x1b) [0x7f7fd848839b]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 11:
/usr/lib/libdrm_nouveau.so.2 (nouveau_bo_wait+0x99) [0x7f7fd1be9829]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 12:
/usr/lib/xorg/modules/drivers/nouveau_drv.so (0x7f7fd1dee000+0x837b)
[0x7f7fd1df637b]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 13:
/usr/lib/xorg/modules/libexa.so (0x7f7fd139f000+0x48af) [0x7f7fd13a38af]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 14:
/usr/lib/xorg/modules/libexa.so (0x7f7fd139f000+0x7ef7) [0x7f7fd13a6ef7]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 15:
/usr/lib/xorg/modules/libexa.so (0x7f7fd139f000+0x11c0b) [0x7f7fd13b0c0b]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 16:
/usr/lib/xorg/modules/libexa.so (0x7f7fd139f000+0xe9a0) [0x7f7fd13ad9a0]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 17: /usr/bin/Xorg.bin
(0x400000+0x11a951) [0x51a951]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 18: /usr/bin/Xorg.bin
(0x400000+0x110644) [0x510644]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 19: /usr/bin/Xorg.bin
(0x400000+0x37807) [0x437807]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 20: /usr/bin/Xorg.bin
(0x400000+0x3b9a6) [0x43b9a6]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 21: /usr/lib/libc.so.6
(__libc_start_main+0xf0) [0x7f7fd7303040]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) 22: /usr/bin/Xorg.bin
(0x400000+0x25dce) [0x425dce]
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE)
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) [mi] These backtraces
from mieqEnqueue may point to a culprit higher up the stack.
janv. 26 22:13:30 maisondubonheur gdm-Xorg-:0[258]: (EE) [mi] mieq is *NOT* the
cause.  It is a victim.
janv. 26 22:13:31 maisondubonheur gdm-Xorg-:0[258]: (EE) [mi] EQ overflow
continuing.  100 events have been dropped.

I have an nvidia card (GeForce 7600GT) and I'm using the nouveau driver. vdpau
is disabled (removed from the system). Main component versions are (I'm on Arch linux) :

xf86-video-nouveau 1.0.11
xorg-server 1.16.3
mesa and mesa-libgl 10.4.3
linux 3.18.2
libdrm 2.4.59
clutter-gtk 1.6.0
totem 3.14.1

Tell me if more informations or tests are needed.
Comment 1 rv 2015-02-10 22:21:20 UTC
Created attachment 113329 [details]
Log file
Comment 2 rv 2015-02-10 22:23:00 UTC
I now have the same problem with Libreoffice 4.4. Log file attached.

Note : I switched my video card to a 8600GS (instead of my old 7600GT)

févr. 10 22:55:51 maisondubonheur kernel: nouveau E[   PFIFO][0000:01:00.0] still angry after 101 spins, halt
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) [mi] EQ overflowing.  Additional events will be discarded until existing events are processed.
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE)
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) Backtrace:
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x594276]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 1: /usr/bin/Xorg.bin (mieqEnqueue+0x24b) [0x5753cb]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 2: /usr/bin/Xorg.bin (QueuePointerEvents+0x52) [0x44f1c2]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f5bd212e000+0x5f77) [0x7f5bd2133f77]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 4: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f5bd212e000+0x66bd) [0x7f5bd21346bd]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 5: /usr/bin/Xorg.bin (0x400000+0x75a78) [0x475a78]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 6: /usr/bin/Xorg.bin (0x400000+0xa0717) [0x4a0717]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 7: /usr/lib/libc.so.6 (0x7f5bdbbcc000+0x33540) [0x7f5bdbbff540]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 8: /usr/lib/libc.so.6 (ioctl+0x7) [0x7f5bdbcacb27]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 9: /usr/lib/libdrm.so.2 (drmIoctl+0x28) [0x7f5bdcd6e9d8]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 10: /usr/lib/libdrm.so.2 (drmCommandWrite+0x1b) [0x7f5bdcd7139b]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 11: /usr/lib/libdrm_nouveau.so.2 (nouveau_bo_wait+0x99) [0x7f5bd64d1829]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 12: /usr/lib/libdrm_nouveau.so.2 (nouveau_pushbuf_space+0xde) [0x7f5bd64d2b4e]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 13: /usr/lib/xorg/modules/drivers/nouveau_drv.so (0x7f5bd66d6000+0x1f669) [0x7f5bd66f5669]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 14: /usr/lib/xorg/modules/libexa.so (0x7f5bd5c87000+0xe1ae) [0x7f5bd5c951ae]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 15: /usr/lib/xorg/modules/libexa.so (0x7f5bd5c87000+0xecf1) [0x7f5bd5c95cf1]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 16: /usr/bin/Xorg.bin (0x400000+0x11a951) [0x51a951]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 17: /usr/bin/Xorg.bin (0x400000+0x110644) [0x510644]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 18: /usr/bin/Xorg.bin (0x400000+0x37807) [0x437807]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 19: /usr/bin/Xorg.bin (0x400000+0x3b9a6) [0x43b9a6]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 20: /usr/lib/libc.so.6 (__libc_start_main+0xf0) [0x7f5bdbbec800]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) 21: /usr/bin/Xorg.bin (0x400000+0x25dce) [0x425dce]
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE)
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) [mi] These backtraces from mieqEnqueue may point to a culprit higher up the stack.
févr. 10 22:55:57 maisondubonheur gdm-Xorg-:1[604]: (EE) [mi] mieq is *NOT* the cause.  It is a victim.
févr. 10 22:55:58 maisondubonheur gdm-Xorg-:1[604]: (EE) [mi] EQ overflow continuing.  100 events have been dropped.
Comment 3 rv 2015-02-11 21:09:28 UTC
Is there a possible workaround? How can I help to solve this issue? With those crashes, my computer is getting unusable (losing my work all the time...)

Thanks for your help
Comment 4 Ilia Mirkin 2015-02-11 21:12:43 UTC
(In reply to rv from comment #3)
> Is there a possible workaround? How can I help to solve this issue? With
> those crashes, my computer is getting unusable (losing my work all the
> time...)
> 
> Thanks for your help

nouveau E[   PFIFO][0000:01:00.0] still angry after 101 spins, halt

So... seems like nouveau gets stuck. I think I saw a patch recently which may help with that:

http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=c869d99187a356b886bdecc757caa0038d142844

With some creativity, you can apply it to a regular kernel tree.
Comment 5 rv 2015-02-11 21:25:36 UTC
Thanks, I'll try.
Comment 6 rv 2015-02-17 09:49:28 UTC
I've patched kernel 3.19 and had no crash the whole day, yesterday. Thanks.

Will it be integrated to kernel 3.20? Or backported to 3.19?
Comment 7 K1 2015-02-19 21:11:58 UTC
I have the same problem since I updated to 3.18.7-200.fc21.x86_64. It happens frequently and I am only writing code on this computer so basically I have rewritten everything for the past two days. Can someone help me to apply this patch? 

Thanks
Comment 8 rv 2015-02-20 19:17:26 UTC
Created attachment 113695 [details] [review]
Patch

Here is the one I used
Comment 9 K1 2015-02-21 01:06:44 UTC
(In reply to rv from comment #8)
> Created attachment 113695 [details] [review] [review]
> Patch
> 
> Here is the one I used

Thanks rv
Comment 10 Pierre Moreau 2015-03-11 19:59:56 UTC

*** This bug has been marked as a duplicate of bug 87244 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.