linuxmint / cinnamon-spices-applets

Applets for the Cinnamon desktop
http://cinnamon-spices.linuxmint.com
GNU General Public License v2.0
606 stars 510 forks source link

sysmonitor@orcus: glibtop warnings inside of .xsession-errors when using OpenVPN/tun0 #1663

Open nick-s-b opened 6 years ago

nick-s-b commented 6 years ago
 * Applet version/Build date (to be found in "About.." or in "metadata.json")
version: 1.6.2
last-edited: 1507250400

 * Cinnamon version (cinnamon --version)
Cinnamon 3.6.7

 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
Arch

 * Graphics hardware *and* driver used
Nvidia 390.25

 * Snippet or attachment of ~/.cinnamon/glass.log
 * Snippet or attachment of ~/.xsession-errors
see below.

* libgtop
2.38.0

Notify author of applet @orcuscz

Issue I've noticed that my .xsession-errors file gets really huge (100MB+) occasionally and it's filled with warnings such as this and these warnings repeat fast (as fast as the update for the applet is set):

glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/tx_packets": No such file or directory
glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/rx_bytes": No such file or directory
glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/tx_bytes": No such file or directory
glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/rx_errors": No such file or directory
glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/tx_errors": No such file or directory
glibtop(c=3203): [WARNING] Failed to open "/sys/class/net/tun0/statistics/collisions": No such file or directory

I've narrowed these warnings down to this applet. I have it set so it graphs network usage and for some reason, when I use OpenVPN to connect to work, it cannot parse statistics properly. However, it does show and graphs network usage without any issues. Anyway, I absolutely love this applet and it works really well except for this issue.

The root issue, as the warnings suggest, is that OpenVPN does not create links in /sys/class/net/. If I look inside of that directory, I only see lo, enp3s0 and wifi interfaces and tun0 is not there.

Steps to reproduce Use OpenVPN and watch .xsession-errors.

Expected behaviour Suppress errors please.

Other information I don't know if this is an issue with this applet or with libgtop. If it's a libgtop issue, please let me know so I can file bugs upstream.

Thank you for an amazing applet, guys.

OrcusCZ commented 6 years ago

Hi, sorry for taking long to reply, I didn't have much free time lately. I'll try to reproduce the issue and fix it or maybe come up with some workaround if it comes from glibtop.