hi:

I met a text update issue in CE4100 platform. When I first  call
clutter_text_set_text and then show stage, it's ok. But after the stage
displayed,a segment fault will be happened in re-draw phase if I call
clutter_text_set_text to change text again.(i tried use
clutter_text_set_editable, but still the same result) below is the stack
info(use clutter1.6.2):

#0  0xb791eee3 in MakeTextureMipmapLevels (gc=0x80757f0, psTex=0x80ef7e0,
ui32TexTarget=0) at makemips.c:1003
#1  0xb7918b13 in glGenerateMipmap (eTarget=3553) at fbo.c:3261
#2  0xb7d6ac9e in _cogl_texture_driver_gl_generate_mipmaps (gl_target=3553)
at ./driver/gles/cogl-texture-driver-gles.c:494
#3  0xb7dabbb0 in _cogl_texture_2d_pre_paint (tex=0x80ef4c0,
flags=COGL_TEXTURE_NEEDS_MIPMAP) at ./cogl-texture-2d.c:547
#4  0xb7da9f2c in _cogl_texture_pre_paint (handle=0x80ef4c0,
flags=COGL_TEXTURE_NEEDS_MIPMAP) at ./cogl-texture.c:816
#5  0xb7d9e3e6 in _cogl_pipeline_layer_pre_paint (layer=0x807d250) at
./cogl-pipeline.c:5666
#6  0xb7d9e41e in _cogl_pipeline_pre_paint_for_layer (pipeline=0x807c2d0,
layer_id=0) at ./cogl-pipeline.c:5675
#7  0xb7d7a5cb in _cogl_rectangles_validate_layer_cb (pipeline=0x807c2d0,
layer_index=0, user_data=0xbfe9414c)
    at ./cogl-primitives.c:618
#8  0xb7d96f43 in cogl_pipeline_foreach_layer (pipeline=0x807c2d0,
callback=0xb7d7a594 <_cogl_rectangles_validate_layer_cb>,
    user_data=0xbfe9414c) at ./cogl-pipeline.c:761
#9  0xb7d7a7f4 in _cogl_rectangles_with_multitexture_coords
(rects=0xbfe9419c, n_rects=1) at ./cogl-primitives.c:734
#10 0xb7d7ab70 in cogl_rectangle_with_texture_coords (x_1=1, y_1=6, x_2=15,
y_2=28, tx_1=0, ty_1=0.138671875,
    tx_2=0.013671875, ty_2=0.16015625) at ./cogl-primitives.c:872
#11 0xb7dbdd20 in emit_rectangles_through_journal (node=0x80ba380) at
cogl-pango-display-list.c:249
#12 0xb7dbdefd in _cogl_pango_display_list_render_texture
(material=0x807c2d0, color=0xbfe94290, node=0x80ba380)
    at cogl-pango-display-list.c:329
#13 0xb7dbe00a in _cogl_pango_display_list_render (dl=0x80c2a40,
color=0xbfe9435c, glyph_material=0x807c2d0,
    solid_material=0x807c360) at cogl-pango-display-list.c:364
#14 0xb7dbed7a in cogl_pango_render_layout_subpixel (layout=0x807d508, x=0,
y=0, color=0xbfe9435c, flags=0)
    at cogl-pango-render.c:302
#15 0xb7dbee24 in cogl_pango_render_layout (layout=0x807d508, x=0, y=0,
color=0xbfe9435c, flags=0) at cogl-pango-render.c:341
#16 0xb7d51689 in clutter_text_paint (self=0x80b6190) at
./clutter-text.c:1921
#17 0xb799d02d in g_cclosure_marshal_VOID__VOID () from
/lib/libgobject-2.0.so.0
#18 0xb7983bef in g_type_class_meta_marshal () from /lib/libgobject-2.0.so.0
#19 0xb79838d0 in g_closure_invoke () from /lib/libgobject-2.0.so.0
#20 0xb799c706 in signal_emit_unlocked_R () from /lib/libgobject-2.0.so.0
#21 0xb799b728 in g_signal_emit_valist () from /lib/libgobject-2.0.so.0
#22 0xb799ba1c in g_signal_emit () from /lib/libgobject-2.0.so.0
#23 0xb7cca1f2 in clutter_actor_paint (self=0x80b6190) at
./clutter-actor.c:2695
#24 0xb7e366b0 in g_list_foreach () from /lib/libglib-2.0.so.0
#25 0xb7d0ee66 in clutter_group_real_paint (actor=0x80b2138) at
./clutter-group.c:281
#26 0xb7d39661 in clutter_stage_paint (self=0x80b2138) at
./clutter-stage.c:446
#27 0xb799d02d in g_cclosure_marshal_VOID__VOID () from
/lib/libgobject-2.0.so.0
#28 0xb7983bef in g_type_class_meta_marshal () from /lib/libgobject-2.0.so.0
#29 0xb79838d0 in g_closure_invoke () from /lib/libgobject-2.0.so.0
#30 0xb799c706 in signal_emit_unlocked_R () from /lib/libgobject-2.0.so.0
#31 0xb799b728 in g_signal_emit_valist () from /lib/libgobject-2.0.so.0
#32 0xb799ba1c in g_signal_emit () from /lib/libgobject-2.0.so.0
#33 0xb7cca1f2 in clutter_actor_paint (self=0x80b2138) at
./clutter-actor.c:2695
#34 0xb7d394ab in _clutter_stage_do_paint (stage=0x80b2138, clip=0x0) at
./clutter-stage.c:385
#35 0xb7cc33eb in _clutter_stage_egl_redraw (stage_egl=0x80ad8c0,
stage=0x80b2138) at ./egl/clutter-stage-egl.c:395
#36 0xb7cc25a0 in clutter_backend_egl_redraw (backend=0x8051410,
stage=0x80b2138) at ./egl/clutter-backend-egl.c:521
#37 0xb7ce8f13 in _clutter_backend_redraw (backend=0x8051410,
stage=0x80b2138) at ./clutter-backend.c:352
#38 0xb7d18478 in _clutter_do_redraw (stage=0x80b2138) at
./clutter-main.c:260
#39 0xb7d3a405 in _clutter_stage_do_update (stage=0x80b2138) at
./clutter-stage.c:833
#40 0xb7d1c708 in clutter_clock_dispatch (source=0x80b1f28, callback=0,
user_data=0x0) at ./clutter-master-clock.c:384
#41 0xb7e39779 in g_main_dispatch () from /lib/libglib-2.0.so.0
#42 0xb7e3acd1 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0xb7e3b1e1 in g_main_context_iterate () from /lib/libglib-2.0.so.0
#44 0xb7e3ba1c in g_main_loop_run () from /lib/libglib-2.0.so.0
#45 0xb7d19504 in clutter_main () at ./clutter-main.c:944
#46 0x08048ccc in main () at sampletest.c:112

I also tested clutter1.4.2 version, and even tried unref the old
clutter-text and then new one to set text, but still segment fault in same
place. is it a bug? and is there any other approach to update a text in
clutter?  thanks.

best wishes
nortens
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to