Crash when saving big file into ico file type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Fix Released
|
High
|
Unassigned |
Bug Description
Pinta 1.2 on Windows XP and latest development on Ubuntu 11.10:
1. Open Pinta.
2. New Image 800x600.
3. Draw something with Paintbrush.
4. File | Save As.
5. Name: test From file type drop-down window select: *.ico and click on Save button. Crash error appears:
===========
System.
at Gdk.Pixbuf.
at Pinta.Core.
at Pinta.Core.
at Pinta.Actions.
at Pinta.Actions.
at Pinta.Actions.
at Pinta.Core.
at Pinta.Core.
at Pinta.Actions.
--- End of inner exception stack trace ---
at System.
at System.
at System.
at System.
at GLib.Signal.
at GLib.SignalClos
at GLib.SignalClos
===========
It looks image is too big to be saved in ico format. But there should be no crash, just an info message that ico is not supported for big file sizes.
Changed in pinta: | |
milestone: | none → 1.3 |
Changed in pinta: | |
status: | Fix Committed → Fix Released |
Confirmed. This line in the GdkPixBuf source code ( http:// git.gnome. org/browse/ gdk-pixbuf/ tree/gdk- pixbuf/ io-ico. c#n998 ) says that .ico files are not expected to be more than 256 x 256. But would it be more prudent to check before trying to save and warn the user, or catch the exception coming back up and warn the user?