Using GUPnPContextManager throws assertion in gssdp_client_get_server_id
- From: Sascha Dierberg <dierberg dresearch-fe de>
- To: gupnp-list gnome org
- Subject: Using GUPnPContextManager throws assertion in gssdp_client_get_server_id
- Date: Wed, 05 Jun 2013 14:13:12 +0200
Hello list, hello Jens,
I am using GUPnPContextManager and dont know if I've found a bug or did it wrong:
In signal handler "available" I create a :
root_device = gupnp_root_device_new (p, dev, "/var/tmp" );
gupnp_root_device_set_available (root_device, TRUE);
gupnp_context_manager_manage_root_device(mgr, root_device);
In signal handler "unavailable" the GUPnPContext p is freed with g_object_unref(p);
Later a timer tries to send signals on a still present context:
#1 0x4016a968 in gssdp_client_get_server_id (client=0x644f0)
at gssdp-client.c:669
#2 0x4016db3c in resource_alive (resource=0x67c50)
at gssdp-resource-group.c:1044
#3 0x400b01cc in g_list_foreach (list=<value optimized out>,
func=0x4016daf4 <resource_alive>, user_data=0x0) at glist.c:949
#4 0x4016e208 in send_announcement_set (user_data=<value optimized out>)
at gssdp-resource-group.c:511
#5 resource_group_timeout (user_data=<value optimized out>)
at gssdp-resource-group.c:731
#6 0x400b2214 in g_timeout_dispatch (source=0x731b8,
callback=0x4016e1c4 <resource_group_timeout>, user_data=0x4016a358)
at gmain.c:4413
So we got:
** (process:7329): CRITICAL **: gssdp_client_get_server_id: assertion `GSSDP_IS_CLIENT (client)' failed
Whats wrong? Thank you for your help in advance.
Best regards - Sascha
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]