Hi sirs.
I am exploring the capabilities of a GUI application developed with the .NET UNO Platform.
The HelloWorld app works correctly on my Colibri board.
I then tried to build a more complex page (some images, buttons and text blocks).
Part of the UI tends to freeze and stop updating (both on the device and on my development machine)
I noticed the project references the following packages:
- Microsoft.Extensions.Logging 5.0.0
- Microsoft.Extensions.Logging.Console 5.0.0
- Uno.UI.Adapter.Microsoft.Extensions.Logging 4.1.8
- Uno.UI.RemoteControl 4.1.8
- Uno.UI.Skia.Gtk 4.1.8
I noticed some of these packages are deprecated, so I updated all packages to latest versions:
- Microsoft.Extensions.Logging 6.0.0
- Microsoft.Extensions.Logging.Console 6.0.0
- Uno.UI.Adapter.Microsoft.Extensions.Logging 4.4.13
- Uno.UI.RemoteControl 4.4.13
- Uno.UI.Skia.Gtk 4.4.13
My sample application now runs flawlessly on my development PC, but fails to start on the Toradex device.
When I update the package Uno.UI.Skia.Gtk I get the message:
GLIB UNHANDLED EXCEPTIONSystem.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 Uno.UI.Runtime.Skia.GLRenderSurfaceBase.GLRenderSurface_Realized(Object sender, EventArgs e)
--- 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)
When I update the package Uno.UI.RemoteControl, I get the message:
Exception has occurred: CLR/System.MissingMethodException
An unhandled exception of type 'System.MissingMethodException' occurred in DotNetUnoPlatformExample.Skia.Gtk.dll: 'Method not found: 'Void Windows.UI.Xaml.Application.Start(Windows.UI.Xaml.ApplicationInitializationCallback, System.String[])'.'
at Uno.UI.Runtime.Skia.GtkHost.Run()
at DotNetUnoPlatformExample.Skia.Gtk.Program.Main(String[] args) in C:\Chinesport\Toradex\DotNetUnoPlatformExample\DotNetUnoPlatformExample.Skia.Gtk\Program.cs:line 19
My hardware setup:
- Colibri iMX6DL 512MB v1.1Y
- Iris V2.0A
- TorizonCore Upstream 5.6.0+build.13 (dunfell)
- Toradex Torizon Support v1.4.0
Can you please give me some direction on this?
Thanks.
Lorenzo