Bug 458668 - kbibtex crashes when opening bib file
Summary: kbibtex crashes when opening bib file
Status: RESOLVED DUPLICATE of bug 433084
Alias: None
Product: KBibTeX
Classification: Applications
Component: Loading/saving files (show other bugs)
Version: 0.10
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-03 18:16 UTC by Arnout Boelens
Modified: 2023-12-16 15:01 UTC (History)
0 users

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 Arnout Boelens 2022-09-03 18:16:33 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Press Open
2.  Select bib file

OBSERVED RESULT

Crash

EXPECTED RESULT

File is opened

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian testing
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version:  5.15.4

ADDITIONAL INFORMATION

gdb /usr/bin/kbibtex
GNU gdb (Debian 12.1-3) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/kbibtex...
Reading symbols from /usr/lib/debug/.build-id/3a/eec82f880225a40bbf5a0dbf8ea887d846d030.debug...
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/kbibtex
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe5fff640 (LWP 244474)]
[New Thread 0x7fffe5631640 (LWP 244475)]
[New Thread 0x7fffdcdff640 (LWP 244477)]
[New Thread 0x7fffd15ff640 (LWP 244478)]
[New Thread 0x7fffd0dfe640 (LWP 244479)]
[New Thread 0x7fffc3fff640 (LWP 244480)]
[New Thread 0x7fffc37fe640 (LWP 244481)]
kbibtex.program: Starting KBibTeX version "0.9.90"
QCommandLineParser: option not defined: "author"
QCommandLineParser: option not defined: "license"
QCommandLineParser: option not defined: "desktopfile"
kf.i18n: Trying to convert empty KLocalizedString to QString.
[New Thread 0x7fffbb473640 (LWP 244482)]
[New Thread 0x7fffbac72640 (LWP 244483)]
[New Thread 0x7fffba471640 (LWP 244484)]
[New Thread 0x7fffb9c70640 (LWP 244485)]
kbibtex.program: Located KPart service: "kbibtexpart" with description "KParts component to view and edit bibliographic files" from library "kbibtexpart"
[New Thread 0x7fffb946f640 (LWP 244487)]
kbibtex.io: No or only an incomplete installation of BibUtils found
[New Thread 0x7fff9ffff640 (LWP 244490)]
[Detaching after fork from child process 244491]
kf.kio.filewidgets.kfilefiltercombo: "all/all" is not a valid MIME type
kf.kio.filewidgets.kfilefiltercombo: "all/all" is not a valid MIME type
[Detaching after fork from child process 244493]
[New Thread 0x7fff9f7fe640 (LWP 244502)]
kbibtex.part: Creating KBibTeX Part of version "0.9.90"
kbibtex.io: Using ICU in Encoder class
kbibtex.io: Using ICU in Encoder class

Thread 1 "kbibtex" received signal SIGSEGV, Segmentation fault.
0x00007ffff7bbdbac in FileModel::element (this=0x0, row=0) at ./src/data/models/filemodel.cpp:388
388     ./src/data/models/filemodel.cpp: No such file or directory.
(gdb) bt
#0  0x00007ffff7bbdbac in FileModel::element (this=0x0, row=0) at ./src/data/models/filemodel.cpp:388
#1  0x00007ffff7f1bafd in SortFilterFileModel::filterAcceptsRow (this=0x555557533ca0, source_row=<optimized out>, source_parent=...) at ./src/gui/file/sortfilterfilemodel.cpp:147
#2  0x00007ffff607e6d6 in QSortFilterProxyModelPrivate::create_mapping (this=this@entry=0x5555576016f0, source_parent=...) at itemmodels/qsortfilterproxymodel.cpp:504
#3  0x00007ffff6088504 in QSortFilterProxyModel::setSourceModel (this=0x555557533ca0, sourceModel=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:2152
#4  0x00007ffff7f1cfe1 in SortFilterFileModel::setSourceModel (this=this@entry=0x555557533ca0, model=0x555557600b40) at ./src/gui/file/sortfilterfilemodel.cpp:39
#5  0x00007fffbbec7c04 in KBibTeXPart::KBibTeXPartPrivate::openFile (this=this@entry=0x5555576186b0, url=..., localFilePath=...) at ./src/parts/part.cpp:385
#6  0x00007fffbbebf7d0 in KBibTeXPart::openFile (this=0x55555751bce0) at ./src/parts/part.cpp:956
#7  0x00007ffff7b21355 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x5555574c8790) at ./src/readonlypart.cpp:180
#8  0x00007ffff7b2241e in KParts::ReadOnlyPart::openUrl (this=0x55555751bce0, url=...) at ./src/readonlypart.cpp:141
#9  0x00005555555ac42f in OpenFileInfo::OpenFileInfoPrivate::createPart (this=0x5555574afc70, newWidgetParent=0x55555592b690, newServicePtr=...) at ./src/program/openfileinfo.cpp:138
#10 0x00005555555aae64 in OpenFileInfo::part (this=this@entry=0x55555751cde0, parent=parent@entry=0x55555592b690, servicePtr=...) at ./src/program/openfileinfo.cpp:262
#11 0x00005555555840ee in MDIWidget::setFile (this=0x55555592b690, openFileInfo=0x55555751cde0, servicePtr=...) at ./src/program/mdiwidget.cpp:255
#12 0x000055555557deab in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void, void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>::call (arg=<optimized out>, o=<optimized out>, f=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
#13 QtPrivate::FunctionPointer<void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>::call<QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void> (arg=<optimized out>, o=<optimized out>, f=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
#14 QtPrivate::QSlotObject<void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>), QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void>::impl (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:418
#15 0x00007ffff60e89af in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcc20, r=0x55555592b690, this=0x555557293270) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#16 doActivate<false> (sender=0x555555d7c7f0, signal_index=3, argv=0x7fffffffcc20) at kernel/qobject.cpp:3886
#17 0x00007ffff60e1d6f in QMetaObject::activate (sender=sender@entry=0x555555d7c7f0, m=m@entry=0x5555555c5fe0 <OpenFileInfoManager::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffcc20) at kernel/qobject.cpp:3946
#18 0x00005555555772a4 in OpenFileInfoManager::currentChanged (this=this@entry=0x555555d7c7f0, _t1=<optimized out>, _t1@entry=0x55555751cde0, _t2=...) at ./obj-x86_64-linux-gnu/src/program/kbibtex_autogen/EWIEGA46WW/moc_openfileinfo.cpp:280
#19 0x00005555555a904c in OpenFileInfoManager::setCurrentFile (this=0x555555d7c7f0, openFileInfo=openFileInfo@entry=0x55555751cde0, servicePtr=...) at ./src/program/openfileinfo.cpp:713
#20 0x0000555555579e36 in KBibTeXMainWindow::openDocument (this=this@entry=0x555555928d20, url=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:183
#21 0x000055555557d763 in KBibTeXMainWindow::openDocumentDialog (this=0x555555928d20) at ./src/program/mainwindow.cpp:338
#22 0x00007ffff60e89af in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcde0, r=0x555555928d20, this=0x555557293150) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false> (sender=0x55555592b690, signal_index=13, argv=0x7fffffffcde0) at kernel/qobject.cpp:3886
#24 0x00007ffff60e89af in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcf00, r=0x55555592b690, this=0x5555557ffaf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 doActivate<false> (sender=0x555555cf03c0, signal_index=9, argv=0x7fffffffcf00) at kernel/qobject.cpp:3886
#26 0x00007ffff60e1d6f in QMetaObject::activate (sender=sender@entry=0x555555cf03c0, m=m@entry=0x7ffff727c140 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffffffcf00) at kernel/qobject.cpp:3946
#27 0x00007ffff6e54c72 in QAbstractButton::clicked (this=this@entry=0x555555cf03c0, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:308
#28 0x00007ffff6e54eda in QAbstractButtonPrivate::emitClicked (this=0x5555558f14a0) at widgets/qabstractbutton.cpp:415
#29 0x00007ffff6e56a68 in QAbstractButtonPrivate::click (this=0x5555558f14a0) at widgets/qabstractbutton.cpp:408
#30 0x00007ffff6e56c87 in QAbstractButton::mouseReleaseEvent (this=0x555555cf03c0, e=0x7fffffffd480) at widgets/qabstractbutton.cpp:1044
#31 0x00007ffff6da4cb8 in QWidget::event (this=0x555555cf03c0, event=0x7fffffffd480) at kernel/qwidget.cpp:9033
#32 0x00007ffff6d62f4e in QApplicationPrivate::notify_helper (this=this@entry=0x5555555f7d00, receiver=receiver@entry=0x555555cf03c0, e=e@entry=0x7fffffffd480) at kernel/qapplication.cpp:3637
#33 0x00007ffff6d6b4f2 in QApplication::notify (this=<optimized out>, receiver=0x555555cf03c0, e=<optimized out>) at kernel/qapplication.cpp:3081
#34 0x00007ffff60b1618 in QCoreApplication::notifyInternal2 (receiver=0x555555cf03c0, event=0x7fffffffd480) at kernel/qcoreapplication.cpp:1064
#35 0x00007ffff6d695fe in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x555555cf03c0, event=event@entry=0x7fffffffd480, alienWidget=<optimized out>, nativeWidget=0x555555928d20, buttonDown=buttonDown@entry=0x7ffff72a59f0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619
#36 0x00007ffff6dbdac8 in QWidgetWindow::handleMouseEvent (this=0x55555724cfa0, event=0x7fffffffd730) at kernel/qwidgetwindow.cpp:683
#37 0x00007ffff6dc0e50 in QWidgetWindow::event (this=0x55555724cfa0, event=0x7fffffffd730) at kernel/qwidgetwindow.cpp:300
#38 0x00007ffff6d62f4e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55555724cfa0, e=0x7fffffffd730) at kernel/qapplication.cpp:3637
#39 0x00007ffff60b1618 in QCoreApplication::notifyInternal2 (receiver=0x55555724cfa0, event=0x7fffffffd730) at kernel/qcoreapplication.cpp:1064
#40 0x00007ffff653d625 in QGuiApplicationPrivate::processMouseEvent (e=0x5555571f3130) at kernel/qguiapplication.cpp:2282
#41 0x00007ffff6511ddc in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#42 0x00007fffe6a67e4a in xcbSourceDispatch (source=<optimized out>) at ./src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#43 0x00007fffeb986bc9 in g_main_dispatch (context=0x7fffe0005000) at ../../../glib/gmain.c:3417
#44 g_main_context_dispatch (context=context@entry=0x7fffe0005000) at ../../../glib/gmain.c:4135
#45 0x00007fffeb986e58 in g_main_context_iterate (context=context@entry=0x7fffe0005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4211
#46 0x00007fffeb986eec in g_main_context_iteration (context=0x7fffe0005000, may_block=1) at ../../../glib/gmain.c:4276
#47 0x00007ffff61091c6 in QEventDispatcherGlib::processEvents (this=0x5555556d00a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#48 0x00007ffff60b009b in QEventLoop::exec (this=this@entry=0x7fffffffda60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#49 0x00007ffff60b8206 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#50 0x00007ffff6530fbc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#51 0x00007ffff6d62ec5 in QApplication::exec () at kernel/qapplication.cpp:2829
#52 0x0000555555575fcb in main (argc=<optimized out>, argv=<optimized out>) at ./src/program/program.cpp:124
(gdb)
Comment 1 Arnout Boelens 2022-09-03 18:17:49 UTC
Version listed is 0.9.90
Comment 2 Antonio Rojas 2022-09-03 22:12:58 UTC

*** This bug has been marked as a duplicate of bug 433084 ***
Comment 3 Thomas Fischer 2023-12-16 15:01:55 UTC
It is a little bit unclear, but does this problem still exist? Have you tested the latest code either from branch 'master' or 'kbibtex/0.10'?