On Fri, 2007-04-27 at 00:46 +0200, Brice Goglin wrote: > Brice Goglin wrote: > > I was rather thinking of locating where this assertion is (I don't see > > it in libx11, strace/gdb might help to locate the library or binary > > where it comes from). And then try to understand where the error comes > > from by either reading the corresponding code, or adding some debug > > printf. Not very easy... > > > > I might have been drinking too much lately since the assertion is in > your program, not in fontset.c in a lib :) > > Now we have to understand why the code at the URL below returns NULL: > http://git.debian.org/?p=pkg-xorg/lib/libx11.git;a=blob;f=src/FSWrap.c;h=10634ceecae26eab5306507cadda2181019ae2be;hb=HEAD#l167 > > That would be either XOpenOM returning NULL,
Doesn't depend on the font name. > or XCreateOC returning NULL, It's got to be that one. > or list->charset_list && *missing_charset_list == NULL... If list->charset_list != NULL and list->charset_count == 0, the Xmalloc call in copy_string_list might return NULL (I don't know whether it supports a size of 0), causing copy_string_list and XCreateFontSet() to return NULL. This seems unlikely to be triggered only by the exact font pattern lists I identified though. Ben. -- Ben Hutchings If God had intended Man to program, we'd have been born with serial I/O ports.
signature.asc
Description: This is a digitally signed message part