Error when i try to "save as"

Bug #2038850 reported by Gorom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

Hello

I'm getting an error when i try to "save as"

how to reproduce the bug

1) Open a file
2) Click "save as"
3) File chooser opens
4) Rename or choose another file format (i don't want to overwrite)
5) Click OK
6) Error appears (but no crash)

Note that i can overwrite the file with "save" function

Version : 2.1.1
OS : Linux Mint 21.1
Package : Flatpak

Error :
Unhandled exception : Exception has been thrown by the target of an invocation.

Details
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.Actions.SaveDocumentImplmentationAction.SaveFileAs(Document document)
   at Pinta.Actions.SaveDocumentImplmentationAction.Activated(Object sender, DocumentCancelEventArgs e)
   at Pinta.Core.FileActions.RaiseSaveDocument(Document document, Boolean saveAs)
   at Pinta.Core.Document.Save(Boolean saveAs)
   at Pinta.Actions.SaveDocumentAsAction.Activated(Object sender, EventArgs e)
   at InvokeStub_ActivatedHandler.Invoke(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)

Thank you.

ps : i found a pretty old resolved bug similar to this one https://bugs.launchpad.net/pinta/+bug/603458

Gorom (gorom)
description: updated
Revision history for this message
Gorom (gorom) wrote :

Hi,

i can't find a way to close this ticket.

Anyway i can't reproduce this bug anymore with Pinta 2.1.2 and Linux Mint 21.3.

Thank you very much.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.