After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692922 - Broken error reporting in vpn_get_plugins()
Broken error reporting in vpn_get_plugins()
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Network
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
: 698215 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-31 09:35 UTC by Bastien Nocera
Modified: 2021-06-09 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2013-01-31 09:35:38 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:
  • #0 g_logv
    at gmessages.c line 971
  • #1 g_log
    at gmessages.c line 1007
  • #2 g_set_error
    at gerror.c line 566
  • #3 vpn_get_plugins
    at vpn-helpers.c line 108
  • #4 select_vpn_type
    at net-connection-editor.c line 733
  • #5 connection_type_activated
    at net-connection-editor.c line 821
  • #6 g_cclosure_marshal_VOID__OBJECTv
    at gmarshal.c line 1312
  • #7 _g_closure_invoke_va
    at gclosure.c line 840
  • #8 g_signal_emit_valist
    at gsignal.c line 3225
  • #9 g_signal_emit
    at gsignal.c line 3370
  • #10 egg_list_box_select_and_activate
    at egg-list-box.c line 743
  • #11 egg_list_box_real_button_release_event
    at egg-list-box.c line 883
  • #12 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #13 g_type_class_meta_marshalv
    at gclosure.c line 997
  • #14 _g_closure_invoke_va
    at gclosure.c line 840
  • #15 g_signal_emit_valist
    at gsignal.c line 3225
  • #16 g_signal_emit
    at gsignal.c line 3370
  • #17 gtk_widget_event_internal
    at gtkwidget.c line 6311
  • #18 gtk_widget_event
    at gtkwidget.c line 5968
  • #19 propagate_event_up
    at gtkmain.c line 2393
  • #20 propagate_event
    at gtkmain.c line 2501
  • #21 gtk_propagate_event
    at gtkmain.c line 2536
  • #22 gtk_main_do_event
    at gtkmain.c line 1716
  • #23 _gdk_event_emit
    at gdkevents.c line 69
  • #24 gdk_event_source_dispatch
    at gdkeventsource.c line 358
  • #25 g_main_dispatch
    at gmain.c line 3048
  • #26 g_main_context_dispatch
    at gmain.c line 3624
  • #27 g_main_context_iterate
    at gmain.c line 3695
  • #28 g_main_context_iteration
    at gmain.c line 3756
  • #29 g_application_run
    at gapplication.c line 1620
  • #30 main
    at control-center.c line 294

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).
Comment 1 Bastien Nocera 2013-04-22 16:00:34 UTC
*** Bug 698215 has been marked as a duplicate of this bug. ***
Comment 2 Jeremy Bicha 2013-05-17 14:28:38 UTC
I'm no longer able to reproduce bug 698215 with gnome-control-center 3.8.2.
Comment 3 André Klapper 2021-06-09 16:13:57 UTC
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.