40.alpha: GWeather-CRITICAL **: 14:09:48.086: gweather_info_set_enabled_providers: assertion 'info->application_id != NULL' failed
I see this runtime warning on the calendar factory console when have ported the code to work with the 40.alpha release:
(evolution-calendar-factory:123226): GWeather-CRITICAL **: 14:09:48.086: gweather_info_set_enabled_providers: assertion 'info->application_id != NULL' failed
at g_logv() at gmessages.c:1299
by g_log() at gmessages.c:1454
by g_return_if_fail_warning() at gmessages.c:2850
by gweather_info_set_enabled_providers() at gweather-weather.c:2180
by gweather_info_set_property() at gweather-weather.c:2299
by object_set_property() at gobject.c:1716
by g_object_new_internal() at gobject.c:2141
by g_object_new_valist() at gobject.c:2421
by g_object_new() at gobject.c:1929
by _gweather_info_new_clone() at gweather-weather.c:2438
by parseForecastXml() at weather-iwin.c:136
by iwin_finish() at weather-iwin.c:336
by soup_session_process_queue_item() at soup-session.c:2046
by async_run_queue() at soup-session.c:2085
by idle_run_queue() at soup-session.c:2113
by g_idle_dispatch() at gmain.c:5768
by g_main_dispatch() at gmain.c:3322
by g_main_context_dispatch() at gmain.c:3990
by g_main_context_iterate() at gmain.c:4062
by g_main_loop_run() at gmain.c:4253
by dbus_server_run_server() at e-dbus-server.c:319
by ffi_call_unix64()
by ffi_call()
by g_cclosure_marshal_generic_va() at gclosure.c:1617
by g_type_class_meta_marshalv() at gclosure.c:1034
by _g_closure_invoke_va() at gclosure.c:873
by g_signal_emit_valist() at gsignal.c:3413
by g_signal_emit() at gsignal.c:3556
by e_dbus_server_run() at e-dbus-server.c:518
by main() at evolution-calendar-factory.c:106
by __libc_start_main()
by _start()
As you can see, it's an internal code of libgweather, with which I cannot do anything.
Note I do set:
gweather_info_set_application_id (source->priv->info, "org.gnome.Evolution-data-server");
gweather_info_set_contact_info (source->priv->info, "some email");
manually on the original weather-info structure, because the calendar factory has no GApplication ID on its own.
You may consider copying also the contact_info
in the _gweather_info_new_clone()
, otherwise you break the constraints elsewhere in your code.