gupnp and python
- From: Andrzej Bieniek <andyhelp gmail com>
- To: gupnp-list gnome org
- Subject: gupnp and python
- Date: Sat, 09 Feb 2013 00:15:02 +0000
Hi,
There are two patches [1][2] I had apply to get gupnp partially working
with python, see examples in [3]. I was able to send UPnP commands, but
unable to read any status/values (due to segfault workaround in second
patch).
When I remove patch 2 I get segfault with the callstack below.
(running on Ubuntu 12.10)
Is there a known configuration where gupnp works with python?
I'm not sure if bug is in gupnp or somewhere else.
Is there something I can run/try to narrow down and potentially fix the
problem?
It crashes on GetVolume call:
--- cut demo.py ---
if name == "GetVolume":
data = {"InstanceID": "0", "Channel": "Master"}
data_out = {"CurrentVolume": "" }
service.send_action_hash(name, data, data_out)
--- cut ---
gupnp-python$ gdb --args /usr/bin/python demo.py
[..]
Program received signal SIGSEGV, Segmentation fault.
0xb78f94e1 in g_hash_table_foreach () from
/lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0xb78f94e1 in g_hash_table_foreach () from
/lib/i386-linux-gnu/libglib-2.0.so.0
#1 0xb74ff98b in gupnp_service_proxy_end_action_hash () from
/usr/lib/libgupnp-1.0.so.4
#2 0xb74ffaf7 in gupnp_service_proxy_send_action_hash () from
/usr/lib/libgupnp-1.0.so.4
#3 0xb74ffb7b in gupnp_service_proxy_send_action_hash_gi () from
/usr/lib/libgupnp-1.0.so.4
#4 0xb776148e in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
[..]
[1]
https://github.com/andyhelp/pkg-gupnp/blob/master/debian/patches/0001-python_fix_functions_with_gerror_param.patch
[2]
https://github.com/andyhelp/pkg-gupnp/blob/master/debian/patches/0002-workaround_crash_due_to_not_valid_out_hash_param.patch
[3] https://github.com/andyhelp/gupnp-python
Thanks.
Andrzej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]