Bug 31176 - [DRI2] DRI2SwapBuffers: bad drawable
Summary: [DRI2] DRI2SwapBuffers: bad drawable
Status: CLOSED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 17:17 UTC by Erdem U. Altınyurt
Modified: 2010-11-20 20:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
[DRI2] DRI2SwapBuffers: bad drawable (145.93 KB, text/plain)
2010-10-28 06:56 UTC, Erdem U. Altınyurt
no flags Details
compiz-manager stdout (590 bytes, text/plain)
2010-11-02 08:49 UTC, Erdem U. Altınyurt
no flags Details
stderr log of compiz amanger (2.27 KB, text/plain)
2010-11-02 08:51 UTC, Erdem U. Altınyurt
no flags Details
glxinfo output (11.76 KB, text/plain)
2010-11-02 09:01 UTC, Erdem U. Altınyurt
no flags Details

Description Erdem U. Altınyurt 2010-10-27 17:17:54 UTC
.Compiz v9.0 problem on radeon.

I am using radeon r600g with latest 7.10 git mesa on OpenSuSE 11.3
Also using latest xf86-video-ati driver from git and compiled for myself...
Have linux 2.6.36 vanilla kernel compiled by myself...

I install compiz v9.0 from opensuse's 11.3 repo. After installation I run compiz via "compiz-manager" command than something happen. 

I can see background picture. But there is no windows on it. Nothing visible but mouse cursor. Actually when you move mouse, it changes shape at corners of windows. Actually you can resize and move windows but they are just invisible.. I checked compiz output but there is nothing wrong. 

After some search I find some errors on my Xorg.0.log. There is multiple lines of this error:

(EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable

So something wrong but don't know what is it actually. I tried with r600 DRI drivers and have same result. It's not related with 3D stack or r600g I think.

Just let you know about the problem...
Thanks.
Comment 1 Michel Dänzer 2010-10-27 23:22:56 UTC
Please attach the full Xorg.0.log file and output from compiz. Also, please provide the checked out commit hashes of all Git repositories involved.

You may remove the NEEDINFO keyword after you've provided at least the information above.
Comment 2 Erdem U. Altınyurt 2010-10-28 06:56:24 UTC
Created attachment 39845 [details]
[DRI2] DRI2SwapBuffers: bad drawable

Xorg.0.log has [DRI2] DRI2SwapBuffers: bad drawable errors accurs only when I run compiz v9.0.
Comment 3 Michel Dänzer 2010-11-02 01:33:28 UTC
You haven't provided all the requested information yet. (BTW, the glxinfo output might be interesting as well)
Comment 4 Erdem U. Altınyurt 2010-11-02 08:49:36 UTC
Created attachment 39981 [details]
compiz-manager stdout

captured with
compiz-manager > compiz-manager.log
Comment 5 Erdem U. Altınyurt 2010-11-02 08:51:05 UTC
Created attachment 39982 [details]
stderr log of compiz amanger

compiz-manager 2&> compiz-manager-err.log
Comment 6 Erdem U. Altınyurt 2010-11-02 09:01:37 UTC
Created attachment 39983 [details]
glxinfo output

And here glxinfo output.
Watch for 3.rd line.
EE r600_pipe.c/r600_get_param:305 - r600: unknown param 31

I am using 790GX MB GPU, r600 compatible onboard gpu.(I disable the sideband memory and working only with UMA.)

From compiz-manager error log, it annoying about 2 missing libraries. One of it is looks important, "libcore", but as think this library renamed as libccp at compiz v0.9... I also placed a bug report to OpenSUSE
https://bugzilla.novell.com/show_bug.cgi?GoAheadAndLogIn=1&id=642988

I don't know exactly where is the problem. Programs annoys from libraries but it "looks like working" but it cannot paste textures to screen.
I try to look deeper. Thanks.
Comment 7 Michel Dänzer 2010-11-03 05:12:07 UTC
(In reply to comment #6)
> From compiz-manager error log, it annoying about 2 missing libraries. One of it
> is looks important, "libcore", but as think this library renamed as libccp at
> compiz v0.9... I also placed a bug report to OpenSUSE
> https://bugzilla.novell.com/show_bug.cgi?GoAheadAndLogIn=1&id=642988

This really looks like a compiz(-manager) issue. Feel free to reopen this report with new evidence against the drivers, e.g. the Mesa demo xdemos/texture_from_pixmap or other OpenGL compositing managers such as kwin or gnome-shell/mutter not working.
Comment 8 Erdem U. Altınyurt 2010-11-03 10:33:05 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > From compiz-manager error log, it annoying about 2 missing libraries. One of it
> > is looks important, "libcore", but as think this library renamed as libccp at
> > compiz v0.9... I also placed a bug report to OpenSUSE
> > https://bugzilla.novell.com/show_bug.cgi?GoAheadAndLogIn=1&id=642988
> 
> This really looks like a compiz(-manager) issue. Feel free to reopen this
> report with new evidence against the drivers, e.g. the Mesa demo
> xdemos/texture_from_pixmap or other OpenGL compositing managers such as kwin or
> gnome-shell/mutter not working.

Yes looks like but I "guess" its not. I compiled compiz from repo by hand and it doesn't create such a library (libcore.so). I don't know why it looking for this library... anyway.

From Xorg error, "(EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable", I guess it just cannot draw required textures to screen. Because at window corners mouse changes it's shape. Just windows cannot drawn to screen...

I changed the status to "closed, notourbug". I will watch latest git repos and will report if it fixed.

Thanks...
Comment 9 Erdem U. Altınyurt 2010-11-20 20:09:40 UTC
Watching improvements on it and found that newer errorlines:
I updated to compiz 0.9.2 from same repo, also updating latest drivers from mesa and ati. I am suspecting this error is related with about xf86-video-ati, not mesa...

"[DRI2] DRI2GetMSC: bad drawable" error messages on Xorg.0.log

Actually there is much of error lines repeating it self for pages...

[  1382.702] (EE) RADEON(0): [DRI2] DRI2GetMSC: bad drawable
[  1382.702] (EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable
[  1382.730] (EE) RADEON(0): [DRI2] DRI2GetMSC: bad drawable
[  1382.732] (EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable
[  1382.736] (EE) RADEON(0): [DRI2] DRI2GetMSC: bad drawable
[  1382.738] (EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable
[  1382.753] (EE) RADEON(0): [DRI2] DRI2GetMSC: bad drawable
[  1382.753] (EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable
[  1382.764] (EE) RADEON(0): [DRI2] DRI2GetMSC: bad drawable
[  1382.764] (EE) RADEON(0): [DRI2] DRI2SwapBuffers: bad drawable

Last one more thing, I also tried ATI Radeon 6850 with fglrx, it could show compiz 0.9.2 splash for a second on same machine. Than X restarts itself. Don't investigate why yet. Might be it's due 6850 not supported by fglrx officially yet.
Thanks


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.