Menu

#52 YAGF crashes when spell checking is on

New
nobody
None
Medium
Defect
2020-03-09
2014-09-28
Anonymous
No

Originally created by: kov...@gmail.com

What steps will reproduce the problem?
I did following.
1. Opened first PDF page in YAGF.
2. Chose English-Russian language to recognize.
3. Pushed 'Select Text Area' button.
4. Pushed 'Recognize'.
Also 'Check Spelling' button is pushed by default.

After some time YAGF crashed. It happens every time. If to do all that steps with unpushed 'Check Spelling' button all is OK - no crashing.

What version of the product are you using? On what operating system?
YAGF 0.9.4.3
Kubuntu 14.04 LTS
Linux x86_64 3.17RC6
Aspell 0.60.7~20110707-1ubuntu1

Here is YAGF backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a1e601 in aspell_speller_check () from /usr/lib/libaspell.so.15
#0  0x00007ffff6a1e601 in aspell_speller_check () from /usr/lib/libaspell.so.15
No symbol table info available.
#1  0x0000000000460ee5 in SpellChecker::checkWordSpelling(QString const&) ()
No symbol table info available.
#2  0x0000000000460c46 in SpellChecker::_checkWord(QTextCursor*) ()
No symbol table info available.
#3  0x0000000000460672 in SpellChecker::spellCheck() ()
No symbol table info available.
#4  0x0000000000485ebb in TextEditor::spellCheck(QString const&) ()
No symbol table info available.
#5  0x000000000044de3b in MainForm::readOutput(QString) ()
No symbol table info available.
#6  0x00000000004a6c58 in ?? ()
No symbol table info available.
#7  0x00007ffff6dd7c1e in QObject::event (this=this@entry=0x7fffffffd910, e=e@entry=0x1270c70) at kernel/qobject.cpp:1194
        mce = 0x1270c70
        currentSender = {sender = 0x904c60, signal = 8, ref = 1}
        previousSender = 0x0
#8  0x00007ffff734055b in QWidget::event (this=this@entry=0x7fffffffd910, event=event@entry=0x1270c70) at kernel/qwidget.cpp:8846
No locals.
#9  0x00007ffff76fa9b3 in QMainWindow::event (this=0x7fffffffd910, event=0x1270c70) at widgets/qmainwindow.cpp:1478
        d = 0x7ba8c0
#10 0x00007ffff72f0e2c in QApplicationPrivate::notify_helper (this=this@entry=0x71a5a0, receiver=receiver@entry=0x7fffffffd910, e=e@entry=0x1270c70) at kernel/qapplication.cpp:4567
        consumed = <optimized out>
#11 0x00007ffff72f74a0 in QApplication::notify (this=0x7fffffffd8e0, receiver=0x7fffffffd910, e=0x1270c70) at kernel/qapplication.cpp:4353
        w = 0x7fffffffd910
        extra = <optimized out>
        isProxyWidget = <optimized out>
        d = 0x71a5a0
        res = false
#12 0x00007ffff6dbf4dd in QCoreApplication::notifyInternal (this=0x7fffffffd8e0, receiver=receiver@entry=0x7fffffffd910, event=event@entry=0x1270c70) at kernel/qcoreapplication.cpp:953
        threadData = 0x71a790
        returnValue = <optimized out>
        result = false
        cbdata = {0x7fffffffd910, 0x1270c70, 0x7fffffffd4af}
        d = <optimized out>
#13 0x00007ffff6dc2b3d in sendEvent (event=0x1270c70, receiver=0x7fffffffd910) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
No locals.
#14 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x71a790) at kernel/qcoreapplication.cpp:1577
        pe = @0x11718a0: {receiver = 0x7fffffffd910, event = 0x0, priority = 0}
        e = 0x1270c70
        r = 0x7fffffffd910
        locker = {val = 7448536}
        startOffset = 0
        i = @0x71a7cc: 11
#15 0x00007ffff6dc2fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
        data = <optimized out>
#16 0x00007ffff6decf83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
No locals.
#17 postEventSourceDispatch (s=0x71bf10) at kernel/qeventdispatcher_glib.cpp:287
        source = 0x71bf10
#18 0x00007ffff5467e04 in g_main_dispatch (context=0x71bcf0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3064
        dispatch = 0x7ffff6decf70 <postEventSourceDispatch(GSource*, GSourceFunc, gpointer)>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x0
        callback = 0x0
        cb_funcs = <optimized out>
        cb_data = 0x0
        need_destroy = <optimized out>
        source = 0x71bf10
        current = 0x717390
        i = 0
#19 g_main_context_dispatch (context=context@entry=0x71bcf0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3663
No locals.
#20 0x00007ffff5468048 in g_main_context_iterate (context=context@entry=0x71bcf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3734
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 13
        fds = 0x112dc60
#21 0x00007ffff54680ec in g_main_context_iteration (context=0x71bcf0, may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
        retval = <optimized out>
#22 0x00007ffff6dec7a1 in QEventDispatcherGlib::processEvents (this=0x71bb80, flags=...) at kernel/qeventdispatcher_glib.cpp:434
        d = 0x71bba0
        canWait = <optimized out>
        savedFlags = {i = 0}
        result = <optimized out>
#23 0x00007ffff7392bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
        d = 0x71bba0
        saved_flags = {i = 0}
        returnValue = false
#24 0x00007ffff6dbe0af in QEventLoop::processEvents (this=this@entry=0x7fffffffd7c0, flags=...) at kernel/qeventloop.cpp:149
        d = 0xacdd00
#25 0x00007ffff6dbe3a5 in QEventLoop::exec (this=this@entry=0x7fffffffd7c0, flags=...) at kernel/qeventloop.cpp:204
        d = 0xacdd00
        locker = {val = 7448824}
#26 0x00007ffff6dc3b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
        threadData = 0x71a790
        eventLoop = {<QObject> = {_vptr.QObject = 0x7ffff7123710 <vtable for QEventLoop+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff6e9cca0 <qt_meta_stringdata_QObject> "QObject",
                data = 0x7ffff6e9cd40 <qt_meta_data_QObject>, extradata = 0x7ffff7120c60 <QObject::staticMetaObjectExtraData>}}, static staticMetaObjectExtraData = {objects = 0x0,
              static_metacall = 0x7ffff6dd8ae0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0xacdd00}, static staticQtMetaObject = {d = {superdata = 0x0,
                stringdata = 0x7ffff6ea5be0 <qt_meta_stringdata_Qt> "Qt", data = 0x7ffff6ea9500 <qt_meta_data_Qt>, extradata = 0x0}}}, static staticMetaObject = {d = {
              superdata = 0x70d460 <QObject::staticMetaObject>, stringdata = 0x7ffff6eaf7c0 <qt_meta_stringdata_QEventLoop> "QEventLoop", data = 0x7ffff6eaf7e0 <qt_meta_data_QEventLoop>,
              extradata = 0x7ffff71237a0 <QEventLoop::staticMetaObjectExtraData>}}, static staticMetaObjectExtraData = {objects = 0x0,
            static_metacall = 0x7ffff6e1ddf0 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}
        returnCode = <optimized out>
#27 0x0000000000445030 in main ()

Discussion

  • Ivan Zakharyaschev

    Post awaiting moderation.

Log in to post a comment.