Bugs item #2195749, was opened at 2008-10-25 20:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=2195749&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: Crasher/nasty bug Group: SVN version Status: Open Resolution: None Priority: 5 Private: No Submitted By: wtachi (hyperwiz) Assigned to: Nobody/Anonymous (nobody) Summary: Crash loading .sif with canvas width and height="0" Initial Comment: Synfig Studio SVN r2129 crashes when trying to load a file like this, with width and height set to 0: <?xml version="1.0"?> <canvas version="0.6" width="0" height="0" view-box="0 0 0 0" antialias="1" fps="24.000" begin-time="0f" end-time="0f" bgcolor="0.5 0.5 0.5 1.0"/> The actual crash happens in studio::Widget_NavView::on_start_render(), called from studio::Widget_NavView::on_expose_draw(), called from libgtkmm. Granted it's not a very sane .sif file, and an error message would be reasonable, but crashing isn't good. I came across this while writing a program that creates .sif files. This patch fixes the crash by forcing the drawn width and height to be at least 1, but raising an error might be a better solution. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=2195749&group_id=144022 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl