Bug 1398970

Summary: [abrt] rosegarden4: rosegarden killed by SIGSEGV
Product: [Fedora] Fedora Reporter: John Freed <okrh>
Component: rosegarden4Assignee: Brendan Jones <brendan.jones.it>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: brendan.jones.it
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/89c53d28bc83aa40e0dfec39e97b82b0a58373a1
Whiteboard: abrt_hash:ded1aa230f9b3dc0a61297a2f4ad0e94cd489607;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-27 18:17:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description John Freed 2016-11-27 18:06:36 UTC
Description of problem:
Using Wayland after upgrade to F25.

Open rosegarden. Use the "File / Open..." menu. Program crashes.
It also crashes upon a "File / Save As ..." after a successful file open from "File / Open Recent /".

When running from the terminal, I get the following when it crashes:

(rosegarden:6486): Gdk-WARNING **: gdkwindow-x11.c:5554 drawable is not a native X11 window
Segmentation fault (core dumped)

Suggested elsewhere that "The troublemaker here will most likely be xembed and/or the Qt5 gtk QPA." 
and "the problem will be the qt5 gnome qpa hard-assuming wayland"
See https://bbs.archlinux.org/viewtopic.php?id=218680 and https://bbs.archlinux.org/viewtopic.php?id=218831

As suggested elsewhere, thre are two workarounds:
-- start app with GDK_BACKEND=x11 rosegarden
-- use the gnome-x11org login, which essentially applies the above to all apps, IIUC.

The workaround produces this error upon using the "File Open..." dialog
"Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged."

It would appear that this is a known bug (fixed Sept. 21, 2016) in https://github.com/MartinBriza/QGnomePlatform


Version-Release number of selected component:
rosegarden4-16.02-2.fc25

Additional info:
reporter:       libreport-2.8.0
backtrace_rating: 4
cmdline:        rosegarden
executable:     /usr/bin/rosegarden
global_pid:     5648
kernel:         4.8.8-300.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 ??
 #1 XChangeProperty at ChProp.c:92
 #2 XSetTransientForHint at SetHints.c:286
 #3 QGtk3Dialog::show at qgtk3dialoghelpers.cpp:133
 #4 QGtk3FileDialogHelper::show at qgtk3dialoghelpers.cpp:258
 #5 QDialogPrivate::setNativeDialogVisible at dialogs/qdialog.cpp:140
 #6 QFileDialog::setVisible at dialogs/qfiledialog.cpp:846
 #7 QDialog::exec at dialogs/qdialog.cpp:544
 #8 Rosegarden::FileDialog::getOpenFileName at /usr/src/debug/rosegarden-16.02/src/gui/widgets/FileDialog.cpp:131
 #9 Rosegarden::RosegardenMainWindow::slotFileOpen at /usr/src/debug/rosegarden-16.02/src/gui/application/RosegardenMainWindow.cpp:2009

Comment 1 John Freed 2016-11-27 18:06:41 UTC
Created attachment 1224940 [details]
File: backtrace

Comment 2 John Freed 2016-11-27 18:06:42 UTC
Created attachment 1224941 [details]
File: cgroup

Comment 3 John Freed 2016-11-27 18:06:44 UTC
Created attachment 1224942 [details]
File: core_backtrace

Comment 4 John Freed 2016-11-27 18:06:45 UTC
Created attachment 1224943 [details]
File: dso_list

Comment 5 John Freed 2016-11-27 18:06:46 UTC
Created attachment 1224944 [details]
File: environ

Comment 6 John Freed 2016-11-27 18:06:47 UTC
Created attachment 1224945 [details]
File: exploitable

Comment 7 John Freed 2016-11-27 18:06:49 UTC
Created attachment 1224946 [details]
File: limits

Comment 8 John Freed 2016-11-27 18:06:50 UTC
Created attachment 1224947 [details]
File: maps

Comment 9 John Freed 2016-11-27 18:06:52 UTC
Created attachment 1224948 [details]
File: mountinfo

Comment 10 John Freed 2016-11-27 18:06:53 UTC
Created attachment 1224949 [details]
File: namespaces

Comment 11 John Freed 2016-11-27 18:06:54 UTC
Created attachment 1224950 [details]
File: open_fds

Comment 12 John Freed 2016-11-27 18:06:55 UTC
Created attachment 1224951 [details]
File: proc_pid_status

Comment 13 John Freed 2016-11-27 18:06:56 UTC
Created attachment 1224952 [details]
File: var_log_messages

Comment 14 John Freed 2016-11-27 18:17:59 UTC
I can confirm that this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1392605

And the proposed solution in "Common Bugs" worked

sudo dnf install qgnomeplatform

It certainly is odd that you set the environment variable QT_QPA_PLATFORM to qgnomeplatform by default but don't install qgnomeplatform by default!

*** This bug has been marked as a duplicate of bug 1392605 ***