Bug 394961 - Download (curl) error direkt after KDE Session start, because Network not ready
Summary: Download (curl) error direkt after KDE Session start, because Network not ready
Status: REPORTED
Alias: None
Product: plasma-pk-updates
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
: 395101 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-02 16:04 UTC by Steffen
Modified: 2019-02-15 16:31 UTC (History)
3 users (show)

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 Steffen 2018-06-02 16:04:07 UTC
OpenSuse Leap 15.0
plasma5-pk-updates 0.3.1

After login KDE i will get a error messages: "Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.0/repodata/repomd.xml': Error code: Connection failed Error message: Could not resolve host: download.opensuse.org" because the Networkmanager is not finish to connect to the wlan network.

After some try and error I have modify the main.qml File from the plasmoid, to give the Networkmanager more time to finish the connection, and now the error is gone. 

--- main.qml.orginal    2018-05-12 18:46:05.000000000 +0200
+++ main.qml    2018-06-02 17:23:28.368694070 +0200
@@ -59,6 +59,20 @@
         }
     }
 
+    Timer {                         //wait on start, to give Networkmanager time to make the wlan connection
+        id: waitonstart
+        repeat: false
+        triggeredOnStart: false
+        interval: 1000*60*2 // 2 Minuten
+        onTriggered: {
+        if(!needsForcedUpdate() && batteryAllowed && networkAllowed) {
+            PkUpdates.checkUpdates(false);
+        }
+        timer.start()
+        }
+    }
+    
+    
     Binding {
         target: plasmoid
         property: "status"
@@ -95,9 +109,6 @@
     }
 
     Component.onCompleted: {
-        if(!needsForcedUpdate() && batteryAllowed) {
-            PkUpdates.checkUpdates(false);
-        }
-        timer.start()
+        waitonstart.start()
     }
 }

 I hope it help to make KDE better :-)
Comment 1 Christoph Feck 2018-06-21 12:08:38 UTC
*** Bug 395101 has been marked as a duplicate of this bug. ***
Comment 2 ch-dev 2018-08-13 16:28:06 UTC
(In reply to Steffen from comment #0)
> OpenSuse Leap 15.0
> plasma5-pk-updates 0.3.1
> 
> After login KDE i will get a error messages: "Download (curl) error for
> 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.0/
> repodata/repomd.xml': Error code: Connection failed Error message: Could not
> resolve host: download.opensuse.org" because the Networkmanager is not
> finish to connect to the wlan network.
> 
> After some try and error I have modify the main.qml File from the plasmoid,
> to give the Networkmanager more time to finish the connection, and now the
> error is gone. 
> 
> --- main.qml.orginal    2018-05-12 18:46:05.000000000 +0200
> +++ main.qml    2018-06-02 17:23:28.368694070 +0200
> @@ -59,6 +59,20 @@
>          }
>      }
>  
> +    Timer {                         //wait on start, to give Networkmanager
> time to make the wlan connection
> +        id: waitonstart
> +        repeat: false
> +        triggeredOnStart: false
> +        interval: 1000*60*2 // 2 Minuten
> +        onTriggered: {
> +        if(!needsForcedUpdate() && batteryAllowed && networkAllowed) {
> +            PkUpdates.checkUpdates(false);
> +        }
> +        timer.start()
> +        }
> +    }
> +    
> +    
>      Binding {
>          target: plasmoid
>          property: "status"
> @@ -95,9 +109,6 @@
>      }
>  
>      Component.onCompleted: {
> -        if(!needsForcedUpdate() && batteryAllowed) {
> -            PkUpdates.checkUpdates(false);
> -        }
> -        timer.start()
> +        waitonstart.start()
>      }
>  }
> 
>  I hope it help to make KDE better :-)

I had the same issue on Leap 15.0. Thanks for sharing the workaround...this was really bugging me and my KDE is definetely better now :-)
Comment 3 Harald Sitter 2019-02-15 16:30:28 UTC
This is the trace with QML_DISABLE_OPTIMIZER=1 set

(gdb) t a a bt

Thread 14 (Thread 0x7fffa5dd3700 (LWP 1988)):
#0  0x00007fffef481ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff330eac6 in QWaitCondition::wait(QMutex*, QDeadlineTimer) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff330ee25 in QWaitCondition::wait(QMutex*, unsigned long) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff330c5dd in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 13 (Thread 0x7fffa65d4700 (LWP 1987)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d15b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 12 (Thread 0x7fffa77fe700 (LWP 1981)):
#0  0x00007fffef4819f3 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff330eb4b in QWaitCondition::wait(QMutex*, QDeadlineTimer) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff330ee59 in QWaitCondition::wait(QMutex*, unsigned long) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff6990da8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#4  0x00007ffff69911da in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 11 (Thread 0x7fffa7fff700 (LWP 1980)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 10 (Thread 0x7fffb99b3700 (LWP 1977)):
#0  0x00007fffef481ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff330eac6 in QWaitCondition::wait(QMutex*, QDeadlineTimer) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff330ee25 in QWaitCondition::wait(QMutex*, unsigned long) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff330c5dd in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 9 (Thread 0x7fffba1b4700 (LWP 1976)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 8 (Thread 0x7fffbbfff700 (LWP 1974)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 7 (Thread 0x7fffc08fa700 (LWP 1973)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df8d2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffc2956026 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fffed307105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 6 (Thread 0x7fffc10fb700 (LWP 1972)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffed2df691 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fffed307105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7fffcc5c3700 (LWP 1971)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff690b1c6 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6
---Type <return> to continue, or q <return> to quit---

Thread 4 (Thread 0x7fffdc9d2700 (LWP 1970)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff42e42e5 in QQmlThreadPrivate::run() (this=0x5555559699f0) at qml/ftw/qqmlthread.cpp:148
#7  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7fffdd1d3700 (LWP 1969)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffed2df539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffed2df64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff353d13f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff34de64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff330641a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff56c5015 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fffe5171700 (LWP 1968)):
#0  0x00007ffff2bfabf9 in poll () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffeca14747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffeca1636a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffe7d33d4a in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007ffff3307bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffef47b6db in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff2c0788f in clone () at /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7ffff7f91800 (LWP 1963)):
#0  0x00007ffff42334fe in QQmlData::createQQmlData(QObjectPrivate*) (priv=0x7ffff3984980 <QObject::staticMetaObject>) at qml/qqmlengine.cpp:2008
#1  0x00007ffff4189645 in QQmlData::get(QObject const*, bool) (create=true, object=0x55555817f6c0)
    at ../../include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:254
#2  0x00007ffff4189645 in QV4::QObjectWrapper::wrap_slowPath(QV4::ExecutionEngine*, QObject*) (engine=0x555555964df0, object=0x55555817f6c0) at jsruntime/qv4qobjectwrapper.cpp:588
#3  0x00007ffff42be982 in QV4::QObjectWrapper::wrap(QV4::ExecutionEngine*, QObject*) (object=<optimized out>, engine=<optimized out>)
    at ../../include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/jsruntime/qv4qobjectwrapper_p.h:218
#4  0x00007ffff42be982 in QmlListWrapperOwnPropertyKeyIterator::next(QV4::Object const*, QV4::Property*, QV4::PropertyAttributes*) (this=0x55555a9cc100, o=0x7fffd71b16e0, pd=0x7fffd71b16f0, attrs=0x7fffffff66b6)
    at qml/qqmllistwrapper.cpp:161
#5  0x00007ffff417bd62 in QV4::ForInIteratorObject::nextProperty() const (this=0x7fffd71b1638)
    at jsruntime/qv4objectiterator.cpp:176
#6  0x00007ffff417beba in QV4::ForInIteratorPrototype::method_next(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) (b=<optimized out>, thisObject=<optimized out>) at jsruntime/qv4objectiterator.cpp:152
#7  0x00007ffff421006b in QV4::FunctionObject::call(QV4::Value const*, QV4::Value const*, int) const (argc=<optimized out>, argv=<optimized out>, thisObject=<optimized out>, this=0x7fffd71b16d0) at jsruntime/qv4functionobject_p.h:202
#8  0x00007ffff421006b in QV4::FunctionObject::call(QV4::JSCallData const&) const (data=..., this=<optimized out>)
    at jsruntime/qv4jscall_p.h:112
---Type <return> to continue, or q <return> to quit---
#9  0x00007ffff421006b in QV4::Runtime::method_iteratorNext(QV4::ExecutionEngine*, QV4::Value const&, QV4::Value*) (engine=0x555555964df0, iterator=..., value=0x7fffd71b1688) at jsruntime/qv4runtime.cpp:783
#10 0x00007fffc8077970 in  ()
#11 0x0000000000000000 in  ()
Comment 4 Harald Sitter 2019-02-15 16:31:23 UTC
Wrong bug, ignore my previous comment (: