FS#66808 - [qt5ct] krita segfaults with Qt5 5.15

Attached to Project: Community Packages
Opened by Vladimir (_v_l) - Thursday, 28 May 2020, 05:47 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 03 June 2020, 12:39 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: krita segfaults at start when QT_QPA_PLATFORMTHEME=qt5ct is set, without it krita starts fine.

Additional info:
* qt5ct: 0.41-3
* krita: 4.2.9-4
* qt5: 5.15

Steps to reproduce:
set QT_QPA_PLATFORMTHEME=qt5ct and run krita. The backtrace:

(gdb) runStarting program: /usr/bin/krita [Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffef216700 (LWP 597399)]
qt5ct: using qt5ct plugin

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff50048e0 in QPalette::QPalette(QPalette const&) () from /usr/lib/libQt5Gui.so.5
(gdb) bt
#0 0x00007ffff50048e0 in QPalette::QPalette(QPalette const&) () from /usr/lib/libQt5Gui.so.5
#1 0x00007ffff4fd4753 in QGuiApplicationPrivate::setPalette(QPalette const&) () from /usr/lib/libQt5Gui.so.5
#2 0x00007ffff4fd9915 in QGuiApplicationPrivate::updatePalette() () from /usr/lib/libQt5Gui.so.5
#3 0x00007ffff4fdb712 in QGuiApplicationPrivate::init() () from /usr/lib/libQt5Gui.so.5
#4 0x00007ffff4fdc528 in QGuiApplication::QGuiApplication(int&, char**, int) () from /usr/lib/libQt5Gui.so.5
#5 0x00007ffff6fa2d94 in KisOpenGLModeProber::probeFormat(KisOpenGL::RendererConfig const&, bool) () from /usr/lib/libkritaui.so.18
#6 0x00007ffff6f8c1cb in KisOpenGL::selectSurfaceConfig(KisOpenGL::OpenGLRenderer, KisConfig::RootSurfaceFormat, bool) () from /usr/lib/libkritaui.so.18
#7 0x0000555555e4cd9f in main ()


The qt5ct itself starts and works fine.
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 03 June 2020, 12:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Added workaround in krita 4.2.9-5
Comment by Antonio Rojas (arojas) - Thursday, 28 May 2020, 06:17 GMT
Please report this upstream to qt5ct
Comment by Vladimir (_v_l) - Thursday, 28 May 2020, 09:09 GMT
Done,
https://sourceforge.net/p/qt5ct/tickets/77/

I checked several Qt5 applications but only krita crashes. I tried to run it through valgrind and saw some palette related code. This seems a bit different than 66806 report, I didn't see that other (tested) qt5 applications are crashed. This is my qt5ct configuration:
Style: Fusion
Standard dialogs: GTK3
Palette: custom
Color scheme: darker
Fonts: Consolas
Icon theme: Faenza
Style Sheets: none (none selected)

Loading...