QtCreator crashes when opening a filechooser under wayland

Bug #1702741 reported by Andrew Hayzen
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Debian)
Fix Released
Unknown
qtbase-opensource-src (Ubuntu)
Fix Released
Medium
Unassigned
Zesty
Fix Released
Medium
Unassigned

Bug Description

Impact
======
The file chooser dialog app for Qt apps will crash the app when trying to use the file chooser from a Wayland session such as GNOME on Wayland. GNOME on Wayland is included by default in Ubuntu GNOME.

Test Case
=========
1) Install Ubuntu 17.04 GNOME
2) On the login screen, click the gear button and choose GNOME on Wayland and log in.
3) Install qtcreator
4) Launch qtcreator
5) Try to do File -> Open File or Project

The file chooser should open without crashing the app

Regression Potential
====================
This fix was included in Qt 5.8. This patch was applied in Debian stretch in January as part of qtbase-opensource-src 5.7.1+dfsg-3

== Upstream ==

There is a qt bug here "GTK+ dialogs crash on Wayland" - https://bugreports.qt.io/browse/QTBUG-55583
With what looks like a simple code change that Ubuntu could carry as a patch? https://codereview.qt-project.org/#/c/179124/

Fedora appear to have fixed the bug in Fedora 25 - https://bugzilla.redhat.com/show_bug.cgi?id=1403500

== Debug output ==

When this occurs in the console you see the following:
(qtcreator:16534): Gdk-WARNING **: /build/gtk+3.0-qPyWJl/gtk+3.0-3.22.11/./gdk/x11/gdkwindow-x11.c:5573 drawable is not a native X11 window
Segmentation fault (core dumped)

When running under GDB: http://pastebin.ubuntu.com/25033921/

$ apt-cache policy qtcreator
qtcreator:
  Installed: 4.1.0-3ubuntu1
  Candidate: 4.1.0-3ubuntu1
  Version table:
 *** 4.1.0-3ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
        100 /var/lib/dpkg/status
$ lsb_release -rd
Description: Ubuntu 17.04
Release: 17.04

Jeremy Bícha (jbicha)
affects: qtcreator (Ubuntu) → qtbase-opensource-src (Ubuntu)
Changed in qtbase-opensource-src (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Jeremy Bícha (jbicha)
tags: added: wayland wayland-session zesty
Changed in qtbase-opensource-src (Ubuntu Zesty):
importance: Undecided → Medium
status: New → Triaged
Jeremy Bícha (jbicha)
Changed in qtbase-opensource-src (Ubuntu):
status: Triaged → Fix Committed
description: updated
Changed in qtbase-opensource-src (Debian):
status: Unknown → Fix Released
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thank you for taking the time to report this bug and help make Ubuntu better.

I have uploaded a fix for this bug to the unapproved queue for Ubuntu 17.04 "zesty". It will need to be manually approved by a member of the Ubuntu Stable Release Updates team before it will be built and made available for testing.

Changed in qtbase-opensource-src (Ubuntu Zesty):
status: Triaged → In Progress
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

I will follow this bug, but seems clearly not a vbox issue :)

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Andrew, or anyone else affected,

Accepted qtbase-opensource-src into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/qtbase-opensource-src/5.7.1+dfsg-2ubuntu4~1.17.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in qtbase-opensource-src (Ubuntu Zesty):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-zesty
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I tried the packages from zesty-proposed with the version 5.7.1+dfsg-2ubuntu4~1.17.04.1 and this allowed me to open the filechooser under QtCreator without crashing :-)

I then flipped back to the packages in the archive (5.7.1+dfsg-2ubuntu4~1) and was able to confirm it was crashing again.

So these packages resolve the issue for me :-)

tags: added: verification-done-zesty
removed: verification-needed-zesty
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thanks Andrew!

tags: removed: verification-needed
tags: removed: wayland-session
Revision history for this message
FransSchreuder (fransschreuder1) wrote :

The bug also affects me on 17.10, however setting to proposed fixes the bug. Thanks!

Revision history for this message
Brian Murray (brian-murray) wrote :

I might have missed that this isn't fixed in Artful (it is stuck in -proposed), this should not be release as an SRU for zesty until the fix has moved out of -proposed in Artful.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.7.1+dfsg-2ubuntu4~2

---------------
qtbase-opensource-src (5.7.1+dfsg-2ubuntu4~2) artful; urgency=medium

  [ Dmitry Shachnev ]
  * Backport upstream fix to make QGtk3Dialog not crash on Wayland
    (gtkdialogs_wayland.diff; closes: #850746) (LP: #1702741)

 -- Jeremy Bicha <email address hidden> Thu, 06 Jul 2017 15:42:37 -0400

Changed in qtbase-opensource-src (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

it finally landed in artful, so I presume now the SRU can continue with zesty :)

Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for qtbase-opensource-src has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.7.1+dfsg-2ubuntu4~1.17.04.1

---------------
qtbase-opensource-src (5.7.1+dfsg-2ubuntu4~1.17.04.1) zesty; urgency=medium

  * Backport upstream fix to fix GTK+ file dialog crash on Wayland
    (gtkdialogs_wayland.diff; closes: #850746) (LP: #1702741)

 -- Jeremy Bicha <email address hidden> Thu, 06 Jul 2017 15:42:37 -0400

Changed in qtbase-opensource-src (Ubuntu Zesty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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