[swfmill] error: "input not UTF-8"

Marc Reichelt post at marcreichelt.de
Tue Aug 22 17:30:32 EDT 2006


Hi Daniel,

>   > To my problem: Did you notice the error I described in my first mail, or
>   > no errors? What about other Linux users: Do you get this error?
> 
> running your ./createskin.sh standard produces a emff_standard.swf (size 3893) fine here (on my gentoo linux). maybe your libxml2 version is out of date (and swfmill doesnt require a high enough one)?

My emff_standard.swf is generated here too, even if the error occurs.

> i'm running libxml2 2.6.23 and libxslt 1.1.15. i suspect one of these because the "input not UTF-8" comes from libxml.

My libxml2 and libxslt are up to date (libxml2: 2.6.24.dfsg-1ubuntu1,
libxslt1-dev: 1.1.15-1ubuntu1 ;-)).
I think that it isn't a problem with the version, perhaps it's a problem
with Ubuntu.

I now tried out to change the file "swfmill.xml" and commented some
lines. Somehow I got the following error:
"error : xmlEncodeEntitiesReentrant : char out of range"
After that I commented some other lines and didn't get this error again.
And - no error with UTF-8 input. I tried to get that error "char out of
range" again, but for some reason I couldn't.

The final SWF file is always generated normally. If I comment the first
line - that one that imports "graphics/begin.png" - it works without
errors (but logically the file is not imported ;).

I try to think that the libxml2 tries to read "begin.png" as XML, fails
and exits. If I write an "strace" command before my swfmill command in
"createskin.sh", it seems that I'm right:

---snip---
open("graphics/begin.png", O_RDONLY)    = 5
write(2, "error : ", 8error : )                 = 8
write(2, "xmlEncodeEntitiesReentrant : inp"...,
45xmlEncodeEntitiesReentrant : input not UTF-8
) = 45
fstat64(5, {st_mode=S_IFREG|0644, st_size=209, ...}) = 0
---snap---

Now I may ask: Why does swfmill try to read begin.png as XML (if it
really does)?

I uploaded the new code to
http://dev.marcreichelt.de/emff/emff_0.5_dev_2006-08-22_1.tar.bz2 (that
is the code without any errors).
The old code (where swfmill seems to read begin.png as XML) can be found
at http://dev.marcreichelt.de/emff/emff_0.5_dev_2006-08-22_0.tar.bz2
further on.


Thanks in advance / regards

Marc Reichelt   ||   http://www.marcreichelt.de/



More information about the swfmill mailing list