unhandled exception when saving or saving as

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

Bug Description

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.SaveDocumentAction.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)
===
Pinta 2.2.1 on Ubuntu 20.04.6 LTS
( happens with 'save' and 'save as'

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

This might be the same as bug 2024171. Are you running Pinta from a sandboxed environment (snap / flatpak) and saving to a location outside your user directory?

Revision history for this message
Eric Beversluis (ubuntueb) wrote : Re: [Bug 2044548] Re: unhandled exception when saving or saving as

Thanks for your reply, Cameron.

I don't know if it's running from snap or not. I'm fairly new to Ubuntu
and didn't think of snap as a "sandboxed" environment. How would that
affect saving to a sub-directory under /home/eric?

Is there a fix or work-around?

Should I uninstall the version I have and use apt to install Pinta?

Thanks.

On 11/24/23 15:40, Cameron White wrote:
> This might be the same as bug 2024171. Are you running Pinta from a
> sandboxed environment (snap / flatpak) and saving to a location outside
> your user directory?
>
--
Eric Beversluis www.ericbeversluis.com

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

I think if you run `snap list` from a terminal that should show you the packages you have installed there.
The issue is more likely to be if the file is not under your home directory, e.g. the /tmp/ folder, which may not necessarily be included in the default permissions for the sandbox.
Is the file you're saving under your home folder?

Revision history for this message
Eric Beversluis (ubuntueb) wrote :

It's in a sub-dir of the home folder, /home/pictures-linux

I've gone ahead and re-installed via apt.

Thanks.

On 11/24/23 23:37, Cameron White wrote:
> I think if you run `snap list` from a terminal that should show you the packages you have installed there.
> The issue is more likely to be if the file is not under your home directory, e.g. the /tmp/ folder, which may not necessarily be included in the default permissions for the sandbox.
> Is the file you're saving under your home folder?
>
--
Eric Beversluis www.ericbeversluis.com

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.