Skip to content

Kerning Woes #1626

Open
Open

Description

@frank-trampe
  • The Kern by Classes window is too narrow.
  • Running autokern somewhere causes a crash.
frank@Lake-1:/var/tmp/fff/ff3/fontforge/fontforgeexe$ ./ffdbg 
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/lt-fontforge...done.
(gdb) run
Starting program: /var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/lt-fontforge 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 17:11 CDT  5-Aug-2014-ML-D.
 Based on source from git with hash:91d6f1aa36f12738a383f80ad06c95d66c872205
Failed to open hotkey definition file: /var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/share/fontforge/hotkeys/default
no xdefs_filename!
TESTING: getPixmapDir:/var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/share/fontforge/pixmaps
TESTING: getShareDir:/var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/share/fontforge
TESTING: GResourceProgramDir:/var/tmp/fff/ff3/fontforge/fontforgeexe/.libs
trying default theme:/var/tmp/fff/ff3/fontforge/fontforgeexe/.libs/share/fontforge/pixmaps/resources
strippedname:/var/tmp/fff/ff3/snippet-lib.ufo
SplineFontPieceMeal() going unhinted...
strippedname:/var/tmp/fff/space/issue_719_test_1.sfd
SplineFontPieceMeal() going unhinted...
SplineFontPieceMeal() going unhinted...
MVRefreshValues() **** setting width to 635
MVTextChanged(top) p:0x9de2e0 ret:Av
MVTextChanged(done processing) p:0x9de760 ret:Av
MVRefreshValues() **** setting width to 635
MVRefreshValues() **** setting width to 516
selectUserChosenWordListGlyphs(top)
SplineFontPieceMeal() going unhinted...
SplineFontPieceMeal() going unhinted...
MVRefreshValues() **** setting width to 1000
MVTextChanged(top) p:0xc08600 ret:AV
MVTextChanged(done processing) p:0xba2de0 ret:AV
MVRefreshValues() **** setting width to 1000
MVRefreshValues() **** setting width to 1000
selectUserChosenWordListGlyphs(top)

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(process:19096): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_setspecific': Invalid argument.  Aborting.

Program received signal SIGABRT, Aborted.
0x00007ffff720f4f5 in __GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
#0  0x00007ffff720f4f5 in __GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff7212c5b in __GI_abort () at abort.c:91
#2  0x00007ffff5e053e3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5e6e9b5 in g_private_set ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5e39f23 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff5e3a172 in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff36612b3 in pango_layout_set_text (layout=0xd268b0, 
    text=<optimized out>, length=<optimized out>)
    at /build/buildd/pango1.0-1.30.0/./pango/pango-layout.c:1072
#7  0x00007ffff68e75b2 in _GXPDraw_DoText8 (w=0xcd3e10, x=0, y=0, 
    text=0x9d04e0 "p\303\300", cnt=-1, col=0, drawit=tf_rect, 
    arg=0x7fffffff93d0) at gxcdraw.c:1005
#8  0x00007ffff686e804 in GDrawGetText8Bounds (gw=0xcd3e10, 
    text=0x9d04e0 "p\303\300", cnt=-1, bounds=0x7fffffff9430) at gdrawtxt.c:129
#9  0x00007ffff68ee898 in GME_RecalcFH (gme=0xccf1d0) at gmatrixedit.c:745
#10 0x00007ffff68f5d83 in GMatrixEditSet (g=0xccf1d0, data=0xdd88c0, rows=5, 
    copy_it=0) at gmatrixedit.c:2164
#11 0x00007ffff79917fe in PSTKD_AutoKern (g=0xcd9a60, e=0x7fffffff9600)
    at lookupui.c:3526
#12 0x00007ffff685cec4 in GButtonInvoked (b=0xcd9a60, ev=0x7fffffff98a0)
    at gbuttons.c:255
---Type <return> to continue, or q <return> to quit---q
Quit

(gdb) where
#0  __strchr_sse42 () at ../sysdeps/x86_64/multiarch/strchr.S:135
#1  0x00007ffff797536a in KCD_UpdateGlyphFromName (kcd=0xa13070, which=0, 
    glyphname=0x0) at kernclass.c:649
#2  0x00007ffff797b709 in KCD_PickGlyphsForClass (g=0xa4e9c0, r=0, c=0)
    at kernclass.c:2133
#3  0x00007ffff68f1dac in GMatrixEdit_StartSubGadgets (gme=0xa4e9c0, r=0, c=0, 
    event=0x7fffffffbc30) at gmatrixedit.c:1440
#4  0x00007ffff68f22c4 in GMatrixEdit_MouseEvent (gme=0xa4e9c0, 
    event=0x7fffffffbc30) at gmatrixedit.c:1494
#5  0x00007ffff68f3d02 in matrixeditsub_e_h (gw=0xa4e2b0, event=0x7fffffffbc30)
    at gmatrixedit.c:1725
'#6  0x00007ffff6867f18 in _GWidget_Container_eh (gw=0xa4e2b0, 
    event=0x7fffffffbc30) at gcontainer.c:403
#7  0x00007ffff68df86c in dispatchEvent (gdisp=0x681940, event=0x7fffffffbf10)
    at gxdraw.c:3473
#8  0x00007ffff68dfe16 in GXDrawEventLoop (gd=0x681940) at gxdraw.c:3581
#9  0x00007ffff686c7c9 in GDrawEventLoop (gdisp=0x681940) at gdraw.c:789
#10 0x00007ffff7a671f5 in fontforge_main (argc=1, argv=0x7fffffffe248)
    at startui.c:1350
#11 0x0000000000400814 in main (argc=1, argv=0x7fffffffe248) at main.c:39
  • Dragging the letter forms in that window updates the value above but not the value in the table (until one clicks the table). (Frank Trampe says this seems working as intended)

Activity

  1. adrientetar commented on Sep 4, 2014

    @adrientetar
    Member

    The first backtrace looks rather obfuscated… do you know how to repro?

  2. frank-trampe commented on Sep 4, 2014

    @frank-trampe
    ContributorAuthor

    No. I stumbled onto this when looking for something else.

    On the flip side, I don't expect it to be particularly difficult to figure out how GME_RecalcFH either uses str uninitialized or after freeing it.

  3. frank-trampe commented on Sep 4, 2014

    @frank-trampe
    ContributorAuthor

    After looking at the function more closely, I don't see a possible problem of either variety. So perhaps FindMi or MD_Text is returning bad data? In any case, we'll be alert to similar problems in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions