[okular] [Bug 467775] New: Okular crashes when clicking in PDF form editable multi-line text field

Ryan Thompson bugzilla_noreply at kde.org
Sat Mar 25 13:08:57 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=467775

            Bug ID: 467775
           Summary: Okular crashes when clicking in PDF form editable
                    multi-line text field
    Classification: Applications
           Product: okular
           Version: 22.12.2
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: rct+bugs at thompsonclan.org
  Target Milestone: ---

Application: okular (22.12.2)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.19-1-MANJARO x86_64
Windowing System: X11
Distribution: Manjaro Linux
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
When opening a some PDFs with fillable fields. Clicking in a multi-line text
box immediately crashes Okular, before I can even start typing in the field.
Worth noting, the PDF in question already has text in those fields, and the
backtrace seems font-related, so my expectation is that one of the characters
already present in the filled form is causing issues with the font Okular is
using to render the form text.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  0x00007ff36995a750 in GfxResources::doLookupFont(char const*) const () at
/usr/lib/libpoppler.so.126
#5  0x00007ff36995a822 in GfxResources::lookupFont(char const*) () at
/usr/lib/libpoppler.so.126
#6  0x00007ff369955b8e in Form::ensureFontsForAllCharacters(GooString const*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, GfxResources*) () at /usr/lib/libpoppler.so.126
#7  0x00007ff36994a82b in  () at /usr/lib/libpoppler.so.126
#8  0x00007ff37042457d in Poppler::FormFieldText::setText(QString const&) () at
/usr/lib/libpoppler-qt5.so.1
#9  0x00007ff3953c4b3d in  () at /usr/lib/libOkular5Core.so.10
#10 0x00007ff3a2f0357a in QUndoStack::push(QUndoCommand*) () at
/usr/lib/libQt5Widgets.so.5
#11 0x00007ff3955816ba in  () at /usr/lib/qt/plugins/okularpart.so
#12 0x00007ff3a1ebea71 in  () at /usr/lib/libQt5Core.so.5
#13 0x00007ff3955869aa in  () at /usr/lib/qt/plugins/okularpart.so
#14 0x00007ff3a1ebea71 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007ff3a1ebec20 in  () at /usr/lib/libQt5Core.so.5
#16 0x00007ff3a2d57d0d in  () at /usr/lib/libQt5Widgets.so.5
#17 0x00007ff3a2d38956 in QTextEdit::setPlainText(QString const&) () at
/usr/lib/libQt5Widgets.so.5
#18 0x00007ff395588718 in  () at /usr/lib/qt/plugins/okularpart.so
#19 0x00007ff3a2b78b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt5Widgets.so.5
#20 0x00007ff3a1e8df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#21 0x00007ff3a2b74bec in QApplicationPrivate::setFocusWidget(QWidget*,
Qt::FocusReason) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007ff3a2ba97f7 in QWidget::setFocus(Qt::FocusReason) () at
/usr/lib/libQt5Widgets.so.5
#23 0x00007ff3a2b78efb in
QApplicationPrivate::giveFocusAccordingToFocusPolicy(QWidget*, QEvent*, QPoint)
() at /usr/lib/libQt5Widgets.so.5
#24 0x00007ff3a2b7f016 in QApplication::notify(QObject*, QEvent*) () at
/usr/lib/libQt5Widgets.so.5
#25 0x00007ff3a1e8df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#26 0x00007ff3a2b7c377 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
at /usr/lib/libQt5Widgets.so.5
#27 0x00007ff3a2bcd505 in  () at /usr/lib/libQt5Widgets.so.5
#28 0x00007ff3a2bcf2ae in  () at /usr/lib/libQt5Widgets.so.5
#29 0x00007ff3a2b78b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt5Widgets.so.5
#30 0x00007ff3a1e8df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#31 0x00007ff3a233efbc in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() at /usr/lib/libQt5Gui.so.5
#32 0x00007ff3a2328885 in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() at /usr/lib/libQt5Gui.so.5
#33 0x00007ff39cf2e8d0 in  () at /usr/lib/libQt5XcbQpa.so.5
#34 0x00007ff3a091682b in g_main_context_dispatch () at
/usr/lib/libglib-2.0.so.0
#35 0x00007ff3a096dcc9 in  () at /usr/lib/libglib-2.0.so.0
#36 0x00007ff3a09150e2 in g_main_context_iteration () at
/usr/lib/libglib-2.0.so.0
#37 0x00007ff3a1ed8c6c in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#38 0x00007ff3a1e866ec in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/usr/lib/libQt5Core.so.5
#39 0x00007ff3a1e91219 in QCoreApplication::exec() () at
/usr/lib/libQt5Core.so.5
#40 0x000055637e34a882 in  ()
#41 0x00007ff3a163c790 in __libc_start_call_main
(main=main at entry=0x55637e349080, argc=argc at entry=2,
argv=argv at entry=0x7ffcdc576ae8) at ../sysdeps/nptl/libc_start_call_main.h:58
#42 0x00007ff3a163c84a in __libc_start_main_impl (main=0x55637e349080, argc=2,
argv=0x7ffcdc576ae8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffcdc576ad8) at ../csu/libc-start.c:360
#43 0x000055637e34b445 in  ()
[Inferior 1 (process 4088560) detached]

The reporter indicates this bug may be a duplicate of or related to bug 460759,
bug 456716, bug 462312.

Reported using DrKonqi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list