Bug 470417 - Skanpage crash when save multi page pdf
Summary: Skanpage crash when save multi page pdf
Status: RESOLVED DUPLICATE of bug 469865
Alias: None
Product: Skanpage
Classification: Applications
Component: general (show other bugs)
Version: 23.04.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-05-29 14:12 UTC by Daniele
Modified: 2023-06-01 19:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele 2023-05-29 14:12:46 UTC
Application: skanpage (23.04.1)

Qt Version: 5.15.9
Frameworks Version: 5.106.0
Operating System: Linux 6.3.4-arch1-1 x86_64
Windowing System: X11
Distribution: Linux
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
Skanpage crash whem save multi page pdf, with single page there aren't problem.

The crash can be reproduced every time.

-- Backtrace:
Application: Skanpage (skanpage), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  0x00007fe62b8a5e60 in tesseract::Tesseract::recog_all_words(tesseract::PAGE_RES*, tesseract::ETEXT_DESC*, tesseract::TBOX const*, char const*, int) (this=0x7fe5f80022d0, page_res=0x7fe5f8fe9700, monitor=0x0, target_word_box=0x0, word_config=0x0, dopasses=0) at src/ccmain/control.cpp:308
#7  0x00007fe62b888e56 in tesseract::TessBaseAPI::Recognize(tesseract::ETEXT_DESC*) (this=0x55d3bd8d6a70, monitor=0x0) at src/api/baseapi.cpp:908
#8  0x000055d3bd0dae5c in OCREngine::OCRPage(QPdfWriter&, QPainter&, SkanpageUtils::PageProperties const&) ()
#9  0x000055d3bd0c1035 in DocumentSaver::saveSearchablePDF(QUrl const&, QList<SkanpageUtils::PageProperties> const&, QString const&) ()
#10 0x000055d3bd0c07c1 in DocumentSaver::saveDocument(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&) ()
#11 0x000055d3bd0d7c69 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1, 2, 3>, QtPrivate::List<QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&>, void, void (DocumentSaver::*)(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&)>::call(void (DocumentSaver::*)(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&), DocumentSaver*, void**) ()
#12 0x000055d3bd0d761a in void QtPrivate::FunctionPointer<void (DocumentSaver::*)(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&)>::call<QtPrivate::List<QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&>, void>(void (DocumentSaver::*)(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&), DocumentSaver*, void**) ()
#13 0x000055d3bd0d6eb5 in QtPrivate::QSlotObject<void (DocumentSaver::*)(QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&), QtPrivate::List<QUrl const&, QList<SkanpageUtils::PageProperties> const&, SkanpageUtils::FileType, QString const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#14 0x00007fe6294c2834 in QObject::event(QEvent*) (this=0x55d3bd910820, e=0x55d3bf0d7e20) at kernel/qobject.cpp:1347
#15 0x00007fe62ad7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55d3bd910820, e=0x55d3bf0d7e20) at kernel/qapplication.cpp:3640
#16 0x00007fe62949ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55d3bd910820, event=0x55d3bf0d7e20) at kernel/qcoreapplication.cpp:1064
#17 0x00007fe62949fa7b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55d3bda499b0) at kernel/qcoreapplication.cpp:1821
#18 0x00007fe6294e6088 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x7fe5f8000ee0) at kernel/qeventdispatcher_glib.cpp:277
#19 0x00007fe627f10981 in g_main_dispatch (context=0x7fe5f8000c30) at ../glib/glib/gmain.c:3460
#20 g_main_context_dispatch (context=0x7fe5f8000c30) at ../glib/glib/gmain.c:4200
#21 0x00007fe627f6db39 in g_main_context_iterate.isra.0 (context=context@entry=0x7fe5f8000c30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#22 0x00007fe627f0e032 in g_main_context_iteration (context=0x7fe5f8000c30, may_block=1) at ../glib/glib/gmain.c:4343
#23 0x00007fe6294e9f0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fe5f8000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#24 0x00007fe629499824 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fe60affcc80, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#25 0x00007fe6292f6eb6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#26 0x00007fe6292f30da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#27 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#28 QThreadPrivate::start(void*) (arg=0x55d3bd910878) at thread/qthread_unix.cpp:310
#29 0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#30 0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 6 (Thread 0x7fe603fff6c0 (LWP 22296) "skanpage:shlo0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55d3bd58fea8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007fe62a499f8f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55d3bd58fea8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x00007fe62a49c7a0 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d3bd58fe58, cond=0x55d3bd58fe80) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55d3bd58fe80, mutex=0x55d3bd58fe58) at pthread_cond_wait.c:618
#5  0x00007fe61cac855c in cnd_wait () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.1/src/util/u_queue.c:290
#7  0x00007fe61cb1541c in impl_thrd_routine() () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:67
#8  0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 5 (Thread 0x7fe60b7fe6c0 (LWP 22295) "skanpage:sh0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55d3bd58f93c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007fe62a499f8f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55d3bd58f93c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x00007fe62a49c7a0 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d3bd58f8e8, cond=0x55d3bd58f910) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55d3bd58f910, mutex=0x55d3bd58f8e8) at pthread_cond_wait.c:618
#5  0x00007fe61cac855c in cnd_wait () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.1/src/util/u_queue.c:290
#7  0x00007fe61cb1541c in impl_thrd_routine() () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:67
#8  0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 4 (Thread 0x7fe60bfff6c0 (LWP 22294) "skanpag:disk$0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55d3bd57c0b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007fe62a499f8f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55d3bd57c0b8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x00007fe62a49c7a0 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d3bd57c068, cond=0x55d3bd57c090) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55d3bd57c090, mutex=0x55d3bd57c068) at pthread_cond_wait.c:618
#5  0x00007fe61cac855c in cnd_wait () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.1/src/util/u_queue.c:290
#7  0x00007fe61cb1541c in impl_thrd_routine() () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:67
#8  0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7fe61c98b6c0 (LWP 22293) "skanpage:cs0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55d3bd57d4e4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007fe62a499f8f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55d3bd57d4e4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x00007fe62a49c7a0 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d3bd57d490, cond=0x55d3bd57d4b8) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x55d3bd57d4b8, mutex=0x55d3bd57d490) at pthread_cond_wait.c:618
#5  0x00007fe61cac855c in cnd_wait () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:135
#6  util_queue_thread_func() () at ../mesa-23.1.1/src/util/u_queue.c:290
#7  0x00007fe61cb1541c in impl_thrd_routine() () at ../mesa-23.1.1/src/c11/impl/threads_posix.c:67
#8  0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#9  0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7fe624d506c0 (LWP 22291) "QDBusConnection"):
#1  0x00007fe627f6da9f in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fe620001600, timeout=<optimized out>, context=0x7fe620000c50) at ../glib/glib/gmain.c:4584
#2  g_main_context_iterate.isra.0 (context=context@entry=0x7fe620000c50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4271
#3  0x00007fe627f0e032 in g_main_context_iteration (context=0x7fe620000c50, may_block=1) at ../glib/glib/gmain.c:4343
#4  0x00007fe6294e9f0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fe620000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007fe629499824 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fe624d4fc50, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007fe6292f6eb6 in QThread::exec() (this=this@entry=0x7fe628b32660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fe628ad769a in QDBusConnectionManager::run() (this=0x7fe628b32660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusconnection.cpp:179
#8  0x00007fe6292f30da in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#10 QThreadPrivate::start(void*) (arg=0x7fe628b32660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:310
#11 0x00007fe62a49d44b in start_thread (arg=<optimized out>) at pthread_create.c:444
#12 0x00007fe62a520e40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7fe6252f4900 (LWP 22290) "skanpage"):
#1  0x00007fe6292ef47c in QtLinuxFutex::_q_futex(int*, int, int, unsigned long long, int*, int) (val3=0, addr2=0x0, val2=0, val=<optimized out>, op=0, addr=<optimized out>, addr=<optimized out>, op=<optimized out>, val=<optimized out>, val2=<optimized out>, addr2=<optimized out>, val3=<optimized out>) at thread/qfutex_p.h:114
#2  QtLinuxFutex::futexWait<QBasicAtomicInteger<unsigned int> >(QBasicAtomicInteger<unsigned int>&, QBasicAtomicInteger<unsigned int>::Type) (expectedValue=<optimized out>, futex=<optimized out>) at thread/qfutex_p.h:133
#3  futexSemaphoreTryAcquire_loop<false>(QBasicAtomicInteger<unsigned long long>&, unsigned long long, unsigned long long, int) (timeout=-1, nn=8589934593, curValue=<optimized out>, u=...) at thread/qsemaphore.cpp:219
#4  futexSemaphoreTryAcquire<false>(QBasicAtomicInteger<unsigned long long>&, int, int) (timeout=-1, n=<optimized out>, u=...) at thread/qsemaphore.cpp:262
#5  QSemaphore::acquire(int) (this=0x7ffd0d1a5d60, n=<optimized out>) at thread/qsemaphore.cpp:326
#6  0x00007fe6294d00f6 in doActivate<false>(QObject*, int, void**) (sender=0x55d3bdad7a10, signal_index=0, argv=0x7ffd0d1a5de0) at kernel/qobject.cpp:3904
#7  0x00007fe6294d03e4 in QObject::destroyed(QObject*) (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qobject.cpp:219
#8  0x00007fe6294c651c in QObject::~QObject() (this=0x55d3bdad7a10, this=<optimized out>) at kernel/qobject.cpp:1010
#9  0x00007fe628b0b5ce in QDBusServiceWatcher::~QDBusServiceWatcher() (this=0x55d3bdad7a10, this=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusservicewatcher.cpp:260
#10 0x00007fe6294c5d8d in QObjectPrivate::deleteChildren() (this=this@entry=0x55d3bdad7900) at kernel/qobject.cpp:2137
#11 0x00007fe6294c6509 in QObject::~QObject() (this=this@entry=0x55d3bdad78e0, this=<optimized out>) at kernel/qobject.cpp:1115
#12 0x00007fe628ae12a8 in QDBusAbstractInterfaceBase::~QDBusAbstractInterfaceBase() (this=0x55d3bdad78e0, this=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusabstractinterface.h:68
#13 0x00007fe6017c61a8 in OrgKdeKWinTabletModeManagerInterface::~OrgKdeKWinTabletModeManagerInterface() (this=0x55d3bdad78e0, this=<optimized out>) at /usr/src/debug/kirigami2/build/src/libkirigami/tabletmodemanager_interface.cpp:25
#14 OrgKdeKWinTabletModeManagerInterface::~OrgKdeKWinTabletModeManagerInterface() (this=0x55d3bdad78e0, this=<optimized out>) at /usr/src/debug/kirigami2/build/src/libkirigami/tabletmodemanager_interface.cpp:25
#15 0x00007fe6294c5d8d in QObjectPrivate::deleteChildren() (this=this@entry=0x55d3bdad7880) at kernel/qobject.cpp:2137
#16 0x00007fe6294c6509 in QObject::~QObject() (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1115
#17 0x00007fe6017c3ade in Kirigami::(anonymous namespace)::Q_QGS_privateTabletModeWatcherSelf::innerFunction()::Holder::~Holder() () at /usr/src/debug/kirigami2/kirigami2-5.106.0/src/libkirigami/tabletmodewatcher.cpp:21
#18 0x00007fe62a452066 in __run_exit_handlers (status=status@entry=1, listp=0x7fe62a5f1760 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:111
#19 0x00007fe62a4521b0 in __GI_exit (status=status@entry=1) at exit.c:141
#20 0x00007fe624eba066 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55d3bd39ef00, flags=...) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:1047
#21 0x00007fe624ee9708 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:103
#22 0x00007fe627f10981 in g_main_dispatch (context=0x7fe620000ee0) at ../glib/glib/gmain.c:3460
#23 g_main_context_dispatch (context=0x7fe620000ee0) at ../glib/glib/gmain.c:4200
#24 0x00007fe627f6db39 in g_main_context_iterate.isra.0 (context=context@entry=0x7fe620000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#25 0x00007fe627f0e032 in g_main_context_iteration (context=0x7fe620000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#26 0x00007fe6294e9f0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55d3bd4783a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007fe629499824 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd0d1a63e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#28 0x00007fe62949acc3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x000055d3bd0c52a4 in main ()
Warning: the current language does not match this frame.
[Inferior 1 (process 22290) detached]

Reported using DrKonqi
Comment 1 John Doe 2023-06-01 19:58:30 UTC

*** This bug has been marked as a duplicate of bug 469865 ***