Bug 443040 - Discover crashes on launch in Attica::ProviderManager::parseProviderFile()
Summary: Discover crashes on launch in Attica::ProviderManager::parseProviderFile()
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: KNewStuff Backend (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 00:28 UTC by Pat McInnes
Modified: 2022-02-19 04:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
KDE Crash Report (28.95 KB, text/vnd.kde.kcrash-report)
2021-09-28 00:28 UTC, Pat McInnes
Details
New crash information added by DrKonqi (23.08 KB, text/plain)
2021-09-28 00:34 UTC, Pat McInnes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pat McInnes 2021-09-28 00:28:06 UTC
Created attachment 141967 [details]
KDE Crash Report

Discovery continuously crashes after an update. Multiple attempts, restarts and Konsole/Terminal commands have not been able to fix it. It opens stating that it is not connected to the internet, which is confirmed untrue as I can browse the internet on Firefox.

Once it "connects" it, attempts to load - and then crashes.


STEPS TO REPRODUCE
1. Click on Discovery
2. Wait to "connect"
3. Loads - then crashes

OBSERVED RESULT
Discovery crashes and is unable to load

EXPECTED RESULT
Discovery to open so I can check for Updates

SOFTWARE/OS VERSIONS
Qt Version: 5.15.3
Frameworks Version: 5.86.0
Operating System: Linux 5.11.0-36-generic x86_64
Windowing System: X11
Drkonqi Version: 5.22.5
Distribution: KDE neon User Edition 5.22

ADDITIONAL INFORMATION
Please see attached (generated) kcrash file for more information
Comment 1 Pat McInnes 2021-09-28 00:34:39 UTC
Created attachment 141968 [details]
New crash information added by DrKonqi

plasma-discover (5.22.5) using Qt 5.15.3

- What I was doing when the application crashed:
Checking Discovery for Updates

- Unusual behavior I noticed:
It opened, stating that there was no internet connection - which is not true, as I had a steady and stable connection.

- Custom settings of the application:
None that I can remember. Automatic updates are turned on in System Settings however.

-- Backtrace (Reduced):
#4  0x00007fb5c5955d8c in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x51) at /usr/include/c++/9/bits/atomic_base.h:413
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed (this=0x51) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::isShared (this=0x51) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:101
[...]
#9  QHash<QUrl, Attica::Provider>::insert (avalue=..., akey=..., this=0x564c5309c388) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:770
Comment 2 Pat McInnes 2021-09-28 00:36:00 UTC
This is the message in Discovery when I attempt to open it:
"Unable to load applications"
"Please verify Internet connectivity"
Comment 3 Nate Graham 2021-09-28 20:39:15 UTC
Do you have networkmanager installed but disabled, by any chance?


Pasting the relevant part of the crash log inline: 


Thread 1 (Thread 0x7f6c8fc8be80 (LWP 4173)):
[KCrash Handler]
#4  0x00007f6c7811ed8c in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x51) at /usr/include/c++/9/bits/atomic_base.h:413
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed (this=0x51) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::isShared (this=0x51) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:101
#8  QHash<QUrl, Attica::Provider>::detach (this=0x559e4b90d488) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:291
#9  QHash<QUrl, Attica::Provider>::insert (avalue=..., akey=..., this=0x559e4b90d488) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:770
#10 Attica::ProviderManager::parseProviderFile (this=this@entry=0x559e4bc1bd60, xmlString=..., url=...) at ./src/providermanager.cpp:239
#11 0x00007f6c7811fddb in Attica::ProviderManager::fileFinished (this=this@entry=0x559e4bc1bd60, url=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1067
#12 0x00007f6c7811fef9 in Attica::ProviderManager::<lambda()>::operator() (__closure=0x559e4b94bd00) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qurl.h:70
#13 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#14 QtPrivate::Functor<Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#15 QtPrivate::QFunctorSlotObject<Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x559e4b94bcf0, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#16 0x00007f6c94875d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffd26c49560, r=0x559e4bc1bd60, this=0x559e4b94bcf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false> (sender=0x559e4b959d80, signal_index=10, argv=0x7ffd26c49560) at kernel/qobject.cpp:3886
#18 0x00007f6c9486f167 in QMetaObject::activate (sender=sender@entry=0x559e4b959d80, m=m@entry=0x7f6c9418b960 <QNetworkReply::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#19 0x00007f6c9412b597 in QNetworkReply::finished (this=this@entry=0x559e4b959d80) at .moc/moc_qnetworkreply.cpp:404
#20 0x00007f6c9407bd56 in QNetworkReplyHttpImplPrivate::finished (this=0x559e4b980c60) at access/qnetworkreplyhttpimpl.cpp:2280
#21 0x00007f6c9407c369 in QNetworkReplyHttpImplPrivate::_q_finished (this=<optimized out>) at access/qnetworkreplyhttpimpl.cpp:2221
#22 0x00007f6c94130643 in QNetworkReplyHttpImpl::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/../access/qnetworkreplyhttpimpl_p.h:98
#23 0x00007f6c9486c919 in QObject::event (this=0x559e4b959d80, e=0x559e4b916410) at kernel/qobject.cpp:1314
#24 0x00007f6c9589cdc3 in QApplicationPrivate::notify_helper (this=this@entry=0x559e4a567c70, receiver=receiver@entry=0x559e4b959d80, e=e@entry=0x559e4b916410) at kernel/qapplication.cpp:3632
#25 0x00007f6c958a5bb8 in QApplication::notify (this=0x7ffd26c4af00, receiver=0x559e4b959d80, e=0x559e4b916410) at kernel/qapplication.cpp:3156
#26 0x00007f6c9483ed7a in QCoreApplication::notifyInternal2 (receiver=0x559e4b959d80, event=0x559e4b916410) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#27 0x00007f6c94841681 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x559e4a560880) at kernel/qcoreapplication.cpp:1821
#28 0x00007f6c94899f77 in postEventSourceDispatch (s=0x559e4a61f410) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007f6c92b8e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f6c92b8e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f6c92b8e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f6c94899641 in QEventDispatcherGlib::processEvents (this=0x559e4a627450, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#33 0x00007f6c78e6abe7 in Attica::KdePlatformDependent::getAccessToken (this=this@entry=0x559e4b497b70) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:121
#34 0x00007f6c78e6b318 in Attica::KdePlatformDependent::hasCredentials (this=0x559e4b497b70, baseUrl=...) at ./attica-kde/kdeplugin/kdeplatformdependent.cpp:185
#35 0x00007f6c78110633 in Attica::Provider::Private::Private (additionalAgentInformation=..., registerUrl=..., comment=..., event=..., knowledgebase=..., forum=..., fan=..., content=..., activity=..., achievement=..., message=..., friendV=..., person=..., icon=..., name=..., baseUrl=..., internals=0x559e4b497b80, this=0x559e4b924940) at ./src/provider.cpp:172
#36 Attica::Provider::Provider (this=0x7ffd26c49ed0, internals=0x559e4b497b80, baseUrl=..., name=..., icon=..., person=..., friendV=..., message=..., achievement=..., activity=..., content=..., fan=..., forum=..., knowledgebase=..., event=..., comment=..., registerUrl=...) at ./src/provider.cpp:260
#37 0x00007f6c7811ed7f in Attica::ProviderManager::parseProviderFile (this=this@entry=0x559e4bc1b0b0, xmlString=..., url=...) at ./src/providermanager.cpp:223
#38 0x00007f6c7811fddb in Attica::ProviderManager::fileFinished (this=this@entry=0x559e4bc1b0b0, url=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1067
#39 0x00007f6c7811fef9 in Attica::ProviderManager::<lambda()>::operator() (__closure=0x559e4b950df0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qurl.h:70
#40 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#41 QtPrivate::Functor<Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#42 QtPrivate::QFunctorSlotObject<Attica::ProviderManager::addProviderFile(const QUrl&)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x559e4b950de0, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#43 0x00007f6c94875d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffd26c4a070, r=0x559e4bc1b0b0, this=0x559e4b950de0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#44 doActivate<false> (sender=0x559e4b9c1a40, signal_index=10, argv=0x7ffd26c4a070) at kernel/qobject.cpp:3886
#45 0x00007f6c9486f167 in QMetaObject::activate (sender=sender@entry=0x559e4b9c1a40, m=m@entry=0x7f6c9418b960 <QNetworkReply::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#46 0x00007f6c9412b597 in QNetworkReply::finished (this=this@entry=0x559e4b9c1a40) at .moc/moc_qnetworkreply.cpp:404
#47 0x00007f6c9407bd56 in QNetworkReplyHttpImplPrivate::finished (this=0x559e4b943800) at access/qnetworkreplyhttpimpl.cpp:2280
#48 0x00007f6c9407c369 in QNetworkReplyHttpImplPrivate::_q_finished (this=<optimized out>) at access/qnetworkreplyhttpimpl.cpp:2221
#49 0x00007f6c94130643 in QNetworkReplyHttpImpl::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/../access/qnetworkreplyhttpimpl_p.h:98
#50 0x00007f6c9486c919 in QObject::event (this=0x559e4b9c1a40, e=0x559e4bd02840) at kernel/qobject.cpp:1314
#51 0x00007f6c9589cdc3 in QApplicationPrivate::notify_helper (this=this@entry=0x559e4a567c70, receiver=receiver@entry=0x559e4b9c1a40, e=e@entry=0x559e4bd02840) at kernel/qapplication.cpp:3632
#52 0x00007f6c958a5bb8 in QApplication::notify (this=0x7ffd26c4af00, receiver=0x559e4b9c1a40, e=0x559e4bd02840) at kernel/qapplication.cpp:3156
#53 0x00007f6c9483ed7a in QCoreApplication::notifyInternal2 (receiver=0x559e4b9c1a40, event=0x559e4bd02840) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#54 0x00007f6c94841681 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x559e4a560880) at kernel/qcoreapplication.cpp:1821
#55 0x00007f6c94899f77 in postEventSourceDispatch (s=0x559e4a61f410) at kernel/qeventdispatcher_glib.cpp:277
#56 0x00007f6c92b8e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007f6c92b8e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f6c92b8e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f6c94899641 in QEventDispatcherGlib::processEvents (this=0x559e4a627450, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#60 0x00007f6c78e6abe7 in Attica::KdePlatformDependent::getAccessToken (this=this@entry=0x559e4b497b70) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:121
#61 0x00007f6c78e6b123 in Attica::KdePlatformDependent::addOAuthToRequest (this=this@entry=0x559e4b497b70, request=...) at ./attica-kde/kdeplugin/kdeplatformdependent.cpp:136
#62 0x00007f6c78e6b90c in Attica::KdePlatformDependent::get (this=0x559e4b497b70, request=...) at ./attica-kde/kdeplugin/kdeplatformdependent.cpp:157
#63 0x00007f6c780b89c9 in Attica::BaseJob::doWork (this=0x559e4b971b30) at ./src/atticabasejob.cpp:131
#64 0x00007f6c9486c919 in QObject::event (this=0x559e4b971b30, e=0x7f6c8001e950) at kernel/qobject.cpp:1314
#65 0x00007f6c9589cdc3 in QApplicationPrivate::notify_helper (this=this@entry=0x559e4a567c70, receiver=receiver@entry=0x559e4b971b30, e=e@entry=0x7f6c8001e950) at kernel/qapplication.cpp:3632
#66 0x00007f6c958a5bb8 in QApplication::notify (this=0x7ffd26c4af00, receiver=0x559e4b971b30, e=0x7f6c8001e950) at kernel/qapplication.cpp:3156
#67 0x00007f6c9483ed7a in QCoreApplication::notifyInternal2 (receiver=0x559e4b971b30, event=0x7f6c8001e950) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#68 0x00007f6c94841681 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x559e4a560880) at kernel/qcoreapplication.cpp:1821
#69 0x00007f6c94899f77 in postEventSourceDispatch (s=0x559e4a61f410) at kernel/qeventdispatcher_glib.cpp:277
#70 0x00007f6c92b8e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007f6c92b8e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007f6c92b8e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007f6c948995d2 in QEventDispatcherGlib::processEvents (this=0x559e4a627450, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#74 0x00007f6c9483d87b in QEventLoop::exec (this=this@entry=0x7ffd26c4ae20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#75 0x00007f6c94845a34 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#76 0x0000559e497825f2 in main (argc=<optimized out>, argv=<optimized out>) at ./discover/main.cpp:196
[Inferior 1 (process 4173) detached]
Comment 4 Pat McInnes 2021-10-04 04:50:34 UTC
No. I do not have Network Manager installed - not that I would know how to confirm this. There is nothing in the Applications list or search results.

Could you please confirm / explain how to install this - since I cannot access Discover
Comment 5 Pat McInnes 2021-10-04 04:51:27 UTC
(In reply to Nate Graham from comment #3)
> Do you have networkmanager installed but disabled, by any chance?

No. I do not have Network Manager installed - not that I would know how to confirm this. There is nothing in the Applications list or search results.

Could you please confirm / explain how to install this - since I cannot access Discover
Comment 6 Nate Graham 2021-10-04 16:53:18 UTC
Depends in your distro; search for something called "networkmanager".

However if the Plasma Networks applet in the System Tray works for you, then you do have NetworkManager installed, since it requires that.
Comment 7 Aleix Pol 2022-01-20 12:13:25 UTC
Is this issue still happening? The issue looks rather confusing and I don't see where it's coming from.

An updated backtrace would help as well.
Comment 8 Bug Janitor Service 2022-02-04 04:37:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2022-02-19 04:36:51 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!