Bug 421181

Summary: Karbon crashes with error while loading shared libraries: libHalf.so.12: cannot open shared object file: No such file or directory (same error for caligawords)
Product: [Applications] karbon Reporter: Michael Josenhans <michael.josenhans>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: REPORTED ---    
Severity: crash CC: bvbfan
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: PDF File that crashes Karbon, Dr. Konqi and does not print on Okular as it crashes gs

Description Michael Josenhans 2020-05-08 10:24:07 UTC
Application: karbon (3.0.89)

Qt Version: 5.14.2
Frameworks Version: 5.69.0
Operating System: Linux 4.15.0-99-generic x86_64
Windowing system: Wayland
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:

I opend a PDF file in Thunderbird with: 
->PDF attachment: open

->open with: 
other
select Karbon
press: ok

Karbon crashes

Distribution: 
KDE neon

The crash can be reproduced every time.

-- Backtrace:
Application: Karbon (karbon), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc689473800 (LWP 5015))]

Thread 3 (Thread 0x7fc65dc17700 (LWP 5018)):
#0  0x00007fc6817a09f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2af4888) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2af4838, cond=0x2af4860) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2af4860, mutex=0x2af4838) at pthread_cond_wait.c:655
#3  0x00007fc65f09aecb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fc65f09aac7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fc68179a6db in start_thread (arg=0x7fc65dc17700) at pthread_create.c:463
#6  0x00007fc688d6488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc672626700 (LWP 5017)):
#0  0x00007fc688d57bf9 in __GI___poll (fds=0x7fc66c002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc67f6485c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc67f6486dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc686e687cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc686e07d2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc686c18757 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc681de9555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fc686c19c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fc68179a6db in start_thread (arg=0x7fc672626700) at pthread_create.c:463
#9  0x00007fc688d6488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc689473800 (LWP 5015)):
[KCrash Handler]
#6  0x00007fc68524e23c in QListData::begin (this=0x7ffe91d3aa80) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:116
#7  0x00007fc685272e58 in QList<KoShape*>::contains_impl (this=0x7ffe91d3aa80, t=@0x7ffe91d3aa70: 0x2bc2680) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:1020
#8  0x00007fc6852728dd in QList<KoShape*>::contains (this=0x7ffe91d3aa80, t=@0x7ffe91d3aa70: 0x2bc2680) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:1003
#9  0x00007fc68528b064 in KoShapeContainer::addShape (this=0x2ba31e0, shape=0x2bc2680) at /home/michael/kde4/src/calligra/libs/flake/KoShapeContainer.cpp:68
#10 0x00007fc685276500 in KoShape::setParent (this=0x2bc2680, parent=0x2ba31e0) at /home/michael/kde4/src/calligra/libs/flake/KoShape.cpp:570
#11 0x00007fc68528b14b in KoShapeContainer::addShape (this=0x2ba31e0, shape=0x2bc2680) at /home/michael/kde4/src/calligra/libs/flake/KoShapeContainer.cpp:76
#12 0x00007fc670b9996d in KoPAMasterPage::KoPAMasterPage() () from /usr/lib/x86_64-linux-gnu/libkopageapp.so.17
#13 0x00007fc65cb06782 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/calligra/formatfilters/calligra_filter_pdf2odg.so
#14 0x00007fc65cb07463 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/calligra/formatfilters/calligra_filter_pdf2odg.so
#15 0x00007fc6889a41c0 in CalligraFilter::ChainLink::invokeFilter (this=0x2b35160, parentChainLink=0x0) at /home/michael/kde4/src/calligra/libs/main/KoFilterChainLink.cpp:89
#16 0x00007fc68899a8c9 in KoFilterChain::invokeChain (this=0x2b40690) at /home/michael/kde4/src/calligra/libs/main/KoFilterChain.cpp:96
#17 0x00007fc6889938d9 in KoFilterManager::importDocument (this=0x2692510, url=..., documentMimeType=..., status=@0x7ffe91d3b3a0: 2081747325) at /home/michael/kde4/src/calligra/libs/main/KoFilterManager.cpp:169
#18 0x00007fc68895ccab in KoDocument::openFile (this=0x26922f0) at /home/michael/kde4/src/calligra/libs/main/KoDocument.cpp:1473
#19 0x00007fc688967191 in KoDocument::Private::openFile (this=0x2568000) at /home/michael/kde4/src/calligra/libs/main/KoDocument.cpp:271
#20 0x00007fc6889672ea in KoDocument::Private::openLocalFile (this=0x2568000) at /home/michael/kde4/src/calligra/libs/main/KoDocument.cpp:293
#21 0x00007fc6889649ee in KoDocument::openUrlInternal (this=0x26922f0, url=...) at /home/michael/kde4/src/calligra/libs/main/KoDocument.cpp:2675
#22 0x00007fc68895ba24 in KoDocument::openUrl (this=0x26922f0, _url=...) at /home/michael/kde4/src/calligra/libs/main/KoDocument.cpp:1241
#23 0x00007fc688975e34 in KoMainWindow::openDocumentInternal (this=0x26ee7b0, url=..., newpart=0x25db2d0, newdoc=0x26922f0) at /home/michael/kde4/src/calligra/libs/main/KoMainWindow.cpp:759
#24 0x00007fc688975af2 in KoMainWindow::openDocument (this=0x26ee7b0, newPart=0x25db2d0, url=...) at /home/michael/kde4/src/calligra/libs/main/KoMainWindow.cpp:738
#25 0x00007fc68894ca30 in KoApplication::start (this=0x7ffe91d3c050) at /home/michael/kde4/src/calligra/libs/main/KoApplication.cpp:571
#26 0x00007fc68906376f in kdemain (argc=2, argv=0x7ffe91d3c1e8) at /home/michael/kde4/src/calligra/karbon/main.cpp:77
#27 0x0000000000400b78 in main (argc=2, argv=0x7ffe91d3c1e8) at /home/michael/kde4/src/build-calligra-Desktop-Debug/karbon/karbon_dummy.cpp:3

Reported using DrKonqi
Comment 1 Anthony Fieroni 2020-05-08 12:58:45 UTC
Can you upload a pdf also please try Karbon 3.2
Comment 2 Michael Josenhans 2020-05-08 20:31:53 UTC
Created attachment 128261 [details]
PDF File that crashes Karbon, Dr. Konqi and does not print on Okular as it crashes gs

PDF File
Comment 3 Michael Josenhans 2020-05-08 21:00:00 UTC
This bug is related to #421200 (same PDF file).
Comment 4 Anthony Fieroni 2020-05-09 08:23:30 UTC
I can open it with Karbon 3.2
Comment 5 Michael Josenhans 2020-05-10 06:56:11 UTC
On KDE Neon, when I open Karbon from command line and open the pdf file, it crashes with the following message: 

michael@Donald:~$ karbon
calligra.lib.pigment: Compiled for arch: 4
calligra.lib.pigment: Features supported:
calligra.lib.pigment:    "SSE2"         ---      yes
calligra.lib.pigment:    "SSSE3"        ---      yes
calligra.lib.pigment:    "SSE4.1"       ---      yes
calligra.lib.pigment:    "AVX "         ---      no
calligra.lib.pigment:    "AVX2 "        ---      no
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = karbon path = /usr/local/bin pid = 2227
KCrash: Arguments: /usr/local/bin/karbon 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__1

[1]+  Stopped                 karbon
michael@Donald:~$ QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
Comment 6 Justin Zobel 2022-10-08 00:38:53 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-10-23 05:00:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Michael Josenhans 2022-10-23 13:24:50 UTC
Okular now prints the PDF file and karbon does not seem to be properly installed.

When starting carbon or caligrawords I get the following error message: 

michael@Donald:~$ calligrawords 
calligrawords: error while loading shared libraries: libHalf.so.12: cannot open shared object file: No such file or directory
michael@Donald:~$ karbon
karbon: error while loading shared libraries: libHalf.so.12: cannot open shared object file: No such file or directory
michael@Donald:~$ 

This is also the reason, why karbon crashes when I open the file using the dolphin option open with karbon.
Comment 9 Michael Josenhans 2022-10-23 13:28:38 UTC
I am no longer able to start DrKonqi (do not know how to do that).
Comment 10 Michael Josenhans 2022-10-23 13:29:25 UTC
I have removed karbon and reinstalled it with apt instatt karbon, no change.
Comment 11 Anthony Fieroni 2022-10-23 15:04:43 UTC
That's a packaging fault not a Calligra Suite one.