Bugs item #1727062, was opened at 2007-05-28 21:04 Message generated for change (Comment added) made by dooglus You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1727062&group_id=144022
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Usability Group: SVN version Status: Open Resolution: None Priority: 5 Private: No Submitted By: PXEGeek (pxegeek) Assigned to: Nobody/Anonymous (nobody) Summary: Opening a png instead of a sif causes a fatal Gtk error Initial Comment: Running Windows synfig from SVN 483, on a Pentium 4 CPU, Windows XP SP2. GTK+ 2.10.6 Start Synfig File->open, pick a png file and hit OK "glibmm-ERROR **: unhandled exception (type std::exception) in signal handler: what" Document not well-formed. aborting...." and kills synfig. I hit it fairly regularly as I saved a resulting png file in the same folder as the sif of the same name, and it's listed first (of course). One of the Linux users want to see if happens to them too? ---------------------------------------------------------------------- >Comment By: dooglus (dooglus) Date: 2007-09-21 10:16 Message: Logged In: YES user_id=1546005 Originator: NO I tried loading that file. I see a couple of sane error messages, and no crash. Do you still see the problem in Windows? We don't check for a valid looking start to the file, trusting the XML library to do that (and anyway, what if it's a .sifz? The XML library handles the decompression. Should we hard-code something that recognises the libz header as well? And then should we uncompress the file to check it's not a gzipped .png file really? I think it's better, if possible, to just truth the XML library to handle non-XML files gracefully. ---------------------------------------------------------------------- Comment By: PXEGeek (pxegeek) Date: 2007-05-30 19:54 Message: Logged In: YES user_id=1763308 Originator: YES I did some googling on the error, and the first hit on glibmm document not well-formed is - "Document not well-formed" errors are most likely caused by invalid characters in the xml file. IIRC the XML library I'm using assumes UTF-8, ... It may well be that the start of my png file has a character causing Glibmm to choke, but yours is at least in the right range. Do/can we check the file starts with <?xml before having the glibmm xmlparser look at it? Here's the file I'm using - http://pxegeek.home.comcast.net/synfig/armadillo.png The first character looks well outside the standard ASCII range when I look at it in notepad. Chris ---------------------------------------------------------------------- Comment By: dooglus (dooglus) Date: 2007-05-28 23:04 Message: Logged In: YES user_id=1546005 Originator: NO In ubuntu, with the current svn version, I select a .png file, click 'OK' and see: "Error Unable to open file "/home/chris/.../file.png" [Close]" I click Close and see another dialog: "Unable to open file [Close]" I click Close again, and the open dialog reappears, allowing me to select the file to open again. This all seems perfectly reasonable behaviour. I don't know why it's not doing the same on Windows, but I'll take a look at the code and see what I can find out. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1727062&group_id=144022 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl