Hello, Pinta devs!
When trying to open any 16x16 png file, I'm greeted with a window saying:
Object reference not set to an instance of an object
Could not open file: /home/user/filename.png
Then the file is not opened. When closing Pinta, two new windows appear:
Unhandled exception:
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Tried to WorkspaceManager.SetActiveDocument. Could not find document.
at Pinta.Core.WorkspaceManager.SetActiveDocument (Pinta.Core.Document document) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.SetActiveDocument (Int32 index) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.CloseDocument (Pinta.Core.Document document) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.CloseActiveDocument () [0x00000] in <filename unknown>:0
at Pinta.Actions.CloseDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Unhandled exception:
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Pinta.Core.WindowActions.RemoveDocument (Pinta.Core.Document doc) [0x00000] in <filename unknown>:0
at Pinta.ActionHandlers.Workspace_DocumentClosed (System.Object sender, Pinta.Core.DocumentEventArgs e) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentEventArgs (object,Pinta.Core.DocumentEventArgs)
at Pinta.Core.WorkspaceManager.OnDocumentClosed (Pinta.Core.DocumentEventArgs e) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.CloseDocument (Pinta.Core.Document document) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.CloseActiveDocument () [0x00000] in <filename unknown>:0
at Pinta.Actions.CloseDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Reproducible on 1.4-1 and 1.5+r782 on Debian Wheezy.
Thanks for your attention!
Do you have any sample images that you could attach? I tried creating a 16x16 png image in Pinta and then re-opened it in Pinta, and everything worked fine (I'm using Pinta 1.5 on Ubuntu 12.10)