[okular] [Bug 435833] Okular shows the [object Object] popup and crashes when the user enters something into a form field and hits TAB

Albert Astals Cid bugzilla_noreply at kde.org
Wed Apr 21 20:47:34 BST 2021


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

Albert Astals Cid <aacid at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1
                 CC|                            |aacid at kde.org

--- Comment #5 from Albert Astals Cid <aacid at kde.org> ---
There's defenitely something fishy going on.

valgrind says

==157594== Invalid read of size 8
==157594==    at 0xFBCE766: std::__shared_ptr<Okular::Event::Private,
(__gnu_cxx::_Lock_policy)2>::get() const (shared_ptr_base.h:1325)
==157594==    by 0xFBCE6AB: std::__shared_ptr_access<Okular::Event::Private,
(__gnu_cxx::_Lock_policy)2, false, false>::_M_get() const
(shared_ptr_base.h:1024)
==157594==    by 0xFBCE58D: std::__shared_ptr_access<Okular::Event::Private,
(__gnu_cxx::_Lock_policy)2, false, false>::operator->() const
(shared_ptr_base.h:1018)
==157594==    by 0xFBCD493: Okular::Event::eventType() const (event.cpp:54)
==157594==    by 0xFBF77EF: eventGetTarget(KJSContext*, void*)
(kjs_event.cpp:75)
==157594==    by 0xFDB89D3: ??? (in /usr/lib/libKF5JSApi.so.5.81.0)
==157594==    by 0xFE39FFE: KJS::JSObject::get(KJS::ExecState*, KJS::Identifier
const&) const (in /usr/lib/libKF5JS.so.5.81.0)
==157594==    by 0xFE53014: ??? (in /usr/lib/libKF5JS.so.5.81.0)
==157594==    by 0xFDFF401: ??? (in /usr/lib/libKF5JS.so.5.81.0)
==157594==    by 0xFE3F3F2: ??? (in /usr/lib/libKF5JS.so.5.81.0)
==157594==    by 0xFE3F5CC: KJS::Interpreter::evaluate(KJS::UString const&,
int, KJS::UChar const*, int, KJS::JSValue*) (in /usr/lib/libKF5JS.so.5.81.0)
==157594==    by 0xFE3F623: KJS::Interpreter::evaluate(KJS::UString const&,
int, KJS::UString const&, KJS::JSValue*) (in /usr/lib/libKF5JS.so.5.81.0)
==157594==  Address 0x23b48340 is 0 bytes inside a block of size 16 free'd
==157594==    at 0x484008B: operator delete(void*, unsigned long)
(vg_replace_malloc.c:593)
==157594==    by 0xFBCEA46: std::_Sp_counted_ptr<Okular::Event*,
(__gnu_cxx::_Lock_policy)2>::_M_dispose() (shared_ptr_base.h:380)
==157594==    by 0xFB72ADA:
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()
(shared_ptr_base.h:158)
==157594==    by 0xFB69DA0:
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
(shared_ptr_base.h:733)
==157594==    by 0xFB6863F: std::__shared_ptr<Okular::Event,
(__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (shared_ptr_base.h:1183)
==157594==    by 0xFB68671: std::shared_ptr<Okular::Event>::~shared_ptr()
(shared_ptr.h:121)
==157594==    by 0xFB5B1C3:
Okular::Document::processValidateAction(Okular::Action const*,
Okular::FormFieldText*, bool&) (document.cpp:4144)
==157594==    by 0xF972060:
PageViewPrivate::formWidgetsController()::{lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}::operator()(Okular::Action const*,
Okular::FormFieldText*, bool&) const (pageview.cpp:285)
==157594==    by 0xF995A68: QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1,
2>, QtPrivate::List<Okular::Action const*, Okular::FormFieldText*, bool&>,
void, PageViewPrivate::formWidgetsController()::{lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}>::call({lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}&, void**) (qobjectdefs_impl.h:146)
==157594==    by 0xF995635: void
QtPrivate::Functor<PageViewPrivate::formWidgetsController()::{lambda(Okular::Action
const*, Okular::FormFieldText*, bool&)#4},
3>::call<QtPrivate::List<Okular::Action const*, Okular::FormFieldText*, bool&>,
void>({lambda(Okular::Action const*, Okular::FormFieldText*, bool&)#4}&, void*,
{lambda(Okular::Action const*, Okular::FormFieldText*, bool&)#4}&*)
(qobjectdefs_impl.h:256)
==157594==    by 0xF995203:
QtPrivate::QFunctorSlotObject<PageViewPrivate::formWidgetsController()::{lambda(Okular::Action
const*, Okular::FormFieldText*, bool&)#4}, 3, QtPrivate::List<Okular::Action
const*, Okular::FormFieldText*, bool&>, void>::impl(int,
QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (qobjectdefs_impl.h:443)
==157594==    by 0x648D9E5: ??? (in /usr/lib/libQt5Core.so.5.15.2)
==157594==  Block was alloc'd at
==157594==    at 0x483EDEF: operator new(unsigned long)
(vg_replace_malloc.c:342)
==157594==    by 0xFBCE2FB:
Okular::Event::createFormValidateEvent(Okular::FormField*, Okular::Page*,
QString const&) (event.cpp:239)
==157594==    by 0xFB5B16E:
Okular::Document::processValidateAction(Okular::Action const*,
Okular::FormFieldText*, bool&) (document.cpp:4144)
==157594==    by 0xF972060:
PageViewPrivate::formWidgetsController()::{lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}::operator()(Okular::Action const*,
Okular::FormFieldText*, bool&) const (pageview.cpp:285)
==157594==    by 0xF995A68: QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1,
2>, QtPrivate::List<Okular::Action const*, Okular::FormFieldText*, bool&>,
void, PageViewPrivate::formWidgetsController()::{lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}>::call({lambda(Okular::Action const*,
Okular::FormFieldText*, bool&)#4}&, void**) (qobjectdefs_impl.h:146)
==157594==    by 0xF995635: void
QtPrivate::Functor<PageViewPrivate::formWidgetsController()::{lambda(Okular::Action
const*, Okular::FormFieldText*, bool&)#4},
3>::call<QtPrivate::List<Okular::Action const*, Okular::FormFieldText*, bool&>,
void>({lambda(Okular::Action const*, Okular::FormFieldText*, bool&)#4}&, void*,
{lambda(Okular::Action const*, Okular::FormFieldText*, bool&)#4}&*)
(qobjectdefs_impl.h:256)
==157594==    by 0xF995203:
QtPrivate::QFunctorSlotObject<PageViewPrivate::formWidgetsController()::{lambda(Okular::Action
const*, Okular::FormFieldText*, bool&)#4}, 3, QtPrivate::List<Okular::Action
const*, Okular::FormFieldText*, bool&>, void>::impl(int,
QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (qobjectdefs_impl.h:443)
==157594==    by 0x648D9E5: ??? (in /usr/lib/libQt5Core.so.5.15.2)
==157594==    by 0xF8932ED:
FormWidgetsController::validateAction(Okular::Action const*,
Okular::FormFieldText*, bool&) (moc_formwidgets.cpp:524)
==157594==    by 0xF931CBA: FormLineEdit::event(QEvent*) (formwidgets.cpp:498)
==157594==    by 0x5511761: QApplicationPrivate::notify_helper(QObject*,
QEvent*) (in /usr/lib/libQt5Widgets.so.5.15.2)
==157594==    by 0x6456689: QCoreApplication::notifyInternal2(QObject*,
QEvent*) (in /usr/lib/libQt5Core.so.5.15.2)

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


More information about the Okular-devel mailing list