https://bugs.freedesktop.org/show_bug.cgi?id=29951
Summary: [r300g] xscreensaver hack "antspotlight" reveals something other than desktop Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/r300 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: rankincj@googlemail.com
Created an attachment (id=38368) --> (https://bugs.freedesktop.org/attachment.cgi?id=38368) What the ant saw...
The xscreensaver hack "antspotlight" is supposed to depict an ant with a spotlight on its head wandering over your desktop in the dark. The idea is that the ant reveals little patches of your desktop as it wanders around.
With r300g and my RV350, the ant is most definitely not revealing my desktop. (Not this time, anyway. It seems to be random.)
https://bugs.freedesktop.org/show_bug.cgi?id=29951
Matt Turner mattst88@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|Drivers/DRI/r300 |Drivers/Gallium/r300
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #1 from Marek Olšák maraeo@gmail.com 2010-09-15 07:38:14 PDT --- The screensaver shows my wallpaper gallery rather than my desktop, but the images look all right here.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #2 from Chris Rankin rankincj@googlemail.com 2010-09-15 07:50:00 PDT --- (In reply to comment #1)
The screensaver shows my wallpaper gallery rather than my desktop, but the images look all right here.
The choice of image looks random to me. Try running another OpenGL application, and then rerunning the screensaver. I tried reproducing this bug last night and at first I thought it was fixed. But then I played WoW for a bit and tried again...
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #3 from Michel Dänzer michel@daenzer.net 2010-09-15 10:17:18 PDT --- (In reply to comment #1)
The screensaver shows my wallpaper gallery rather than my desktop, [...]
This depends on the 'Image Manipulation' settings on the 'Advanced' tab of xscreensaver-demo.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #4 from Marek Olšák maraeo@gmail.com 2011-02-10 17:41:39 PST --- Is this issue still present with the current Mesa master branch?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #5 from Chris Rankin rankincj@googlemail.com 2011-02-12 11:27:32 PST --- (In reply to comment #4)
Is this issue still present with the current Mesa master branch?
Unfortunately, yes. Although it does seem to happen a lot less often now.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #6 from Tom Stellard tstellar@gmail.com 2011-09-18 18:18:07 PDT --- (In reply to comment #5)
(In reply to comment #4)
Is this issue still present with the current Mesa master branch?
Unfortunately, yes. Although it does seem to happen a lot less often now.
I just tested this with the latest version from git, and it appears to be working. Can you confirm this?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #7 from Chris Rankin rankincj@googlemail.com 2011-09-19 01:29:22 PDT --- (In reply to comment #6)
I just tested this with the latest version from git, and it appears to be working. Can you confirm this?
Sorry, it's not fixed yet. I ran antspotlight about 5 times in succession and the problem reoccurred. It did work the first few times, though.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #8 from Tom Stellard tstellar@gmail.com 2011-09-22 16:04:28 PDT --- (In reply to comment #7)
(In reply to comment #6)
I just tested this with the latest version from git, and it appears to be working. Can you confirm this?
Sorry, it's not fixed yet. I ran antspotlight about 5 times in succession and the problem reoccurred. It did work the first few times, though.
Does it work with llvmpipe?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #9 from Chris Rankin rankincj@googlemail.com 2011-09-23 02:54:54 PDT --- (In reply to comment #8)
Does it work with llvmpipe?
It works with LIBGL_ALWAYS_SOFTWARE=1, if that's what you mean.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #10 from pmarques@grupopie.com 2011-09-23 04:10:57 PDT --- Doesn't this seem to be some sort of race condition?
The screensaver needs to do a "screenshot" to display on the floor. If it captures the screenshot too late, it gets its own image instead of the desktop image...
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #11 from Chris Rankin rankincj@googlemail.com 2011-09-23 04:21:21 PDT --- (In reply to comment #10)
Doesn't this seem to be some sort of race condition?
The screensaver needs to do a "screenshot" to display on the floor. If it captures the screenshot too late, it gets its own image instead of the desktop image...
It works with both the r600g (faster than r300g) and swrast (slower than r300g) drivers, though. So whatever the problem is, it does appear to be with the r300g driver.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #12 from Tom Stellard tstellar@gmail.com 2011-09-25 17:52:53 PDT --- Would you be able to post an apitrace(https://github.com/apitrace/apitrace)?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #13 from Chris Rankin rankincj@googlemail.com 2011-09-28 04:06:58 PDT --- (In reply to comment #12)
Would you be able to post an apitrace(https://github.com/apitrace/apitrace)?
I have created two apitraces, one for antspotlight working correctly and the other for antspotlight not working. (It was more difficult to get antspotlight to misbehave with apitrace installed, but obviously not impossible).
Unfortunately, the files are far too big to attach here, even after bzip2:
4726693 Sep 28 11:54 antspotlight-good.trace.bz2 10403215 Sep 28 11:57 antspotlight-bad.trace.bz2
Can I send them to your private email address instead, please?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #14 from Tom Stellard tstellar@gmail.com 2011-09-28 05:20:41 PDT --- (In reply to comment #13)
(In reply to comment #12)
Would you be able to post an apitrace(https://github.com/apitrace/apitrace)?
I have created two apitraces, one for antspotlight working correctly and the other for antspotlight not working. (It was more difficult to get antspotlight to misbehave with apitrace installed, but obviously not impossible).
Unfortunately, the files are far too big to attach here, even after bzip2:
4726693 Sep 28 11:54 antspotlight-good.trace.bz2 10403215 Sep 28 11:57 antspotlight-bad.trace.bz2
Can I send them to your private email address instead, please?
Sure, no problem.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #15 from Tom Stellard tstellar@gmail.com 2011-09-28 22:15:41 PDT --- I ran the bad apitrace you sent me, and it looked the same on r300g and llvmpipe. I'm leaning toward this being a bug in xscreensaver, rather than in the driver. You might want to ask the developers of xscreensaver to take a look, they will probably have a better idea of what is happening.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #16 from Michel Dänzer michel@daenzer.net 2011-09-29 00:20:23 PDT --- (In reply to comment #13)
I have created two apitraces, one for antspotlight working correctly and the other for antspotlight not working.
When you replay these traces, do you consistently get good results with the 'good' trace and bad results with the 'bad' trace?
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #17 from Chris Rankin rankincj@googlemail.com 2011-09-29 02:38:34 PDT --- (In reply to comment #16)
When you replay these traces, do you consistently get good results with the 'good' trace and bad results with the 'bad' trace?
Yes. The captured image representing my desktop must be stored within the trace file.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
--- Comment #18 from Michel Dänzer michel@daenzer.net 2011-09-29 09:49:41 PDT --- (In reply to comment #15)
I'm leaning toward this being a bug in xscreensaver, rather than in the driver. You might want to ask the developers of xscreensaver to take a look, they will probably have a better idea of what is happening.
I tend to agree. I notice that the antspotlight window appears briefly and then disappears again while the desktop contents are grabbed. The way this is done might not guarantee that it can't pick up the contents of the antspotlight window before it disappears.
I've been able to reproduce it with the classic r300 driver as well.
https://bugs.freedesktop.org/show_bug.cgi?id=29951
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |NOTOURBUG
--- Comment #19 from Tom Stellard tstellar@gmail.com 2011-10-28 18:29:56 PDT --- This appears to be an issue with xscreensaver and not a driver bug. I recommend notifying the xscreensaver developers.
dri-devel@lists.freedesktop.org