Error message "Unhandled exception- Exception has been thrown by the target of an invocation"

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

Bug Description

Pinta under Linux Mint. Details..
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> GLib.GException: Failed to open '/run/user/1000/gvfs/smb-share:server=laptop-ubl7v37s,share=documents/Dorset PP Package/Perspective HL.png' for writing: Permission denied
  at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile (Pinta.Core.Document document, System.String file, Pinta.Core.FormatDescriptor format, Gtk.Window parent) [0x0016b] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Actions.SaveDocumentImplmentationAction.Activated (System.Object sender, Pinta.Core.DocumentCancelEventArgs e) [0x00062] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Core.FileActions.RaiseSaveDocument (Pinta.Core.Document document, System.Boolean saveAs) [0x0001f] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.Document.Save (System.Boolean saveAs) [0x0000b] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Actions.SaveDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x0000b] in <1b3ff3457ff6412b96782de825379d42>: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, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0010d] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0006d] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x0006c] in <5a439e0caae7469886e7119d9f6bc621>:0

Revision history for this message
Cameron White (cameronwhite91) wrote :

It looks like that error is occurring because the file location could not be written to.
Could you check if that folder has write permissions?

Also, if you're using the flatpak or snap package of Pinta, I think there is some additional sandboxing that can sometimes cause issues like this

Revision history for this message
Chris Wallis (chriswallis) wrote : Re: [Bug 1943583] Re: Error message "Unhandled exception- Exception has been thrown by the target of an invocation"
Download full text (3.8 KiB)

I think your diagnosis is correct. Thank you.
No doubt you are already working to make the error messages more
comprehensible to the user.

On Thu, 16 Sept 2021 at 03:40, Cameron White <email address hidden>
wrote:

> It looks like that error is occurring because the file location could not
> be written to.
> Could you check if that folder has write permissions?
>
> Also, if you're using the flatpak or snap package of Pinta, I think
> there is some additional sandboxing that can sometimes cause issues like
> this
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1943583
>
> Title:
> Error message "Unhandled exception- Exception has been thrown by the
> target of an invocation"
>
> Status in Pinta:
> New
>
> Bug description:
> Pinta under Linux Mint. Details..
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. ---> GLib.GException: Failed to open
> '/run/user/1000/gvfs/smb-share:server=laptop-ubl7v37s,share=documents/Dorset
> PP Package/Perspective HL.png' for writing: Permission denied
> at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile
> (Pinta.Core.Document document, System.String file,
> Pinta.Core.FormatDescriptor format, Gtk.Window parent) [0x0016b] in
> <1b3ff3457ff6412b96782de825379d42>:0
> at Pinta.Actions.SaveDocumentImplmentationAction.Activated
> (System.Object sender, Pinta.Core.DocumentCancelEventArgs e) [0x00062] in
> <1b3ff3457ff6412b96782de825379d42>:0
> at Pinta.Core.FileActions.RaiseSaveDocument (Pinta.Core.Document
> document, System.Boolean saveAs) [0x0001f] in
> <d07abe89b0c1405ca613eaf73991f472>:0
> at Pinta.Core.Document.Save (System.Boolean saveAs) [0x0000b] in
> <d07abe89b0c1405ca613eaf73991f472>:0
> at Pinta.Actions.SaveDocumentAction.Activated (System.Object sender,
> System.EventArgs e) [0x0000b] in <1b3ff3457ff6412b96782de825379d42>: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,
> System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder,
> System.Object[] parameters, System.Globalization.CultureInfo culture)
> [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0
> --- End of inner exception stack trace ---
> at System.Reflection.MonoMethod.Invoke (System.Object obj,
> System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder,
> System.Object[] parameters, System.Globalization.CultureInfo culture)
> [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0
> at System.Reflection.MethodBase.Invoke (System.Object obj,
> System.Object[] parameters) [0x00000] in
> <8f2c484307284b51944a1a13a14c0266>:0
> at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0010d]
> in <8f2c484307284b51944a1a13a14c0266>:0
> at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
> [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
> at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in
> <8f2c484307284b51944a1a13a1...

Read more...

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.