flathub / flathub/com.github.PintaProject.Pinta
Unhandled error message when using "save as" on files outside the user directory
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 4
- Forks
- 4
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When I open an image outside my user directory and then choose "save as" I get the following error message:
`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 Pinta.Core.Command.<.ctor>b__33_0(Object o, ActivatedArgs args)
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.Invoke(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)`
Problem seems to be the pre-selected path of the sandbox in the format "/run/user//doc/". A simple "save" works though! Operating system is Debian 12 with flatpak in version 1.14.4 and pinta in 2.1.1!
Hope you can reproduce and fix it. Thanks in advance!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduzieren Sie das Problem in Pinta 2.1.1 unter Debian 12 mit der Flatpak-Sandbox, indem Sie ein Bild außerhalb des Benutzerverzeichnisses öffnen und Save as auswählen. Beginnen Sie bei SaveDocumentImplmentationAction.SaveFileAs(Document document), und folgen Sie dann SaveDocumentAsAction und FileActions.RaiseSaveDocument; fertig ist die Änderung, wenn Save as für den Pfad /run/user//doc/ keine Ausnahme mehr auslöst, während gewöhnliches Save weiterhin funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, debian
- Bereich
- desktop, operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100