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

Segfault in libdxcb.so when trying to open Krita on Manjaro/DDE #46

Closed
Lecraminos opened this issue May 25, 2020 · 7 comments
Closed

Segfault in libdxcb.so when trying to open Krita on Manjaro/DDE #46

Lecraminos opened this issue May 25, 2020 · 7 comments
Assignees

Comments

@Lecraminos
Copy link

Issue description

When trying to open Krita in a Deepin Desktop Environment on Manjaro 20.0.1., the application throws a segfault and refuses to start.

Steps to reproduce the issue

  1. Open a terminal (zsh in my case)
  2. type krita

What's the expected result?

  • a running application

What's the actual result?

segmentation fault (core dumped) krita

and in the dmesg log:

traps: krita[212953] general protection fault ip:7f129c74a324 sp:7fff31ef3380 error:0 in libdxcb.so[7f129c73a000+3b000]

Additional details

qmake --version

QMake version 3.1
Using Qt version 5.14.2 in /usr/lib

pacman -Qe krita

krita 4.2.9-2

pacman -Qe deepin-qt5dxcb-plugin

deepin-qt5dxcb-plugin 5.0.11-1

pacman -Qe `pacman -Qg qt | awk '{print $2}'`

qt5-translations 5.14.2-1

pacman -Qe `pacman -Qg deepin | awk '{print $2}'`

deepin-account-faces 1.0.11-1.1
deepin-anything 5.0.1-2
deepin-api 5.1.11.1-1
deepin-calendar 5.6.2-1
deepin-control-center 5.1.0.5-1
deepin-daemon 5.10.0.1-1
deepin-desktop-base 3:2019.07.10-1
deepin-dock 5.1.0.9-1
deepin-file-manager 1:5.1.1.25-1
deepin-gtk-theme 17.10.11-1
deepin-image-viewer 5.6.3.2-1
deepin-launcher 5.1.0099.0-1
deepin-menu 5.0.1-1
deepin-network-utils 5.1.0.0-1
deepin-polkit-agent-ext-gnomekeyring 0.1.0-1
deepin-qt5dxcb-plugin 5.0.11-1
deepin-qt5integration 5.1.0.1-2
deepin-screensaver 0.0.10-1
deepin-session-shell 5.0.0098.0-2
deepin-session-ui 5.1.0099.4-1
deepin-shortcut-viewer 5.0.2-1
deepin-sound-theme 15.10.4-1
deepin-system-monitor 5.6.1-1
deepin-turbo 0.0.3-1
startdde 5.3.0.1-2

@RigoLigoRLC
Copy link

image
I used some debug tricks to try to find out what happened here as I know nothing about debugging a shared library. Seems this is what's happening.

@RigoLigoRLC
Copy link

image

it crashed while doing ->setting. Not sure how that works. Also gdb works after I build it in debug mode.

@RigoLigoRLC
Copy link

RigoLigoRLC commented Dec 25, 2020

image

Two invocations succeeded in the early stage (?) but in the later stage when other threads were created and exited, this function crashed.

image

The xSettings returned the same thing; maybe the target was deallocated somewhere in the middle of the mess?

@felixonmars
Copy link
Member

Still getting the same segfault as of today. I had to remove deepin plugins forcibly to make krita work...

Apr 22 08:23:44 flygon.felixc.at systemd-coredump[502897]: Process 502714 (krita) of user 1000 dumped core.

                                                           Stack trace of thread 502714:
                                                           #0  0x00007f461aa0def5 raise (libc.so.6 + 0x3cef5)
                                                           #1  0x00007f461c739189 _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x4189)
                                                           #2  0x00007f461aa0df80 __restore_rt (libc.so.6 + 0x3cf80)
                                                           #3  0x00007f4614a77908 _ZN22deepin_platform_plugin8DHighDpi10logicalDpiEP10QXcbScreen (libdxcb.so + 0x52908)
                                                           #4  0x00007f461b44f6c2 n/a (libQt5Gui.so.5 + 0x1636c2)
                                                           #5  0x00007f461b3fd9e3 _ZN22QWindowSystemInterface17handleScreenAddedEP15QPlatformScreenb (libQt5Gui.so.5 + 0x1119e3)
                                                           #6  0x00007f46148e48a1 _ZN14QXcbConnection17initializeScreensEv (libQt5XcbQpa.so.5 + 0x618a1)
                                                           #7  0x00007f46148bf378 _ZN14QXcbConnectionC2EP19QXcbNativeInterfacebjPKc (libQt5XcbQpa.so.5 + 0x3c378)
                                                           #8  0x00007f46148c212d _ZN15QXcbIntegrationC2ERK11QStringListRiPPc (libQt5XcbQpa.so.5 + 0x3f12d)
                                                           #9  0x00007f4614a71f91 _ZN22deepin_platform_plugin20DPlatformIntegrationC1ERK11QStringListRiPPc (libdxcb.so + 0x4cf91)
                                                           #10 0x00007f4614a716a7 _ZN26DPlatformIntegrationPlugin6createERK7QStringRK11QStringListRiPPc (libdxcb.so + 0x4c6a7)
                                                           #11 0x00007f461b41c627 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x130627)
                                                           #12 0x00007f461b41dae1 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x131ae1)
                                                           #13 0x00007f461b0522e6 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2bd2e6)
                                                           #14 0x00007f461b420b20 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x134b20)
                                                           #15 0x00007f461b421a88 _ZN15QGuiApplicationC1ERiPPci (libQt5Gui.so.5 + 0x135a88)
                                                           #16 0x00007f461d495b64 _ZN19KisOpenGLModeProber11probeFormatERKN9KisOpenGL14RendererConfigEb (libkritaui.so.20 + 0xd56b64)
                                                           #17 0x00007f461d47d9bc _ZN9KisOpenGL19selectSurfaceConfigENS_14OpenGLRendererEN9KisConfig17RootSurfaceFormatEb (libkritaui.so.20 + 0xd3e9bc)
                                                           #18 0x00005571a3218e7d main (krita + 0x8d1e7d)
                                                           #19 0x00007f461a9f8b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                           #20 0x00005571a321b31e n/a (krita + 0x8d431e)

                                                           Stack trace of thread 502716:
                                                           #0  0x00007f461aac537f __poll (libc.so.6 + 0xf437f)
                                                           #1  0x00007f46184acae8 n/a (libglib-2.0.so.0 + 0xa7ae8)
                                                           #2  0x00007f4618456781 g_main_context_iteration (libglib-2.0.so.0 + 0x51781)
                                                           #3  0x00007f461b0a41ac _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30f1ac)
                                                           #4  0x00007f461b049fec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b4fec)
                                                           #5  0x00007f461ae61e92 _ZN7QThread4execEv (libQt5Core.so.5 + 0xcce92)
                                                           #6  0x00007f4618e57098 n/a (libQt5DBus.so.5 + 0x17098)
                                                           #7  0x00007f461ae6307f n/a (libQt5Core.so.5 + 0xce07f)
                                                           #8  0x00007f4618e26299 start_thread (libpthread.so.0 + 0x9299)
                                                           #9  0x00007f461aad0053 __clone (libc.so.6 + 0xff053)

@City-busz
Copy link

Still crashes with deepin-qt5platform-plugins 5.0.23, but it doesn't crash with git master code, even if I explicitly set XDG_CURRENT_DESKTOP=deepin. So it seems that this crash was fixed after the 5.0.23 tag.

@City-busz
Copy link

It was fixed by de6c9f3

@BLumia
Copy link
Member

BLumia commented Jun 6, 2022

Tested with deepin-qt5platform-plugins 5.0.59-2 under Arch Linux with DDE and it should works fine now :)

@BLumia BLumia closed this as completed Jun 6, 2022
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

6 participants