> It failed in pdf_text_init(), so could be due to different things. Could > you configure it with --enable-debug-base and send me the PDF_DEBUG_BASE > logs? > > libgnupdf: ***DEBUG BASE***:base/pdf-text-context.c:84: TextContext: Host Endianness is 'Big Endian'. > libgnupdf: ***DEBUG BASE***:base/pdf-text-context.c:141: Invalid locale info detected! 'C'. > libgnupdf: ***DEBUG BASE***:base/pdf-text-context.c:216: Error detecting host language.
gl_locale_name is returning the default POSIX locale... seems that locale info was not correctly set in the process. I had a problem with my locales settings. With: LANG=en_GB.UTF-8 LANGUAGE=en_GB.utf8 LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL= All tests success except: base/text/pdf-text-get-unicode.c:929:E:pdf_text_get_unicode:pdf_text_get_unicode_015:0: (after this point) Received signal 11 (Segmentation fault) base/text/pdf-text-get-unicode.c:1002:E:pdf_text_get_unicode:pdf_text_get_unicode_016:0: (after this point) Received signal 11 (Segmentation fault) Traces for that run: libgnupdf: ***DEBUG BASE***:base/pdf-text-host-encoding.c:328: Invalid data to convert from Host Encoding:'Invalid or incomplete multibyte or wide character'. libgnupdf: ***DEBUG BASE***:base/pdf-text-host-encoding.c:258: Conversion from 'invalid_host_enc' to UTF-32 not available. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 30. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 74. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 14. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 10. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 12. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 58. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 146. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 26. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 14. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:918: Wrong UTF-8 data received (UTF-8 length: 0, Remaining length: 18. libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:520: Input length must be multiple of 2 and greater than 2! Invalid UTF-16 data. (Length: 17). libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:520: Input length must be multiple of 2 and greater than 2! Invalid UTF-16 data. (Length: 39). libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:520: Input length must be multiple of 2 and greater than 2! Invalid UTF-16 data. (Length: 9). libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:520: Input length must be multiple of 2 and greater than 2! Invalid UTF-16 data. (Length: 7). libgnupdf: ***DEBUG BASE***:base/pdf-text-encoding.c:520: Input length must be multiple of 2 and greater than 2! Invalid UTF-16 data. (Length: 13).
