<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Xorg causes KDE to freeze"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111091">111091</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Xorg causes KDE to freeze
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</td>
</tr>
<tr>
<th>Version</th>
<td>7.7 (2012.06)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver/Radeon
</td>
</tr>
<tr>
<th>Assignee</th>
<td>xorg-driver-ati@lists.x.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>avamander@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>xorg-team@lists.x.org
</td>
</tr></table>
<p>
<div>
<pre>What happens:
* At some point KDE just freezes and Xorg starts spamming the logs with:
```
[596294.070] (WW) modeset(0): flip queue failed: Cannot allocate memory
[596294.070] (WW) modeset(0): Page flip failed: Cannot allocate memory
[596294.070] (EE) modeset(0): present flip failed
```
I also captured a bit of strace output (I have about 450MB of strace output, if
required I can provide a lot more), here's a snippet:
```
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
rt_sigreturn({mask=[]}) = 0
futex(0x5586c3807094, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(3, [{EPOLLIN, {u32=3287010464, u64=94037300989088}}], 256, 0) = 1
recvmsg(45, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="+\26\1\0",
iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 4
writev(45,
[{iov_base="\1\1s\3\0\0\0\0\6\0\300\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
iov_len=32}], 1) = 32
recvmsg(45, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(3, [], 256, 0) = 0
recvmsg(7, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\224\1\22\0\26\0
\0.\0 \0A\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=16384}],
msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 288
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980ea0) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807090, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(7, [{iov_base="#\224\324\4\0\0\0\0\2\0\0\0-\0 \0\26\0 \0A\1\0\0.\0 \0/\0
\0", iov_len=32}], 1) = 32
writev(7, [{iov_base="#\224\324\4\2\0\0\0\1\0\0\0-\0 \0\26\0
\0A\1\0\0\16\177\262\217\23\0\0\0"..., iov_len=40}], 1) = 40
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980ea0) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807094, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(7, [{iov_base="#\224\325\4\0\0\0\0\2\0\0\0-\0 \0\26\0 \0B\1\0\0000\0
\0001\0 \0", iov_len=32}], 1) = 32
writev(7, [{iov_base="#\224\325\4\2\0\0\0\1\0\0\0-\0 \0\26\0
\0B\1\0\0\16\177\262\217\23\0\0\0"..., iov_len=40}], 1) = 40
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980ea0) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807090, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(7, [{iov_base="#\224\326\4\0\0\0\0\2\0\0\0\"\0 \0\22\0 \0C\1\0\0#\0
\0$\0 \0", iov_len=32}], 1) = 32
writev(7, [{iov_base="#\224\326\4\2\0\0\0\1\0\0\0\"\0 \0\22\0
\0C\1\0\0\264\20\262\217\23\0\0\0"..., iov_len=40}], 1) = 40
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980ea0) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807094, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(7, [{iov_base="#\224\327\4\0\0\0\0\2\0\0\0\"\0 \0\22\0 \0D\1\0\0%\0
\0&\0 \0", iov_len=32}], 1) = 32
writev(7, [{iov_base="#\224\327\4\2\0\0\0\1\0\0\0\"\0 \0\22\0
\0D\1\0\0\264\20\262\217\23\0\0\0"..., iov_len=40}], 1) = 40
recvmsg(7, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\224\1\22\0\26\0
\0.\0 \0C\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=16384}],
msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 288
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980ea0) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807090, FUTEX_WAKE_PRIVATE, 1) = 1
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
rt_sigreturn({mask=[]}) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(7, [{iov_base="#\224\330\4\0\0\0\0\2\0\0\0-\0 \0\26\0 \0C\1\0\0.\0 \0/\0
\0", iov_len=32}], 1) = 32
writev(7, [{iov_base="#\224\330\4\2\0\0\0\1\0\0\0-\0 \0\26\0
\0C\1\0\0\16\177\262\217\23\0\0\0"..., iov_len=40}], 1) = 40
epoll_wait(3, [{EPOLLIN, {u32=3285958304, u64=94037299936928}}, {EPOLLIN,
{u32=3287010464, u64=94037300989088}}], 256, 0) = 2
recvmsg(45, {msg_name=NULL, msg_namelen=0,
msg_iov=[{iov_base="\224\1\22\0\26\0\300\1\35\0\300\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 100
ioctl(14, DRM_IOCTL_CRTC_GET_SEQUENCE, 0x7fffd7980ee0) = 0
ioctl(14, DRM_IOCTL_MODE_ADDFB, 0x7fffd7980d20) = 0
ioctl(14, DRM_IOCTL_MODE_PAGE_FLIP, 0x7fffd7980e00) = -1 ENOMEM (Cannot
allocate memory)
poll([{fd=14, events=POLLIN}], 1, 0) = 0 (Timeout)
write(4, "[ 84302.173] ", 13) = 13
write(4, "(WW) modeset(0): flip queue fail"..., 59) = 59
ioctl(14, DRM_IOCTL_MODE_RMFB, 0x7fffd7980e1c) = 0
write(4, "[ 84302.174] ", 13) = 13
write(4, "(WW) modeset(0): Page flip faile"..., 58) = 58
write(4, "[ 84302.174] ", 13) = 13
write(4, "(EE) modeset(0): present flip fa"..., 37) = 37
ioctl(14, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, 0x7fffd7980e30) = -1 ENOMEM (Cannot
allocate memory)
ioctl(18, DRM_IOCTL_RADEON_GEM_CREATE, 0x7fffd7980d20) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980d00) = 0
ioctl(18, DRM_IOCTL_RADEON_GEM_VA, 0x7fffd7980da0) = 0
ioctl(18, DRM_IOCTL_GEM_CLOSE, 0x7fffd7980d98) = 0
futex(0x5586c3807094, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5586c3807040, FUTEX_WAKE_PRIVATE, 1) = 1
writev(45,
[{iov_base="#\224t\3\0\0\0\0\2\0\0\0\30\0\300\1\26\0\300\1\2\0\0\0\35\0\300\1\36\0\300\1",
iov_len=32}], 1) = 32
writev(45,
[{iov_base="#\224t\3\2\0\0\0\1\0\0\0\30\0\300\1\26\0\300\1\2\0\0\0\264\20\262\217\23\0\0\0"...,
iov_len=40}], 1) = 40
writev(53,
[{iov_base="\34\0\231\1*\5\0\0E\1\0\0^Y\6\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
iov_len=32}], 1) = 32
```
I have opened bugs also on KDE's bug tracker and Ubuntu's to get this resolved:
* <a href="https://bugs.kde.org/show_bug.cgi?id=409514">https://bugs.kde.org/show_bug.cgi?id=409514</a>
* <a href="https://bugs.launchpad.net/xf86-video-amd/+bug/1833880">https://bugs.launchpad.net/xf86-video-amd/+bug/1833880</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>