SDL apps open a second black window titled "OpenGL test" or "Mir surface"

Bug #1676000 reported by dinamic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
libsdl2 (Ubuntu)
Confirmed
Undecided
Unassigned
qtmir (Ubuntu)
Confirmed
Undecided
Unassigned
qtubuntu (Ubuntu)
Confirmed
Undecided
Unassigned
unity8 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 17.04 Unity8

neverball opens a second black window, maximizing the window crashes unity8

start neverball without Xmir (it's an SDL2 app i think)
you'll now see a black window behind the neverball window titled "OpenGL test" (see screenshot), now try to maximize that black window, here it just crashes unity8

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :

unity8 log before crash

[2017-03-25:09:39:16.241] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:16.892] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:17.679] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:18.312] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:19.077] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:20.412] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:23.481] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:24.965] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::activate()
[2017-03-25:09:39:24.966] qtmir.surfaces: MirSurface[0x56364aa4bd00,"neverball"]::requestState(maximized)
terminate called after throwing an instance of 'std::out_of_range'
  what(): map::at
()

Revision history for this message
dinamic (dinamic6661) wrote :

there are more bugs in this bug report,
1. the black window
2. neverball window is transparent
3. if you resize the window it doesn't resize well
4. if you resize/close the black window it crashes unity8

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The unity8 crash in "what(): map::at" is pretty common but I'm not sure if we have one or more remaining causes of that. See bug 1668466, bug 1672012

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, bug confirmed. Unity8 fails to launch Neverball from the app drawer but I can get it running from ssh:
   neverball -- --desktop_file_hint=unity8
and now I can see this bug.

However, I also know that SDL likes to probe the server with some early connections so this might be a duplicate of bug 1577641 if SDL is leaking a duplicate MirConnection. Fixing either SDL or Unity8 (bug 1577641) should do the trick.

tags: added: unity8-desktop
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libsdl2 (Ubuntu):
status: New → Confirmed
Changed in qtmir (Ubuntu):
status: New → Confirmed
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Same bug in neverputt. Looks like the SDL/Unity8 issues mentioned in comment #5.

summary: - neverball opens a second black window, maximizing the window crashes
- unity8
+ SDL apps open a second black window ("OpenGL test")
summary: - SDL apps open a second black window ("OpenGL test")
+ SDL apps open a second black window titled "OpenGL test"
summary: - SDL apps open a second black window titled "OpenGL test"
+ SDL apps open a second black window titled "OpenGL test" or "Mir
+ surface"
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.