Bug 414309 - Elisa crashes few seconds after start with Qt 5.14
Summary: Elisa crashes few seconds after start with Qt 5.14
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 19.11.80
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-19 17:02 UTC by Matej Mrenica
Modified: 2019-12-11 07:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Mrenica 2019-11-19 17:02:03 UTC
SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64
Qt Version: 5.14.0

ADDITIONAL INFORMATION
GDB: https://pastebin.com/ZtFyEKdX
BT: https://pastebin.com/kyX3erTi

Version 0.4.2 works correctly
Comment 1 Matej Mrenica 2019-11-19 17:11:50 UTC
@arojas Sorry for summoning you like this, but could you check if Elisa works correctly for you, to rule out a problem in Arch? Thanks.
Comment 2 Antonio Rojas 2019-11-19 17:13:52 UTC
Yes, it also crashes for me. This is a Qt 5.14 issue, and it also affects 0.4.2 (you are probably downgrading both elisa and Qt when testing).
Comment 3 Matej Mrenica 2019-11-19 17:24:14 UTC
(In reply to Antonio Rojas from comment #2)
> Yes, it also crashes for me. This is a Qt 5.14 issue, and it also affects
> 0.4.2 (you are probably downgrading both elisa and Qt when testing).

Oh, it actually does affect both versions (built from source), my bad.

>a Qt 5.14 issue

Can this be fixed by a patch to elisa or is something broken in Qt?
Comment 4 Nate Graham 2019-11-20 16:31:19 UTC
Antonio, is there an upstream Qt bug report tracking this?
Comment 5 Antonio Rojas 2019-11-20 20:51:03 UTC
(In reply to Nate Graham from comment #4)
> Antonio, is there an upstream Qt bug report tracking this?

Not that I can find. Full backtrace for reference:

#0  0x00007ffff52691f2 in QQuickPixmapReader::processJob (this=this@entry=0x555556e91500, runningJob=<optimized out>, runningJob@entry=0x555558d34730, 
    url=..., localFile=..., imageType=imageType@entry=QQmlImageProviderBase::Invalid, provider=...)
    at /build/qt5-declarative/src/qtdeclarative-everywhere-src-5.14.0-beta3/src/quick/util/qquickpixmapcache.cpp:885
#1  0x00007ffff526a28e in QQuickPixmapReader::processJobs (this=0x555556e91500)
    at /build/qt5-declarative/src/qtdeclarative-everywhere-src-5.14.0-beta3/src/quick/util/qquickpixmapcache.cpp:724
#2  0x00007ffff526a867 in QQuickPixmapReaderThreadObject::event (this=<optimized out>, e=<optimized out>)
    at /build/qt5-declarative/src/qtdeclarative-everywhere-src-5.14.0-beta3/src/quick/util/qquickpixmapcache.cpp:628
#3  0x00007ffff782c15c in QApplicationPrivate::notify_helper (this=this@entry=0x55555565edc0, receiver=receiver@entry=0x7fffd0004e10, 
    e=e@entry=0x555558d2e570) at kernel/qapplication.cpp:3693
#4  0x00007ffff78358ce in QApplication::notify (this=0x7fffffffe420, receiver=0x7fffd0004e10, e=0x555558d2e570) at kernel/qapplication.cpp:3033
#5  0x00007ffff66b7daf in QCoreApplication::notifyInternal2 (receiver=0x7fffd0004e10, event=0x555558d2e570) at kernel/qcoreapplication.cpp:1092
#6  0x00007ffff66b8010 in QCoreApplication::sendEvent (receiver=receiver@entry=0x7fffd0004e10, event=event@entry=0x555558d2e570)
    at kernel/qcoreapplication.cpp:1487
#7  0x00007ffff66bb8bd in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x555556e91660)
    at kernel/qcoreapplication.cpp:1832
#8  0x00007ffff66bbf72 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
    at kernel/qcoreapplication.cpp:1691
#9  0x00007ffff67235cb in postEventSourceDispatch (s=0x7fffd0004bb0) at kernel/qeventdispatcher_glib.cpp:277
#10 0x00007ffff25b939e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007ffff25bb1b1 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007ffff25bb1f1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#13 0x00007ffff6722ee8 in QEventDispatcherGlib::processEvents (this=0x7fffd0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#14 0x00007ffff66b594d in QEventLoop::processEvents (this=this@entry=0x7fffdcb38d30, flags=..., flags@entry=...)
    at /usr/include/c++/9.2.0/bits/atomic_base.h:734
#15 0x00007ffff66b5da5 in QEventLoop::exec (this=this@entry=0x7fffdcb38d30, flags=flags@entry=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#16 0x00007ffff64bd0a4 in QThread::exec (this=this@entry=0x555556e91500) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#17 0x00007ffff526a8d2 in QQuickPixmapReader::run (this=0x555556e91500)
    at /build/qt5-declarative/src/qtdeclarative-everywhere-src-5.14.0-beta3/src/quick/util/qquickpixmapcache.cpp:985
#18 0x00007ffff64be88e in QThreadPrivate::start (arg=0x555556e91500) at thread/qthread_unix.cpp:342
#19 0x00007ffff4d714cf in start_thread () from /usr/lib/libpthread.so.0
#20 0x00007ffff61572d3 in clone () from /usr/lib/libc.so.6
Comment 6 Matthieu Gallien 2019-11-20 21:29:40 UTC
Could it be an issue in elisa (for example the cover image provider) that is reproducible with Qt 5.14 ?

I will probably need to build this version to test.

Should this bug marked confirmed ?
Comment 7 Antonio Rojas 2019-11-24 14:35:14 UTC
Reported upstream with a tentative fix:
https://bugreports.qt.io/browse/QTBUG-80283

However, the invalid data issue (which triggers the crash) should probably also be fixed in Elisa itself.
Comment 8 Matthieu Gallien 2019-11-24 19:23:14 UTC
(In reply to Antonio Rojas from comment #7)
> Reported upstream with a tentative fix:
> https://bugreports.qt.io/browse/QTBUG-80283
> 
> However, the invalid data issue (which triggers the crash) should probably
> also be fixed in Elisa itself.

Thanks a lot for your work. I hope to be able to fix the issue in Elisa itself.
Comment 9 Antonio Rojas 2019-12-11 07:26:57 UTC
The crash is fixed in Qt 5.14 rc2
Comment 10 Matej Mrenica 2019-12-11 07:31:21 UTC
Looks like it is.