Bug 460825

Summary: Segfault on startup with fresh install (all versions)
Product: [Applications] krita Reporter: gapokev808
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: ghevan, halla
Priority: NOR    
Version First Reported In: 5.1.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Longer coredumpctl

Description gapokev808 2022-10-21 19:21:34 UTC
Created attachment 153098 [details]
Longer coredumpctl

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. type `krita` in terminal emulator

OBSERVED RESULT
Segmentation fault within a tenth of a second

EXPECTED RESULT
The program should open

SOFTWARE/OS VERSIONS
Literally ran `sudo Pacman -Syu` three minutes before running the program, before and after a reboot.

ADDITIONAL INFORMATION
Stack trace of thread 7494:
                #0  0x00007f883f1840dd _ZN14QOpenGLContext6createEv (libQt5Gui.so.5 + 0x1840dd)
                #1  0x00007f883860b191 n/a (KDEPlasmaPlatformTheme.so + 0x39191)
                #2  0x00007f883ec9202f _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x29202f)
                #3  0x00007f883ec92262 _ZN16QCoreApplicationC1ERiPPci (libQt5Core.so.5 + 0x292262)
                #4  0x0000559908571e27 n/a (krita + 0x5e27)
                #5  0x00007f883e43c290 n/a (libc.so.6 + 0x23290)
                #6  0x00007f883e43c34a __libc_start_main (libc.so.6 + 0x2334a)
                #7  0x0000559908575a55 n/a (krita + 0x9a55)
                
                Stack trace of thread 7495:
                #0  0x00007f883e5140bf __poll (libc.so.6 + 0xfb0bf)
                #1  0x00007f883c56fe2f n/a (libglib-2.0.so.0 + 0xabe2f)
                #2  0x00007f883c5180d2 g_main_context_iteration (libglib-2.0.so.0 + 0x540d2)
                #3  0x00007f883ecd750c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d750c)
                #4  0x00007f883ec8532c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x28532c)
                #5  0x00007f883eae749f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe749f)
                #6  0x00007f883c3f7cba n/a (libQt5DBus.so.5 + 0x23cba)
                #7  0x00007f883eae42ba n/a (libQt5Core.so.5 + 0xe42ba)
                #8  0x00007f883e49f8fd n/a (libc.so.6 + 0x868fd)
                #9  0x00007f883e521a60 n/a (libc.so.6 + 0x108a60)
                ELF object binary architecture: AMD x86-64
Comment 1 gapokev808 2022-10-21 19:24:19 UTC
To clarify: I additionally downloaded and tested 5.1.0, 5.0.8, 5.0.6, all of which had the exact same output.
Comment 2 vanyossi 2022-10-21 20:20:36 UTC
For linux we recommend using the Appgimage (https://krita.org/en/download/krita-desktop/) as we use a heavily patched Qt-5.12 and is mantained by us.

This is likely a bug in archlinux packaging and should be reported to their package mantainer: https://archlinux.org/packages/extra/x86_64/krita/