Bug 72093 - GLAMOR:X crashes when clicking the OpenGL entry in KInfoCenter
Summary: GLAMOR:X crashes when clicking the OpenGL entry in KInfoCenter
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Acceleration/glamor (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Alex Deucher
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 02:26 UTC by thepouar
Modified: 2018-06-13 18:27 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log file (39.18 KB, text/plain)
2013-11-28 02:26 UTC, thepouar
no flags Details
Xorg.0.log right after crash (40.53 KB, text/plain)
2014-02-11 19:12 UTC, thepouar
no flags Details
Xorg.0.log right after crash (right one this time) (41.60 KB, text/plain)
2014-02-11 21:01 UTC, thepouar
no flags Details
Xorg.0.log with -g (42.49 KB, text/plain)
2014-02-12 11:25 UTC, thepouar
no flags Details
Backtrace from xorg after a try to open OpenGL tab in Kinfocenter (3.20 KB, text/plain)
2014-02-23 12:42 UTC, Dmitry Derevyanko
no flags Details
Another backtrace after building mesa with debug symbols. (1.51 KB, text/plain)
2014-02-23 14:42 UTC, Dmitry Derevyanko
no flags Details

Description thepouar 2013-11-28 02:26:19 UTC
Created attachment 89930 [details]
Xorg log file

X crashes when clicking the OpenGL entry in KInfoCenter when using GLAMOR. It works just fine with EXA. I'm using Radeon 6970.
Comment 1 Andreas Boll 2014-02-08 21:08:00 UTC
Is this still an issue with a newer glamor version?
Comment 2 thepouar 2014-02-09 23:33:57 UTC
yes, And in Mesa 10.1-rc
Comment 3 Andreas Boll 2014-02-11 15:52:40 UTC
I think this is a duplicate of bug 71190

Could you test with current git master branch.
This patch [1] should help. 

[1] http://cgit.freedesktop.org/xorg/driver/glamor/commit/?id=073c97f494ffe67b15b7a6a95fa894c3e109d862
Comment 4 thepouar 2014-02-11 19:08:00 UTC
nope still there. I assume the display manager (currently using KDM) is suppose to restart the X server after a crash right?
Comment 5 thepouar 2014-02-11 19:12:07 UTC
Created attachment 93880 [details]
Xorg.0.log right after crash
Comment 6 Andreas Boll 2014-02-11 20:47:40 UTC
(In reply to comment #5)
> Created attachment 93880 [details]
> Xorg.0.log right after crash

Are you sure that you get this with the commit mentioned above?
Because the error message "destination is framebuffer incomplete" has been removed with that patch.

<snip>
- FatalError("destination is framebuffer incomplete: %s [%x]\n",
- str, status);
+ glamor_fallback("glamor: Failed to create fbo, %s\n", str);
+ err = -1;
<snip>
Comment 7 thepouar 2014-02-11 21:01:48 UTC
Created attachment 93884 [details]
Xorg.0.log right after crash (right one this time)

oops, wrong log.
Comment 8 Zhigang Gong 2014-02-12 01:50:14 UTC
(In reply to comment #7)
> Created attachment 93884 [details]
> Xorg.0.log right after crash (right one this time)
> 
> oops, wrong log.

There is no glamor symbol in this log. Could you possible to get a gdb back trace or build glamor with debug symbol then get a new log? Thanks.
Comment 9 thepouar 2014-02-12 11:25:11 UTC
Created attachment 93931 [details]
Xorg.0.log with -g

here ya go
Comment 10 Zhigang Gong 2014-02-12 12:41:43 UTC
(In reply to comment #7)
> Created attachment 93884 [details]
> Xorg.0.log right after crash (right one this time)
> 
> oops, wrong log.

The root cause may be:
[  1230.077] XXX fail to create fbo.

Which means a glamor_egl_create_textured_pixmap() failed to set a texture
to a pixmap. This is an unexpected situation. As the texture is created
from an image which already allocated on the gpu memory, this call should not fail. Maybe we need to change the logmessage to an assertion. This bug should
be related to the ATI driver. The key hint here is to investigate how the function glamor_set_pixmap_texture() which is called in glamor_egl_create_texture_pixmap() fail to ensure the texture to a fbo.
Comment 11 thepouar 2014-02-12 14:24:13 UTC
I have zero experience programming drivers, much less debugging. I probably wouldn't know what to look for.
Comment 12 Zhigang Gong 2014-02-12 14:31:55 UTC
Alex,

I believe this should be a driver related bug. You may want to take a look.
Comment 13 Dmitry Derevyanko 2014-02-23 12:42:28 UTC
Created attachment 94596 [details]
Backtrace from xorg after a try to open OpenGL tab in Kinfocenter

I have the same bug. Maybe this backtrace will help.
Comment 14 Dmitry Derevyanko 2014-02-23 14:42:37 UTC
Created attachment 94599 [details]
Another backtrace after building mesa with debug symbols.

When building galmor, xorg-server, xf86-video-ati, glibc and mesa with CFLAGS="-O0 -pipe -ggdb -g -Wall" xserver doesn't crash but just freezes and in gdb produces this backtrace.
Comment 15 Adam Jackson 2018-06-13 18:27:38 UTC
Lots of changes to glamor in the last 3+ years, please reopen if you still see this with current releases.


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.