Bug 70621 - Random BadDrawable crashes with Ogre+SDL2 (test case attached)
Summary: Random BadDrawable crashes with Ogre+SDL2 (test case attached)
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: 9.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-18 15:00 UTC by scrawl
Modified: 2017-09-25 07:26 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description scrawl 2013-10-18 15:00:54 UTC
Test case available here: https://github.com/scrawl/ogre-sdl2-test/

Random crashes on startup of an application that uses OGRE within an SDL2 window.

Note this is similiar to another report here: https://bugs.freedesktop.org/show_bug.cgi?id=55951 but I don't think its the same (and disabling full screen doesn't help for me)

Crash message is always the same:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  137 (DRI2)
  Minor opcode of failed request:  3 (DRI2CreateDrawable)
  Resource id in failed request:  0x4a00002
  Serial number of failed request:  23
  Current serial number in output stream:  25

This crash happens randomly on startup (maybe 1 in 4 times). I am now convinced that it's a driver bug because:
 - It doesn't occur in NVIDIA driver
 - It happens randomly, even though the program doesn't do any multithreading
Comment 1 Sven Arvidsson 2013-10-18 16:34:13 UTC
Great to have a testcase, thanks!

I can reproduce this on r600g too (just like bug 55951) so this should probably be reassigned to Mesa core.
Comment 2 Tapani Pälli 2017-09-25 07:26:38 UTC
I'm resolving this old issue because the test app works fine on modern Mesa, tested with current git (commit 3e54493265).


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.