Skip to contentSkip to conversation

New: screen corruption after running a game through wine

Bug 36934 [email protected] 1 participant 23 messages May 7, 2011 – May 24, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=36934

Summary: screen corruption after running a game through wine
Product: DRI
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: General
AssignedTo: [email protected]
ReportedBy: [email protected]

After running a game through wine, some graphic elements of other applications get garbled. These include window decorations, window shadows, images in already opened tabs of firefox, parts of the taskbar etc. They usually return to normal if refreshed (e.g. window shadows on resizing the window). The problem seems to occur only through wine, but I don't think its wine's fault.

I use 32bit debian unstable (kde 4.4.5, compiz 8.4, xserver 7.6 (xserver-xorg-core 1.9.5)) with vanilla kernel 2.6.37.6 and wine 1.3.15 from sources. The issue appears with both the installed mesa 7.10.2 and 7.11-dev from git.

I'm not sure about the product and component, just guessing...

#35452 might be related, but there Michel Dänzer said that's related to page flipping, which is not in 2.6.37, and this one also happens with non-fullscreen games.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 36934] screen corruption after running a game through wine

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #1 from Michel Dänzer <[email protected]> 2011-05-09 04:41:10 PDT --- Please attach the full Xorg.0.log and the output of dmesg and glxinfo.

This is probably a driver issue.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 36934] screen corruption after running a game through wine

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #2 from almos <[email protected]> 2011-05-13 03:36:35 PDT --- Created an attachment (id=46675)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46675)
Xorg.0.log

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 36934] screen corruption after running a game through wine

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #3 from almos <[email protected]> 2011-05-13 03:37:45 PDT --- Created an attachment (id=46676)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46676)
dmesg

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 36934] screen corruption after running a game through wine

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #4 from almos <[email protected]> 2011-05-13 03:38:10 PDT --- Created an attachment (id=46677)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46677)
glxinfo

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

almos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|screen corruption after     |screen corruption after
                   |running a game through wine |running a game

--- Comment #5 from almos <[email protected]> 2011-06-04 12:21:44 PDT --- Now I have seen this corruption without running anything through wine.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #6 from almos <[email protected]> 2011-08-03 05:22:44 PDT --- I observed that this corruption is often accompanied by these messages on the console from which I start a game:
radeon: mmap failed, errno: 1
Mesa: User error: GL_OUT_OF_MEMORY in glTexImage
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1
radeon: mmap failed, errno: 1

Some of the corruption disappears after a suspend-resume cycle. Can this be a memory-accounting bug?

A possibly unrelated question: what happens if the scene to be rendered needs more than VRAM+GART amount of data?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #46675|text/x-log                  |text/plain
          mime type|                            |
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #46676|application/octet-stream    |text/plain
          mime type|                            |
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #46677|application/octet-stream    |text/plain
          mime type|                            |
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #7 from Michel Dänzer <[email protected]> 2011-08-09 03:34:33 PDT --- (In reply to comment #6)

Quoted 2 lines

I observed that this corruption is often accompanied by these messages on the console from which I start a game:

What exactly does 'often' mean? If it's not always, it probably can't (fully) explain the problem...

Quoted 2 lines

radeon: mmap failed, errno: 1
Mesa: User error: GL_OUT_OF_MEMORY in glTexImage

Looks like this app ran out of memory. (errno: 1 means EPERM, not sure how that can happen...)

Quoted 2 lines

A possibly unrelated question: what happens if the scene to be rendered needs more than VRAM+GART amount of data?

It's up to the userspace drivers to split it up into smaller chunks that can fit.

A couple of random things to try would be radeon.agpmode=4 and =-1, disabling tiling, ... Trying a newer kernel and possibly r300g driver probably wouldn't hurt either.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #8 from almos <[email protected]> 2011-08-09 12:39:18 PDT --- (In reply to comment #7)

Quoted 6 lines

(In reply to comment #6)

Quoted 2 lines

I observed that this corruption is often accompanied by these messages on the console from which I start a game:

What exactly does 'often' mean? If it's not always, it probably can't (fully) explain the problem...

Well, 'sometimes' might have been a better word. I don't think it explains the problem either, just mentioned it for completeness' sake.

Quoted 3 lines

A couple of random things to try would be radeon.agpmode=4 and =-1, disabling tiling, ... Trying a newer kernel and possibly r300g driver probably wouldn't hurt either.

Now I'm using kernel 3.0, compiz runs on mesa 7.10.3, and I start games with mesa from git. The problem still exists.

The interesting thing is that palettes also seem to be changing: the border lines of areas in Qt windows change their colors (mostly into purple or green), the names in the chat window change colors in kopete, and the colors in gnome-terminal become different (all text become the same color).

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #9 from almos <[email protected]> 2011-08-30 14:51:08 PDT --- Created an attachment (id=50722)
--> (https://bugs.freedesktop.org/attachment.cgi?id=50722)
corrupted image in firefox

Now I found a good example of this corruption. When Firefox displays a large image it is frequently filled with garbage, and due to the size of the image, it is clearly visible that the garbage is the remnants of previously displayed images. I think the newly created surfaces in texture-from-pixmap operations are not flushed properly. Or something like that.

In the attachment
http://static.szanalmas.hu/postpix/71876_1.jpg
should be shown (don't worry it doesn't make any sense even in Hungarian). The startled Misato is the actual desktop background (with the folderview plasmoid in the upper left corner), the '1' in the green circle is a frame from a recently played youtube video, and some of the other garbage are also identifiable.

After a few tab switches this image got clear, but doing a back-forward on that tab made it filled with different garbage. I think redrawing the image clears it, and a realloc leaves it uninitialized again.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #10 from Michel Dänzer <[email protected]> 2011-08-31 03:44:25 PDT --- (In reply to comment #7)

Quoted 2 lines

A couple of random things to try would be radeon.agpmode=4 and =-1, disabling tiling, ...

Have you tried any of these?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #11 from almos <[email protected]> 2011-09-13 14:59:31 PDT --- (In reply to comment #10)

Quoted 5 lines

(In reply to comment #7)

Quoted 2 lines

A couple of random things to try would be radeon.agpmode=4 and =-1, disabling tiling, ...

Have you tried any of these?

Now I tried radeon.agpmode=-1 for a couple of days, but this issue didn't appear. I could only reproduce the corruption of the image mentioned in comment
9. Usually it takes several days of uptime for the corruption to start to appear noticeably, so the experiment might have been too short. I'll try it again later.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #12 from [email protected] 2011-10-18 09:00:54 PDT --- radeon.agpmode=-1 stops the corruption I was getting after scrolling a PDF file in okular with a radeon 9600xt. The problem with this solution is that frequently Xorg freezes for several minutes. Also, I don't think that the AGP bridge is at fault here, since an nvidia card works fine.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #13 from [email protected] 2011-10-22 04:12:01 PDT --- Apparently, there are two kinds of corruption in my case.

The first one is triggered by display of large pixmaps or textures, and manifests itself with corruption of fonts, menus, decorations, icons and widgets all over the screen. It is easy to trigger this by scrolling quickly through a PDF file in okular, or after running Google earth or a game. After some tests for several hours, it appears that the cause is the Virtualbox kernel modules. In fact, after removing them, I haven't been able to trigger this type of corruption again.

The second one is the one manifested in Firefox with large pixmaps, described in comment 9. If I open that image in Firefox and magnify it to 1:1, then it appears black. Returning to the original magnification makes it appear partly corrupted with the contents of other windows (I'm using kwin with compositing). Opening and zooming the same image in Chrome does not exhibit the corruption. I haven't found a way to resolve this yet.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #14 from [email protected] 2011-10-22 06:11:24 PDT --- I spoke too soon: minor, transient corruption still occurs. For example, for some seconds the glyph "u" would disappear from the panel and some widgets became corrupted. After a while, everything returned to normal. Maybe the virtualbox kernel modules were causing further corruption that started elsewhere?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #15 from almos <[email protected]> 2011-10-22 07:00:31 PDT --- Since I upgraded to mesa 7.11 I experience significantly less corruption than with 7.10. It still happens sometimes, though. Now I removed the virtualbox modules to give it a try.

Meanwhile, I also tried to reproduce the firefox image corruption in a vnc screen, and it didn't happen, while running firefox normally is still bad. I think it means this is not a bug in firefox, but in xorg/mesa/libdrm/linux somewhere.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #16 from [email protected] 2011-10-23 01:49:26 PDT --- The type of minor, transient corruption described in comment 14 is this: some glyphs or stripes of a widget become transparent for some seconds or minutes. This is unlike the original corruption, which would garble the display, rendering X unusable.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #17 from [email protected] 2011-10-28 11:26:57 PDT --- I'm afraid the virtualbox modules have nothing to do with this.

A hopefully helpful observation:

When I first load the large image in firefox, zooming in and out several times works fine, without any corruption and Xorg uses 87 MB of RSS memory. It is after changing desktop, scrolling in okular etc that it becomes corrupted. When it becomes corrupted, Xorg use drops to 54 MB of RSS memory. Doesn't this lead to the conclusion that there is some error during memory management? If this were a hardware error, wouldn't Xorg memory use remain constant?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

--- Comment #18 from [email protected] ---
This hasn't occurred since I upgraded to openSUSE 12.2.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw

[Bug 36934] screen corruption after running a game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36934

almos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from almos <[email protected]> ---
This hasn't occurred for quite a while. I assume it's fixed in the current version of the driver stack. Closing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel