Bug 483321

Summary: Frequent error message - QML Image: Socket operation timed out
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screensho
Log

Description Ralf Habacker 2024-03-12 08:17:27 UTC
Created attachment 167015 [details]
Screensho

SUMMARY
Using the qml dialog to install resources from kde store fails with the mentioned error message.

STEPS TO REPRODUCE
1. download alkimia sources from https://invent.kde.org/office/alkimia
2. build with qt5/KF5  
3. run <builddir>bin/alknewstuffwidget

OBSERVED RESULT
The dialog takes a very long time to switch from the "Search..." display to the view shown in the attached screenshot. After appearing, a message is displayed that a socket operation has timed out. The generated log contains urls that do not work in the browser, e.g. https://images.pling.com/cache/100x100-0/img/00/00/19/27/99/1164278/default-ocs.png.  

EXPECTED RESULT
The dialog should not have the mentioned delay and should work.
 
SOFTWARE/OS VERSIONS
Linux: openSUSE Leap 15.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8+kde185

ADDITIONAL INFORMATION
The following source code is used to run  the install dialog (from https://invent.kde.org/office/alkimia/-/blob/master/src/alknewstuffwidget.cpp#L92)

    QPointer<KNS3::QtQuickDialogWrapper> knsWrapper = new KNS3::QtQuickDialogWrapper(configFile, dynamic_cast<QObject*>(parent));
    knsWrapper->open();
    QEventLoop loop;
    connect(knsWrapper, &KNS3::QtQuickDialogWrapper::closed, &loop, &QEventLoop::quit);
    loop.exec();
    return !knsWrapper->changedEntries().empty();
Comment 1 Ralf Habacker 2024-03-12 08:17:58 UTC
Created attachment 167016 [details]
Log

Log file