Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault in kvantum 1.0.8-1 #853

Closed
mockxe opened this issue Feb 10, 2023 · 7 comments
Closed

segmentation fault in kvantum 1.0.8-1 #853

mockxe opened this issue Feb 10, 2023 · 7 comments

Comments

@mockxe
Copy link

mockxe commented Feb 10, 2023

overview

After upgrading to kvantum 1.0.8-1 I experienced crashes of different applications.

system info

arch linux, kernel 6.1.10-arch1-1
xorg-server 21.1.7-1
plasma 5.26.5-1
plasma-framework 5.102.0-1
qt5-base 5.15.8+kde+r181-1
qt6-base 6.4.2-1
kvantum 1.0.8-1
kvantum-themes: Sweet KDE, Monochrome KDE (other, built-in themes seemed not to cause any crashes)

affected applications

steps-to-reproduce

System settings

    1. open system settings
    1. navigate to applications > Default Applications --> crash

libreoffice

    1. start libreoffice (launcer, not any specific program like calc / writer)
    1. open Tools > Options --> crash

OR

    1. create new (calc / writer) document --> crash

cool-retro-term

    1. start cool-retro-term
    1. rightclick > edit > settings
    1. select tab "Terminal" --> crash

details

I started all programs with gdb and found this:

Thread 1 "systemsettings" received signal SIGSEGV, Segmentation fault.
0x00007fffe80d5de1 in Kvantum::Style::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt/plugins/styles/libkvantum.so
Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffe3f80de1 in Kvantum::Style::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt/plugins/styles/libkvantum.so
Thread 1 "cool-retro-term" received signal SIGSEGV, Segmentation fault.
0x00007fffe80d5de1 in Kvantum::Style::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt/plugins/styles/libkvantum.so

here is the complete steps + backtrace

$ gdb cool-retro-term
[...]
(gdb) run
[reproducing the steps mentioned above]

Thread 1 "cool-retro-term" received signal SIGSEGV, Segmentation fault.
0x00007fffe80d5de1 in Kvantum::Style::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt/plugins/styles/libkvantum.so                              

(gdb) backtrace
#0  0x00007fffe80d5de1 in Kvantum::Style::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt/plugins/styles/libkvantum.so                          
#1  0x00007fffd512154a in ?? ()
   from /usr/lib/qt/qml/org/kde/qqc2desktopstyle/private/libqqc2desktopstyleplugin.so
#2  0x00007ffff104746a in QQuickWindowPrivate::polishItems() () from /usr/lib/libQt5Quick.so.5
#3  0x00007ffff100233b in ?? () from /usr/lib/libQt5Quick.so.5
#4  0x00007ffff1052739 in QQuickWindow::event(QEvent*) () from /usr/lib/libQt5Quick.so.5
#5  0x00007ffff7978b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQt5Widgets.so.5
#6  0x00007ffff668df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#7  0x00007ffff7133488 in QPlatformWindow::windowEvent(QEvent*) () from /usr/lib/libQt5Gui.so.5
#8  0x00007ffff797d041 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff668df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#10 0x00007ffff66d84b3 in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff66d8af2 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007ffff591682b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007ffff596dcc9 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007ffff59150e2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#15 0x00007ffff66d8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#16 0x00007ffff66866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#17 0x00007ffff6691219 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#18 0x000055555555789e in ?? ()
#19 0x00007ffff6e3c790 in ?? () from /usr/lib/libc.so.6
#20 0x00007ffff6e3c84a in __libc_start_main () from /usr/lib/libc.so.6
#21 0x0000555555558165 in ?? ()

possible workaround:

I temporarily downgrade to kvantum 1.0.7-1 and cannot reproduce the errors with it.


I hope the provided information helps, please tell me if you need anything else.

@simonbcn
Copy link

Same problem: https://bugs.archlinux.org/task/77453

@xfzv
Copy link

xfzv commented Feb 10, 2023

Can confirm, I keep getting core dump crash in various System Settings sections. Downgrading to kvantum 1.0.7-1 fixes the issue for me.

@tsujan
Copy link
Owner

tsujan commented Feb 10, 2023

Thanks for the report, and sorry for the inconvenience!

Yes, it was a nasty regression that showed up when the widget animation was disabled. It's fixed in 990763d.

Before I release 1.0.9, please confirm that the latest commit fixes the problem.

@xfzv
Copy link

xfzv commented Feb 10, 2023

@tsujan updating to kvantum 1.0.8-2 on Arch Linux fixed the issue for me.

@mockxe
Copy link
Author

mockxe commented Feb 10, 2023

I can confirm it is working when built from the latest sources.

Please see my attached screenshot where I opened the System Settings page which previously caused a crash:
image

Thanks for the fast fix!

@tsujan
Copy link
Owner

tsujan commented Feb 10, 2023

Thanks for the confirmations!

I'll double-check the code and add a workaround for a rare problem before releasing 1.0.9.

@tsujan tsujan closed this as completed Feb 10, 2023
@tsujan
Copy link
Owner

tsujan commented Feb 10, 2023

1.0.9 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants