Bug 360285 - If I plug in my phone on the USB socket, the full panel freezes
Summary: If I plug in my phone on the USB socket, the full panel freezes
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: VHI major
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 08:12 UTC by Olivier Churlaud
Modified: 2016-04-17 21:29 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Churlaud 2016-03-09 08:12:56 UTC
When I plug my phone on the USB socket, I can see the border of the Device Notifier appear and then the full panel freezes.

Run from source in gdb: here is the backtrace..

#0  0x00007ffff0c8e777 in statfs64 () from /usr/lib/libc.so.6
#1  0x00007ffff0c8e7e6 in statvfs64 () from /usr/lib/libc.so.6
#2  0x00007ffff47404af in KDiskFreeSpaceInfo::freeSpaceInfo (path=...) at /home/olivier/Projets/kde/src/frameworks/kio/src/core/kdiskfreespaceinfo.cpp:126
#3  0x00007fff2a3c8278 in ?? () from /usr/lib/qt/plugins/plasma/dataengine/plasma_engine_soliddevice.so
#4  0x00007fff2a3c91d3 in ?? () from /usr/lib/qt/plugins/plasma/dataengine/plasma_engine_soliddevice.so
#5  0x00007ffff5ca0c79 in Plasma::DataEnginePrivate::internalUpdateSource (this=0x39e0ec0, source=0x422c0d0)
    at /home/olivier/Projets/kde/src/frameworks/plasma-framework/src/plasma/dataengine.cpp:479
#6  0x00007ffff5ca171c in Plasma::DataEngine::qt_static_metacall (_o=0xd5fb30, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffffffd180)
    at /home/olivier/Projets/kde/build/frameworks/plasma-framework/src/plasma/moc_dataengine.cpp:143
#7  0x00007ffff1aa710a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff5c9d36b in Plasma::DataContainer::updateRequested (this=0x422c0d0, _t1=0x422c0d0)
    at /home/olivier/Projets/kde/build/frameworks/plasma-framework/src/plasma/moc_datacontainer.cpp:247
#9  0x00007ffff5ca7439 in Plasma::SignalRelay::timerEvent (this=0x44408b0, event=0x7fffffffd4a0)
    at /home/olivier/Projets/kde/src/frameworks/plasma-framework/src/plasma/private/datacontainer_p.cpp:154
#10 0x00007ffff1aa7f83 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff23e8fcc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007ffff23ee4a6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff1a789ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#14 0x00007ffff1ace15d in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#15 0x00007ffff1ace661 in ?? () from /usr/lib/libQt5Core.so.5
#16 0x00007fffec9bad87 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x00007fffec9bafe0 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007fffec9bb08c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007ffff1acf33f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#20 0x00007ffff1a7637a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#21 0x00007ffff1a7e33c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#22 0x0000000000421abf in main (argc=1, argv=0x7fffffffdd18) at /home/olivier/Projets/kde/src/kde/workspace/plasma-workspace/shell/main.cpp:139


Reproducible: Always
Comment 1 Kai Uwe Broulik 2016-03-09 10:08:16 UTC
Blocks in stat from KDiskFreeSpaceInfo, re-assigning to kio
Comment 2 Olivier Churlaud 2016-03-10 07:27:04 UTC
I changed th importance as i cannot usb connections anymore.
Comment 3 Olivier Churlaud 2016-03-13 09:12:52 UTC
After some debugging: the issue appear in /home/olivier/Projets/kde/src/frameworks/kio/src/core/kdiskfreespaceinfo.cpp:126:

    if (!statvfs(QFile::encodeName(pathArg).constData(), &statvfs_buf)) { }

when the path is my unconnected nfs folder..
Comment 4 Olivier Churlaud 2016-03-13 09:20:41 UTC
it's not a kio problem, but Linux as well: ls /my/nfs hangs has well.

I close this.