Pinta 2.0 is installed from Flatpak on Raspberry Pi OS 64-bit.
Clicking Open results in the following unhandled exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> GLib.GException: Invalid byte sequence in conversion input
at GLib.Marshaller.StringToFilenamePtr(String str)
at Gtk.FileChooserAdapter.SetCurrentFolder(String filename)
at Pinta.Actions.OpenDocumentAction.Activated(Object sender, EventArgs e)
at Pinta.Core.Command.<.ctor>b__33_0(Object o, ActivatedArgs args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(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)
Clicking Save results in the following unhandled exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> GLib.GException: Invalid byte sequence in conversion input
at GLib.Marshaller.StringToFilenamePtr(String str)
at Gtk.FileChooserAdapter.SetCurrentFolder(String filename)
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 Pinta.Core.Command.<.ctor>b__33_0(Object o, ActivatedArgs args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
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)
Interesting, I haven't seen this error before. It looks like it's probably failing around https:/ /github. com/GtkSharp/ GtkSharp/ blob/develop/ Source/ Libs/GLibSharp/ Marshaller. cs#L130 in the GtkSharp bindings.
Are there any special characters in the file / folder paths?
If not, I'd guess there's some sort of issue either on the dotnet or GTK side of things for arm64