Re: libchamplain 0.8 python bindings



 Am 21.10.2010 10:15, schrieb Lorenzo Masini:
I couldn’t create GtkChamplainEmbed object, but it looks like its a
PyClutter problem, I have problems with other Clutter parts in Ubuntu
10.10 too.
I don't know if this matters: did you installed the package
gir1.0-clutter-gtk-0.10?

Cheers
Lorenzo
No, I didn’t, but it doesn’t help.

The problem can be cut down to two lines and ends with a segfault:
    from gi.repository import GtkChamplain
    self.embed = GtkChamplain.Embed()
(bla.py:17907): Clutter-WARNING **: Unable to create a new stage: the glx backend does not support multiple stages.
bla.py:2: Warning: invalid (NULL) pointer instance
  self.embed = GtkChamplain.Embed()
bla.py:2: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  self.embed = GtkChamplain.Embed()

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): ClutterGLX-CRITICAL **: Unable to find suitable GL visual.

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

(bla.py:17907): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff3a73306 in _cogl_material_flush_base_gl_state (handle=<value optimized out>, options=<value optimized out>)
    at ../../../../../clutter/cogl/cogl/cogl-material.c:1635
#2  _cogl_material_flush_gl_state (handle=<value optimized out>, options=<value optimized out>)
    at ../../../../../clutter/cogl/cogl/cogl-material.c:1687
#3  0x00007ffff3a673bb in cogl_create_context () at ../../../../../clutter/cogl/cogl/cogl-context.c:144
#4  _cogl_context_get_default () at ../../../../../clutter/cogl/cogl/cogl-context.c:211
#5  0x00007ffff3a7373b in cogl_material_new () at ../../../../../clutter/cogl/cogl/cogl-material.c:147
#6  0x00007ffff3a5b94a in clutter_texture_init (self=0xb60100) at ../../../clutter/clutter-texture.c:1106
#7  0x00007ffff5f6c648 in g_type_create_instance () from /usr/lib/libgobject-2.0.so.0
#8  0x00007ffff5f508c9 in ?? () from /usr/lib/libgobject-2.0.so.0
#9  0x00007ffff5f4e971 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff5f4f3ed in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff5f4f631 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff187bd38 in create_scale (view=<value optimized out>) at ./champlain-view.c:1510
#13 0x00007ffff1880f93 in champlain_view_init (view=0xac2090) at ./champlain-view.c:1642
#14 0x00007ffff5f6c825 in g_type_create_instance () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff5f508c9 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff5f4ef1a in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff5f4f64c in g_object_new () from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff3edeb54 in gtk_champlain_embed_init (embed=0xa2a140) at ./gtk-champlain-embed.c:242
#19 0x00007ffff5f6c825 in g_type_create_instance () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff5f508c9 in ?? () from /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff5f4ef1a in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff449d4ca in pygobject_constructv (self=0x7ffff7e92e10, n_parameters=0, parameters=0x0)
    at /build/buildd/pygobject-2.21.5/gobject/gobjectmodule.c:2256
#23 0x00007ffff44a4ce0 in pygobject_init (self=0x7ffff7e92e10, args=<value optimized out>, kwargs=0x0)
    at /build/buildd/pygobject-2.21.5/gobject/pygobject.c:1165
#24 0x000000000046cd9f in type_call (type=0xb26770, args=(), kwds=0x0) at ../Objects/typeobject.c:742
#25 0x000000000041c9d7 in PyObject_Call (func=
    <GObjectMeta(bin=<property at remote 0x7fffebf2d520>, __module__='gi.repository.GtkChamplain', get_view=<function at remote 0x7ffff7e502a8>, new=<classmethod at remote 0x7fffebf29b40>, __gtype__=<gobject.GType at remote 0x7ffff7eef408>, __info__=<gi.ObjectInfo at remote 0x7ffff7e4d4d0>, __doc__=None, priv=<property at remote 0x7fffebf2d578>) at remote 0xb26770>, 
---Type <return> to continue, or q <return> to quit---
    arg=<unknown at remote 0x1601>, kw=<unknown at remote 0xb5b1d4>) at ../Objects/abstract.c:2492
#26 0x00000000004a48c8 in do_call (f=Frame 0x919060, for file bla.py, line 2, in <module> (), 
    throwflag=<value optimized out>) at ../Python/ceval.c:3968
#27 call_function (f=Frame 0x919060, for file bla.py, line 2, in <module> (), throwflag=<value optimized out>)
    at ../Python/ceval.c:3773
#28 PyEval_EvalFrameEx (f=Frame 0x919060, for file bla.py, line 2, in <module> (), throwflag=<value optimized out>)
    at ../Python/ceval.c:2412
#29 0x00000000004a6bd1 in PyEval_EvalCodeEx (co=0x7ffff7ef5990, globals=<value optimized out>, 
    locals=<value optimized out>, args=0x0, argcount=<value optimized out>, kws=<value optimized out>, kwcount=0, defs=
    0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3000
#30 0x00000000004a6ca2 in PyEval_EvalCode (co=0x8006, globals=<unknown at remote 0x1601>, locals=
    <unknown at remote 0xb5b1d4>) at ../Python/ceval.c:541
#31 0x00000000004c702e in run_mod (fp=<value optimized out>, filename=0x7fffffffe606 "bla.py", 
    start=<value optimized out>, globals=<value optimized out>, locals=<value optimized out>, closeit=1, flags=
    0x7fffffffe220) at ../Python/pythonrun.c:1351
#32 PyRun_FileExFlags (fp=<value optimized out>, filename=0x7fffffffe606 "bla.py", start=<value optimized out>, 
    globals=<value optimized out>, locals=<value optimized out>, closeit=1, flags=0x7fffffffe220)
    at ../Python/pythonrun.c:1337
#33 0x00000000004c7244 in PyRun_SimpleFileExFlags (fp=<value optimized out>, filename=0x7fffffffe606 "bla.py", closeit=1, 
    flags=0x7fffffffe220) at ../Python/pythonrun.c:941
#34 0x00000000004180c1 in Py_Main (argc=-135344000, argv=<value optimized out>) at ../Modules/main.c:577
#35 0x00007ffff69dad8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, 
    ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fffffffe338) at libc-start.c:226
#36 0x00000000004172c9 in _start ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]