GNOME Bugzilla – Bug 692922
Broken error reporting in vpn_get_plugins()
Last modified: 2021-06-09 16:13:57 UTC
I botched my non-root installation of NetworkManager's VPN plugins, and saw this: (gnome-control-center:21892): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Cannot load the VPN plugin which provides the service 'org.freedesktop.NetworkManager.openvpn'. (gnome-control-center:21892): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Cannot load the VPN plugin which provides the service 'org.freedesktop.NetworkManager.pptp'. (gnome-control-center:21892): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Cannot load the VPN plugin which provides the service 'org.freedesktop.NetworkManager.vpnc'. The culprit is the loop to load the VPN plugins:
+ Trace 231469
The error message should be created after making a list of the failed plugins, or bail out instantly (or better, just report the error on the command-line right there, seeing as we won't use the error message in the interface).
*** Bug 698215 has been marked as a duplicate of this bug. ***
I'm no longer able to reproduce bug 698215 with gnome-control-center 3.8.2.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new bug report at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/ Thank you for your understanding and your help.