[luatex] font.fonts error "error: attempt to index a thread value"

Taco Hoekwater taco at elvenkind.com
Wed Sep 30 18:17:33 CEST 2009


Patrick Gundlach wrote:
> Hi,
> 
> I know this is a very vague question:
> 
> Sometimes (while going through the node list on a pre_linebreak_filter 
> on a glue item) I get an error when using font.fonts[x] or 
> font.getfont(x). The fonts are defined by using font.define(f) (f is a 
> table that is constructed from the fontloader lib similar to the page on 
> the bluwiki). The error I get is:
> 
> error: attempt to index a thread value

> Does anyone by chance have an idea where to start looking?

Assuming you are not using lua threads yourself, this is most likely
a case of uninitialized memory (luatex itself doesn't use threads at
all). I really need a test file from you, I doubt you can do anything
useful yourself without actual executable debugging.

Best wishes,
Taco


More information about the luatex mailing list