Re: TEI/TEI lite support

Dave Malcolm <[email protected]> 07 Feb 2004 18:33:40 +0000
Newsgroups gmane.editors.conglomerate.general
Message-ID <1076178819.5308.140.camel@shirehorse1>
On Sat, 2004-02-07 at 15:41, Roberto Rosselli Del Turco wrote:
> Il sab, 2004-02-07 alle 15:34, Dave Malcolm ha scritto:
> > On Sat, 2004-02-07 at 09:15, Roberto Rosselli Del Turco wrote:
> > > 
> > > ** (conglomerate:3660): CRITICAL **: file cong-text-cache.c: line 168
> > > (cong_text_cache_set_input_attributes): assertion `attr_list' failed
> > 
> > Does this happen on loading the file, or when editing it? (I believe
> > this function only gets called when highlighting text)  
> 
> When loading the file, conge segfaults before it has a chance to show
> anything.
> 
> > Is it fatal?  Please post a stack trace if possible.
> 
> Yes. Does the "(no debugging symbols found)" mean that I have to
> configure with --debug on (or something like that) to have more
> information? here's the trace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0807f087 in cong_editor_line_fragments_get_area_list ()
> (gdb) bt
> #0  0x0807f087 in cong_editor_line_fragments_get_area_list ()
> #1  0x0807f91c in cong_editor_node_generate_line_areas_recursive ()
> #2  0x0807a7a2 in cong_editor_area_flow_holder_inlines_get_final_node ()
> #3  0x0807ef5a in cong_editor_child_policy_inline_new ()
> #4  0x0807eadc in cong_editor_child_policy_insert_areas_for_node ()
> #5  0x08085069 in cong_editor_widget3_node_should_have_editor_node ()
> #6  0x08084efa in cong_editor_widget3_get_preedit_data ()
> #7  0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #8  0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #9  0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #10 0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #11 0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #12 0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #13 0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #14 0x08084f19 in cong_editor_widget3_get_preedit_data ()
> #15 0x08084fa4 in cong_editor_widget3_get_preedit_data ()
> #16 0x08083218 in cong_editor_widget3_construct ()
> #17 0x08083307 in cong_editor_widget3_new ()
> #18 0x0809ad67 in cong_primary_window_add_doc ()
> #19 0x0809b2bb in cong_primary_window_new ()
> #20 0x0808934d in open_document_do ()
> #21 0x0808946c in open_document ()
> #22 0x080894c7 in toolbar_callback_open ()

That's a well known bug, there are about 20 duplicates in Bugzilla, and
it's a hard problem to fix (the WidgetPlayground branch in CVS is my
work towards this, and should let you load, but not edit the file)

The problem is that a structural tag has been found inside a span tag,
and the code doesn't know how to deal with it.

You may be able to work around the problem by hacking the dispspec, or
by hacking the file.


> 
> Ciao