Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 528070

Summary: [qt overlay] razorqt-base/libqtxdg-1.0.0 probably should rdepend on x11-misc/xdg-utils (lxqt-base/lxqt-panel-0.8.0 segfault)
Product: Gentoo Linux Reporter: Alpha Bravo <aos>
Component: Current packagesAssignee: Jauhien Piatlicki (RETIRED) <jauhien>
Status: RESOLVED FIXED    
Severity: normal CC: lxqt
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 525410    

Description Alpha Bravo 2014-11-03 02:14:28 UTC
[qt overlay] lxqt-base/lxqt-panel-0.8.0 segfaulted (amd64/hardened/no-multilib, Qt5 only), solved by emerging x11-misc/xdg-utils and reemerging razorqt-base/libqtxdg-1.0.0

Reproducible: Didn't try
Comment 1 Alpha Bravo 2014-11-03 02:21:07 UTC
FYI I'm using lxmenu-data-0.1.4 and menu-cache-1.0.0_rc1 (cf. https://github.com/gentoo/qt/pull/81)
Comment 2 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-11-03 09:02:49 UTC
(In reply to Alpha Bravo from comment #0)
> [qt overlay] lxqt-base/lxqt-panel-0.8.0 segfaulted
> (amd64/hardened/no-multilib, Qt5 only), solved by emerging
> x11-misc/xdg-utils and reemerging razorqt-base/libqtxdg-1.0.0
> 
> Reproducible: Didn't try

Could you describe steps that lead to the segfault?
Comment 3 Alpha Bravo 2014-11-03 11:39:22 UTC
First I removed the LXQt components from my personal overlay (except those I mentioned in comment 1), then

 # layman -a qt && layman -S
 # emerge -vuDN @world

thus reemerging the LXQt Components (from the Qt overlay)

 # emerge --depclean && revdep-rebuild

removed x11-misc/xdg-utils (and x11-apps/xset, www-client/links, dev-util/desktop-file-utils)

After rebooting the system, and login into LXQt (I use sddm and openbox) I was greeted with an error message something like "lxqt-panel crashed to often" and left without the panel, whereas my autostarted qterminal worked (all windows were lacking the title bar with the close buttons etc.).

 $ lxqt-panel

then told me that it segfaulted.

 # emerge -1v xdg-utils && emerge -1v libqtxdg

solved the problem, lxqt-panel could be started again.

Btw LXQt is the only desktop installed here.


--- libqtxdg-1.0.0.ebuild      2014-11-03 03:26:01.111847197 +0100
+++ -       2014-11-03 12:35:47.483337020 +0100
@@ -32,7 +32,9 @@
 DEPEND="${CDEPEND}
        test? ( dev-qt/qttest:5 )
 "
-RDEPEND="${CDEPEND}"
+RDEPEND="${CDEPEND}
+       x11-misc/xdg-utils
+"
 
 src_configure() {
        local mycmakeargs=(
Comment 4 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-11-03 12:44:38 UTC
Looks strange as for me lxqt-panel works fine without x11-misc/xdg-utils. Could i ask you to try to reproduce this bug on your side by unmerging x11-misc/xdg-utils, reemerging razorqt-base/libqtxdg and looking if lxqt-panel starts to fail again?

Also I tried to quickly grep the sources and it seems that x11-misc/xdg-utils is needed only for tests of razorqt-base/libqtxdg.
Comment 5 Alpha Bravo 2014-11-03 13:22:32 UTC
Reproducible.
First error message is:
"Panel crashed too many times. Its autorestart has been disabled until next login."

 $ lxqt-panel
 iconTheme "oxygen"
 Theme: Cannot open file for reading: "/lxqt-panel.qss"
 QWidget(0x78f87afbe0)  does not have a property named  "iconSize"
 QWidget(0x78f87afbe0)  does not have a property named  "iconSize"
 settingsChanged "Alsa"
 iconTheme "oxygen"
 iconTheme "oxygen"
 LxQt::RotatedWidget(0x78f882c4c0)  does not have a property named  "iconSize"
 LxQt::RotatedWidget(0x78f882c4c0)  does not have a property named  "iconSize"
 libGL error: MESA-LOADER: could not create udev device for fd 29
 MESA-LOADER: could not create udev device for fd 29
 WinIdChange 1400005 handle QWidgetWindow(0x78f874a410, name = "LxQtPanel panel1Window") QScreen(0x78f8726570)
 LxQtQuickLaunch(0x78f87a0a60, name = "QuickLaunch")  does not have a property named  "iconSize"
 LxQtTaskBar(0x78f87af7a0, name = "TaskBar")  does not have a property named  "iconSize"
 QWidget(0x78f88274d0, name = "Clock")  does not have a property named  "iconSize"
 LxQt::Translator: Qt translations not found
 QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 4194318, major code: 20 (GetProperty), minor code: 0
 Systray started
 Segmentation fault
Comment 6 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-11-03 15:46:43 UTC
Ok, after a discussion in IRC with developers, it came out that x11-misc/xdg-utils should be added as dependency.

10:38 < jauhien> jleclanche: >   xdg-utils should really be installed on your machine regardless
10:39 < jauhien> jleclanche: so it should be a dependency?
10:39 < jauhien> jleclanche: as I am packaging LXQt-0.8.0 now
10:39 < jauhien> so it is a question
10:40 <+jleclanche> jauhien: xdg-utils is essential to any working DE
10:40 <+jleclanche> but its not a direct dependency no
10:40 <+jleclanche> xdg-utils is how files are opened
10:42 < jauhien> jleclanche: where is it used in the code?
10:42 < jauhien> as I tried to grep it
10:42 < jauhien> and found only in tests
10:43 <+jleclanche> jauhien: pcmanfm-qt uses it
10:43 < jauhien> jleclanche: anyway, thanks, I will add it to dependencies, so it is pulled in for LXQt desktop
10:44 < jauhien> jleclanche: can its lack lead to segfaults?
10:44 <+jleclanche> no, but files wont be opened
10:44 < jauhien> like https://bugs.gentoo.org/show_bug.cgi?id=528070
10:44 <+jleclanche> if you're packaging for a wide-audience distro just add it as a dependency
Comment 7 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-11-03 15:50:54 UTC
Dependency added. Thanks for reporting.