<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>435514</bug_id>
          
          <creation_ts>2021-04-08 16:33:35 +0000</creation_ts>
          <short_desc>Crash at startup with recent Qt</short_desc>
          <delta_ts>2021-04-08 18:02:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>KBibTeX</product>
          <component>General</component>
          <version>0.9.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>433084</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Antonio Rojas">arojas</reporter>
          <assigned_to name="Thomas Fischer">fischer</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2023572</commentid>
    <comment_count>0</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2021-04-08 16:33:35 +0000</bug_when>
    <thetext>SUMMARY
After this upstream commit (which is not in 5.15.2, but is in the KDE maintenance branch and, presumably, in the commercial 5.15.3), kbibtex crashes immediately at startup

https://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.15&amp;id=4796296ed6d7b05e2ba94e5a8a28c48350a3c492

Backtrace:

(gdb) bt
#0  0x00007ffff77bf75c in FileModel::element(int) const (this=0x0, row=0) at /usr/src/debug/kbibtex-0.9.2/src/data/models/filemodel.cpp:399
#1  0x00007ffff7f14f78 in SortFilterFileModel::filterAcceptsRow(int, QModelIndex const&amp;) const
    (this=0x55555803cbe0, source_row=&lt;optimized out&gt;, source_parent=&lt;optimized out&gt;)
    at /usr/src/debug/kbibtex-0.9.2/src/gui/file/sortfilterfilemodel.cpp:151
#2  0x00007ffff62d95f7 in QSortFilterProxyModelPrivate::filterAcceptsRowInternal(int, QModelIndex const&amp;) const
    (this=this@entry=0x555557eae3c0, source_row=&lt;optimized out&gt;, source_parent=...) at itemmodels/qsortfilterproxymodel.cpp:446
#3  0x00007ffff62dd4aa in QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&amp;) const (this=this@entry=0x555557eae3c0, source_parent=...)
    at itemmodels/qsortfilterproxymodel.cpp:504
#4  0x00007ffff62e4a0c in QSortFilterProxyModel::setSourceModel(QAbstractItemModel*) (this=0x55555803cbe0, sourceModel=0x7fffffffd700)
    at itemmodels/qsortfilterproxymodel.cpp:2149
#5  0x00007ffff7f16012 in SortFilterFileModel::setSourceModel(QAbstractItemModel*) (this=this@entry=0x55555803cbe0, model=0x555557eaf190)
    at /usr/src/debug/kbibtex-0.9.2/src/gui/file/sortfilterfilemodel.cpp:43
#6  0x00007fffc4015543 in KBibTeXPart::KBibTeXPartPrivate::openFile(QUrl const&amp;, QString const&amp;) (this=this@entry=
    0x555557dd8310, url=..., localFilePath=...) at /usr/src/debug/kbibtex-0.9.2/src/parts/part.cpp:391
#7  0x00007fffc400e1e2 in KBibTeXPart::openFile() (this=0x555557e4d430) at /usr/src/debug/kbibtex-0.9.2/src/parts/part.cpp:964
#8  0x00007ffff7c4a315 in  () at /usr/lib/libKF5Parts.so.5
#9  0x00007ffff7c4b0e4 in KParts::ReadOnlyPart::openUrl(QUrl const&amp;) () at /usr/lib/libKF5Parts.so.5
#10 0x000055555559cb54 in OpenFileInfo::OpenFileInfoPrivate::createPart(QWidget*, QExplicitlySharedDataPointer&lt;KService&gt;)
    (this=0x555555b839c0, newWidgetParent=0x555555a791a0, newServicePtr=...) at /usr/src/debug/kbibtex-0.9.2/src/program/openfileinfo.cpp:139
#11 0x000055555559bd67 in OpenFileInfo::part(QWidget*, QExplicitlySharedDataPointer&lt;KService&gt;)
    (this=this@entry=0x555555b844c0, parent=parent@entry=0x555555a791a0, servicePtr=...) at /usr/src/debug/kbibtex-0.9.2/src/program/openfileinfo.cpp:263
#12 0x00005555555809cf in MDIWidget::setFile(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;)
    (this=0x555555a791a0, openFileInfo=0x555555b844c0, servicePtr=...) at /usr/src/debug/kbibtex-0.9.2/src/program/mdiwidget.cpp:242
#13 0x000055555557c766 in QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;0, 1&gt;, QtPrivate::List&lt;OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt; &gt;, void, void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;)&gt;::call(void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KSer--Type &lt;RET&gt; for more, q to quit, c to continue without paging--
vice&gt;), MDIWidget*, void**) (arg=&lt;optimized out&gt;, o=&lt;optimized out&gt;, f=&lt;optimized out&gt;) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#14 QtPrivate::FunctionPointer&lt;void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;)&gt;::call&lt;QtPrivate::List&lt;OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt; &gt;, void&gt;(void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;), MDIWidget*, void**)
    (arg=&lt;optimized out&gt;, o=&lt;optimized out&gt;, f=&lt;optimized out&gt;) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#15 QtPrivate::QSlotObject&lt;void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;), QtPrivate::List&lt;OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt; &gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)
    (which=&lt;optimized out&gt;, this_=&lt;optimized out&gt;, r=&lt;optimized out&gt;, a=&lt;optimized out&gt;, ret=&lt;optimized out&gt;)
    at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#16 0x00007ffff6349a0c in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffffffdc50, r=0x555555a791a0, this=0x555557ddc120)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate&lt;false&gt;(QObject*, int, void**) (sender=0x555555c3cdb0, signal_index=3, argv=0x7fffffffdc50) at kernel/qobject.cpp:3886
#18 0x00007ffff6340df5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
    (sender=sender@entry=0x555555c3cdb0, m=m@entry=0x5555555b9aa0 &lt;OpenFileInfoManager::staticMetaObject&gt;, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffdc50) at kernel/qobject.cpp:3946
#19 0x0000555555574cd5 in OpenFileInfoManager::currentChanged(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;)
    (this=this@entry=0x555555c3cdb0, _t1=&lt;optimized out&gt;, _t1@entry=0x555555b844c0, _t2=...)
    at /usr/src/debug/build/src/program/kbibtex_autogen/EWIEGA46WW/moc_openfileinfo.cpp:280
#20 0x0000555555599d61 in OpenFileInfoManager::setCurrentFile(OpenFileInfo*, QExplicitlySharedDataPointer&lt;KService&gt;)
    (this=0x555555c3cdb0, openFileInfo=openFileInfo@entry=0x555555b844c0, servicePtr=...)
    at /usr/src/debug/kbibtex-0.9.2/src/program/openfileinfo.cpp:714
#21 0x000055555559a04e in operator() (__closure=0x7fffffffdcf0) at /usr/include/qt/QtCore/qshareddata.h:183
#22 QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;&gt;, QtPrivate::List&lt;&gt;, void, OpenFileInfoManager::OpenFileInfoManager(QObject*)::&lt;lambda()&gt; &gt;::call
    (arg=&lt;optimized out&gt;, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#23 QtPrivate::Functor&lt;OpenFileInfoManager::OpenFileInfoManager(QObject*)::&lt;lambda()&gt;, 0&gt;::call&lt;QtPrivate::List&lt;&gt;, void&gt; (arg=&lt;optimized out&gt;, f=...)
    at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
--Type &lt;RET&gt; for more, q to quit, c to continue without paging--
#24 QtPrivate::QFunctorSlotObject&lt;OpenFileInfoManager::OpenFileInfoManager(QObject*)::&lt;lambda()&gt;, 0, QtPrivate::List&lt;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=&lt;optimized out&gt;, this_=0x7fffffffdce0, r=&lt;optimized out&gt;, a=&lt;optimized out&gt;, ret=&lt;optimized out&gt;)
    at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#25 0x00007ffff634f9c3 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffffffdd30, r=&lt;optimized out&gt;, this=&lt;optimized out&gt;)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 QSingleShotTimer::timerEvent(QTimerEvent*) (this=0x555555a803d0) at kernel/qtimer.cpp:320
#27 0x00007ffff634185d in QObject::event(QEvent*) (this=0x555555a803d0, e=0x7fffffffe080) at kernel/qobject.cpp:1291
#28 0x00007ffff6dc9c26 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=
    0x5555555bf000, receiver=receiver@entry=0x555555a803d0, e=e@entry=0x7fffffffe080) at kernel/qapplication.cpp:3632
#29 0x00007ffff6dd24ee in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffe3d0, receiver=0x555555a803d0, e=0x7fffffffe080)
    at kernel/qapplication.cpp:2972
#30 0x00007ffff6307338 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x555555a803d0, event=0x7fffffffe080)
    at kernel/qcoreapplication.cpp:1064
#31 0x00007ffff630754c in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=&lt;optimized out&gt;, event=&lt;optimized out&gt;)
    at kernel/qcoreapplication.cpp:1462
#32 0x00007ffff63709d3 in QTimerInfoList::activateTimers() (this=0x55555561df50) at kernel/qtimerinfo_unix.cpp:643
#33 0x00007ffff637121a in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=&lt;optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:183
#34 0x00007fffea3b4f9c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#35 0x00007fffea408a49 in  () at /usr/lib/libglib-2.0.so.0
#36 0x00007fffea3b26f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#37 0x00007ffff63715b4 in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=0x5555556ff670, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007fffe2d61e06 in QXcbGlibEventDispatcher::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=&lt;optimized out&gt;, flags=...)
    at qxcbeventdispatcher.cpp:143
#39 0x00007ffff6304df1 in QEventLoop::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=this@entry=0x7fffffffe2e0, flags=..., flags@entry=...)
--Type &lt;RET&gt; for more, q to quit, c to continue without paging--
    at kernel/qeventloop.cpp:139
#40 0x00007ffff6305435 in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=this@entry=0x7fffffffe2e0, flags=flags@entry=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#41 0x00007ffff630fa2e in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#42 0x00007ffff66dabbe in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#43 0x00007ffff6dc9b9b in QApplication::exec() () at kernel/qapplication.cpp:2824
#44 0x00005555555734a3 in main(int, char**) (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /usr/src/debug/kbibtex-0.9.2/src/program/program.cpp:124</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023600</commentid>
    <comment_count>1</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2021-04-08 18:02:58 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 433084 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>