Skip to contentSkip to conversation

New: Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

Bug 46956 [email protected] 1 participant 9 messages Mar 4, 2012 – May 29, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Bug #: 46956
Summary: Selecting 2xAntiAliasing causes Nexuiz to crash "X
Error: BadMatch, failed request (X_CreateWindow)"
Classification: Unclassified
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]

Created attachment 58004
--> https://bugs.freedesktop.org/attachment.cgi?id=58004
Nexuiz console output

How to:
1. Startup Nexuiz
2. Select Settings>Effects
3. Set Antialiasing to 2x
4. Click Apply immediately
5. Observe the crash

Issue is not present when
* 0xAA, 4xAA mode is selected in Nexuiz
* Software rendering is used - LIBGL_ALWAYS_SOFTWARE=1

Issue is independent on
* kernel version
* direct/indirect rendering - LIBGL_ALWAYS_INDIRECT=1 makes no difference
* Desktop enviroment - Gnome3, fluxbox

Distribution - Arch x86-64
Nexuiz - 2.5.2 Nexuiz Linux 02:51:06 Oct 1 2009 9271 release kernel - 3.0.22 / 3.2.8 / nouveau-git
libdrm - 2.4.31
Mesa - 95594bae47d8b3302be188e6f0be2d69c5507bb3 xf86-video-nouveau - b0d7f4ddd94154491d04dcb9698d63d61e9240d Xorg - 1.11.4

The issue was bisected to

commit b2dcf880e8bcd61be59602f5a2d18c77a5fc60c1

Author: Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/[email protected]>
Date:   Mon Jul 11 18:02:27 2011 +0200

nv50,nvc0: add support for multi-sample resources

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.
#2 lore raw

[Bug 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

Emil Velikov <[email protected]> changed:

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

  Attachment #58004|application/octet-stream    |text/plain
          mime type|                            |
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 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #1 from Emil Velikov <[email protected]> 2012-03-04 06:19:15 PST --- Created attachment 58005
--> https://bugs.freedesktop.org/attachment.cgi?id=58005
nv50_screen_is_format_supported - debug info

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 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #2 from Emil Velikov <[email protected]> 2012-03-04 06:21:40 PST --- Created attachment 58006
--> https://bugs.freedesktop.org/attachment.cgi?id=58006
nv50_screen_is_format_supported - debug info, disallow sample_count=2

Nexuiz works great if we return False when sample_count is 2

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 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #3 from Emil Velikov <[email protected]> 2012-03-04 06:24:32 PST --- IMHO this is a mesa and/or X fault, although I'm out of ideas

I'm happy to test any patches/provide any additional information

Thanks
Emil

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 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #4 from Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/[email protected]> 2012-03-04 08:53:54 PST --- Created attachment 58007
--> https://bugs.freedesktop.org/attachment.cgi?id=58007
Patch to disable MS visuals.

Does that help ?

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 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #5 from Emil Velikov <[email protected]> 2012-03-04 12:05:50 PST --- Works like a charm

Note: Nexuiz complains about
"Couldn't get an RGB, Double-buffered, Depth visual"

Although everything works as expected

Thanks
Emil

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.
#8 lore raw

[Bug 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

--- Comment #6 from Emil Velikov <[email protected]> 2012-03-14 12:59:19 PDT --- The issue exists in xonotic 0.6 (nexuiz fork)

I would not mind filing the bug in xonotic if it is an application issue

Regards
Emil

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.
author Reviewed-by Brian Paul
#9 lore raw

[Bug 46956] Selecting 2xAntiAliasing causes Nexuiz to crash "X Error: BadMatch, failed request (X_CreateWindow)"

In reply to a message not in the archive

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

Emil Velikov <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Emil Velikov <[email protected]> 2012-05-29 12:47:09 PDT --- Thank you, the issue was resolved by

commit f80c2874eca86a12517fbe2f4c15287edfb4dc89

Author: Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/[email protected]>
Date:   Mon May 21 23:46:11 2012 +0200

gallium: add st_api feature mask to prevent advertising MS visuals

v2: use a define for the maximum sample count
v3: also test odd sample counts (r300 supports MS3)

While multisample renderbuffers are supported by mesa, MS visuals are not, so we need a way to tell dri/st not to advertise them even if the gallium driver does support multisampled surfaces.

Otherwise applications selecting these non-functional visuals would run into trouble ...

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.