Re: Sodipodi crashes when writing text or in the font selection dialog
Lauris Kaplinski <[email protected]>
| Newsgroups | gmane.comp.graphics.sodipodi |
|---|---|
| Message-ID | <[email protected]> |
Weird, it looks like generic memory corruption to me :-/ I.e. I cannot see, how it can be that def->family is NULL :-| Can you test it with valgrind? Best wishes, Lauris Kaplinski Shlomi Fish kirjutas L, 31.01.2004 kell 14:23: > On Sat, 31 Jan 2004, Mitsuru Oka wrote: > > > Hello. > > > > Shlomi Fish <[email protected]> wrote: > > > > > >Hi all! > > > > > >I installed some TTF fonts from my Windows directory, and now Sodipodi > > >segfaults when writing text or in the font selection dialog. > > > > 1. What font file/font-family did you use to produce the problem? > > (helvetica?) > > It's not relevant. Trying to type just one letter of text causes it to > crash, or invoking the font and text dialog. I don't know what font it > uses. > > > 2. If you create svg file which contain <text > > style="font-family:helvetica">text</text> and open the file, then > > will you see the problem? or, you need to edit the text in text > > editing mode to reproduce that? > > If I create an .svg file with: > > <<< > <text style="font-family:arial;fill:red" x="50" y="50">Hello</text> > >>> > > Then sodipodi crashes upon starting it with "Sodipodi test.svg". Here's > the stack trace: > > <<< > #0 0x40726883 in strlen () from /lib/i686/libc.so.6 > #1 0x407265c5 in strdup () from /lib/i686/libc.so.6 > #2 0x081122b7 in nr_type_register (def=0x8544308) at > nr-type-directory.c:197 > #3 0x08114333 in nr_type_read_xft_list () at nr-type-xft.c:126 > #4 0x08112417 in nr_type_directory_build () at nr-type-directory.c:276 > #5 0x0811211c in nr_type_directory_lookup_fuzzy (family=0x844b1b0 > "arial", > description=0x814f120 "extra light") at nr-type-directory.c:152 > #6 0x080b1eaf in sp_string_calculate_dimensions (string=0x844c1c0) > at sp-text.c:264 > #7 0x0809b3df in sp_object_invoke_build (object=0x844c1c0, > document=0x8220d88, repr=0x8449f18, cloned=0) at sp-object.c:326 > #8 0x080b3390 in sp_text_build (object=0x844b9b8, doc=0x8220d88, > repr=0x844c1c0) at sp-text.c:872 > #9 0x0809b3df in sp_object_invoke_build (object=0x844b9b8, > document=0x8220d88, repr=0x8449ef0, cloned=0) at sp-object.c:326 > #10 0x080a15cd in sp_group_build (object=0x821d0f4, document=0x8220d88, > repr=0x844b9b8) at sp-item-group.c:132 > #11 0x080a66a1 in sp_root_build (object=0x821d0f4, document=0x8220d88, > repr=0x8220d88) at sp-root.c:143 > #12 0x0809b3df in sp_object_invoke_build (object=0x821d0f4, > document=0x8220d88, repr=0x824ebf8, cloned=0) at sp-object.c:326 > #13 0x0809d1df in sp_object_repr_build_tree (document=0x8220d88, > repr=0x824ebf8) at sp-object-repr.c:57 > #14 0x080c4124 in sp_document_create (rdoc=0x0, uri=0xbffff644 "test.svg", > ---Type <return> to continue, or q <return> to quit--- > base=0x0, name=0x844aa20 "test.svg") at document.c:259 > #15 0x080c44af in sp_document_new (uri=0xbffff644 "test.svg") at > document.c:352 > #16 0x08064360 in sodipodi_document_new (uri=0xbffff644 "test.svg", > advertize=1, keepalive=1) at sodipodi.c:351 > #17 0x0808d840 in sp_main_gui (argc=2, argv=0xbffff244) at main.c:285 > #18 0x0808d6b2 in main (argc=2, argv=0xbffff244) at main.c:214 > #19 0x406c3c57 in __libc_start_main () from /lib/i686/libc.so.6 > >>> > > > > 3. Did you see the problem with other font? > > > > Like I said - it isn't very relevant. > > Regards, > > Shlomi Fish > > > > > >Here is a gdb dump: > > > > > ><<< > > >#0 0x4071f883 in strlen () from /lib/i686/libc.so.6 > > >#1 0x4071f5c5 in strdup () from /lib/i686/libc.so.6 > > >#2 0x081122b7 in nr_type_register (def=0x8606060) at nr-type-directory.c:197 > > >#3 0x08114333 in nr_type_read_xft_list () at nr-type-xft.c:126 > > >#4 0x08112417 in nr_type_directory_build () at nr-type-directory.c:276 > > >#5 0x0811211c in nr_type_directory_lookup_fuzzy ( > > > family=0x8479f48 "helvetica", description=0x814f120 "") > > > at nr-type-directory.c:152 > > >#6 0x080b1eaf in sp_string_calculate_dimensions (string=0x850dc90) > > > at sp-text.c:264 > > >#7 0x0809b3df in sp_object_invoke_build (object=0x850dc90, > > > document=0x8220d20, repr=0x845e7b0, cloned=0) at sp-object.c:326 > > >#8 0x080b2479 in sp_tspan_build (object=0x850d488, doc=0x8220d20, > > > repr=0x850dc90) at sp-text.c:450 > > >#9 0x0809b3df in sp_object_invoke_build (object=0x850d488, > > > document=0x8220d20, repr=0x824ec98, cloned=0) at sp-object.c:326 > > >#10 0x080b343a in sp_text_build (object=0x845ecd0, doc=0x8220d20, > > > repr=0x850d488) at sp-text.c:882 > > >#11 0x0809b3df in sp_object_invoke_build (object=0x845ecd0, > > > document=0x8220d20, repr=0x824ec70, cloned=0) at sp-object.c:326 > > >#12 0x080a17d6 in sp_group_child_added (object=0x821d11c, child=0x824ec70, > > > ref=0x8220d20) at sp-item-group.c:187 > > >#13 0x080a7061 in sp_root_child_added (object=0x821d11c, child=0x824ec70, > > > ref=0x824ec20) at sp-root.c:371 > > >---Type <return> to continue, or q <return> to quit--- > > >#14 0x0809b943 in sp_object_repr_child_added (repr=0x8175408, child=0x824ec70, > > > ref=0x824ec20, data=0x821d11c) at sp-object.c:377 > > >#15 0x080de2fc in sp_repr_add_child (repr=0x8175408, child=0x824ec70, > > > ref=0x824ec20) at repr.c:520 > > >#16 0x080df829 in sp_repr_append_child (repr=0x0, child=0x824ec70) > > > at repr-util.c:417 > > >#17 0x080c51f4 in sp_document_add_repr (document=0x8220d20, repr=0x824ec70) > > > at document.c:604 > > >#18 0x0808a7eb in sp_text_context_setup_text (tc=0x845e7b0) > > > at text-context.c:296 > > >#19 0x0808b350 in sptc_commit (imc=0x8463268, string=0x8460ad8 "H", > > > tc=0x847e318) at text-context.c:591 > > > > > >>>> > > > > > >I'm using the CVS sodipodi on Mandrake 9.2. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn