Bug 422739 - Applet dies and reloads infinitely after unplugging ethernet cable
Summary: Applet dies and reloads infinitely after unplugging ethernet cable
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-10 12:18 UTC by magiblot
Modified: 2024-12-23 18:23 UTC (History)
1 user (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 magiblot 2020-06-10 12:18:28 UTC
SUMMARY

Sometimes, when I unplug my ethernet cable, the plasma-nm applet in the system tray disappears and then tries to load again in an infinite loop.

Today I noticed plasmashell was logging the following for every load attempt:

> qrc:/plasma/plasmoids/org.kde.plasma.networkmanagement/contents/ui/main.qml:82: TypeError: Cannot read property 'expanded' of null
> file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/BusyIndicatorStyle.qml:39:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
In htop I can see a NetworkManager process being created and destroyed at the same rate as the applet. However, there are no signs of NetworkManager crashing, according to coredumpctl.

The only way to break the infinite loop is to run NetworkManager from the console. In particular, I run:

> sudo NetworkManager --no-daemon
After a few attempts (the command usually exits, probably due to there already being another NetworkManager process alive), NetworkManager stays running and so does the applet.

I wonder if there is something wrong with my system or the downstream software, since the applet keeps on trying to reach internet through the Ethernet port, which is listed as active even in ifconfig but is actually unplugged. I can overcome this by suspending and resuming the laptop.

Still, I find the scripting error at main.qml:82 very suspicious.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.15-arch1-1
OS Type: 64-bit

ADDITIONAL INFORMATION
This was already an issue in older versions of Plasma and Qt for at least the last four months.

In my system there is no main.qml, but main.qmlc. If there is a way to use/compile a custom main.qml, please let me know.
Comment 1 Jan Grulich 2020-06-10 12:39:46 UTC
This sounds like a NetworkManager issue. The applet will be shown only when NetworkManager is running.

Please report your issue to NetworkManager instead: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues
Comment 2 Ben Cooksley 2024-12-23 18:23:36 UTC
Bulk transfer as requested in T17796