View Issue Details

IDProjectCategoryView StatusLast Update
0004426Spring engineGeneralpublic2014-06-14 21:52
Reportercleanrock Assigned TojK  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version97.0.1+git 
Target Version98.0 
Summary0004426: FT_Set_Pixel_Sizes failed
DescriptionCrashed when i joined a zk game today:
Error: [ErrorMessageBox][1] msg="/usr/share/fonts/misc/18x18ja.pcf.gz: FT_Set_Pixel_Sizes failed: invalid pixel size" IsMainThread()=1 fromMain=0

May be a local problem of mine but posting it here in case its not.
Additional InformationSpring 97.0.1-18-gf1dd749 develop
Zero-K v1.2.6.12
http://zero-k.info/Battles/Detail/267434
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
bt.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

jK

2014-06-09 17:10

developer   ~0013240

can you get a proper stacktrace?
I don't understand how the throw wasn't caught.

cleanrock

2014-06-09 18:16

reporter   ~0013241

I get this problem with the static DLed -18 engine, not my locally built -18.
Attached log with bt and bt full, i guess its an unprotected (no catch) branch.

cleanrock

2014-06-10 16:50

reporter   ~0013258

jk,
Do you know why the static build use /usr/share/fonts/misc/18x18ja.pcf.gz and my locally built spring use /usr/share/fonts/TTF/DejaVuSans.ttf ?
This looks like a possible problem of downloaded engines.

abma

2014-06-10 17:33

administrator   ~0013259

Last edited: 2014-06-10 17:38

fontconfig / freetype is static linked...

possible solution is to link them shared, but idk how "stable" their api + abi is.

maybe updating them helps, too, idk. edit: no "stable" update available.

jK

2014-06-10 17:37

developer   ~0013260

yep,
Spring never explicit uses /usr/share/fonts/misc/18x18ja.pcf.gz, it's that the requested (and game/archive included font) doesn't contain the requested unicode glyph. And that's what Spring uses fontconfig for, instead of displaying the not found glyph (regularly a box), it asks fontconfig to find other fonts that may contain it. This is what browsers do, too.
And the order in which fontconfig gives such fallback fonts isn't predictable esp. not across versions & static vs. shared linked.

cleanrock

2014-06-10 18:15

reporter   ~0013261

Fix for the uncatched exception should be included in 98 imo, looks like a crash exploit.

abma

2014-06-11 02:05

administrator   ~0013263

> Fix for the uncatched exception should be included in 98 imo, looks like a crash exploit.

i can't reproduce it, so would be great if you could provide more info :-)

is /usr/share/fonts/misc/18x18ja.pcf.gz broken? doesn't it provide a pixel size of 14?

what happens if you rename/remove this file?

cleanrock

2014-06-11 21:59

reporter   ~0013270

abma,
Try with 18x18ja.pcf.gz (xorg-fonts-misc) installed and run the demo with static -18 spring.
Anyway, jk said he will fix this (catch content_error in this path).

Issue History

Date Modified Username Field Change
2014-06-09 15:51 cleanrock New Issue
2014-06-09 15:51 cleanrock File Added: infolog.txt
2014-06-09 16:16 cleanrock Additional Information Updated
2014-06-09 17:10 jK Note Added: 0013240
2014-06-09 18:16 cleanrock Note Added: 0013241
2014-06-09 18:16 cleanrock File Added: bt.txt
2014-06-10 16:50 cleanrock Note Added: 0013258
2014-06-10 17:33 abma Note Added: 0013259
2014-06-10 17:33 abma Note Edited: 0013259
2014-06-10 17:37 jK Note Added: 0013260
2014-06-10 17:38 abma Note Edited: 0013259
2014-06-10 18:15 cleanrock Note Added: 0013261
2014-06-10 21:45 abma Target Version => 98.0
2014-06-11 02:05 abma Note Added: 0013263
2014-06-11 21:59 cleanrock Note Added: 0013270
2014-06-11 22:31 abma Assigned To => jK
2014-06-11 22:31 abma Status new => assigned
2014-06-14 21:52 jK Changeset attached => spring develop cf9dd709
2014-06-14 21:52 jK Status assigned => resolved
2014-06-14 21:52 jK Resolution open => fixed