Samsung / Tizen-CSharp-Samples

Tizen C# Samples for Mobile, Wearable, and TV profiles.
Apache License 2.0
236 stars 224 forks source link

SKPath.ParseSvgPathData is null on wearable #337

Open luvjungle opened 2 years ago

luvjungle commented 2 years ago

I am trying to run those samples on Galaxy Watch 3 with Tizen 5.5 Wearable/Xamarin.Forms/SkiaSharp2DSample Wearable/Xamarin.Forms/PlayingWithHWInputs but either of them are crashing with null reference to result of SKPath.ParseSvgPathData I tried using different SkiaSharp versions, but that didn't help.

sgchoi5 commented 2 years ago

Could you try it with Tizen 5.5 Wearable emulator ? and, let us know the firmware version of your Galaxy Watch 3 device. thanks in advance.

luvjungle commented 2 years ago

I can't run emulator. It says "your system cannot support HW acceleration". I have windows 11, AMD Ryzen CPU with virtualization turned on in BIOS, Hyper-V disabled. CPU VT turned off in emulator settings. Watch firmware is SM-R840NZKASER

sgchoi5 commented 2 years ago

F.Y.I: hw acceleration with Windows https://docs.tizen.org/application/tizen-studio/setup/hardware-accelerated-execution-manager/

sgchoi5 commented 2 years ago

And, could you share the log when SKPath.ParseSvcPathData is null?

luvjungle commented 2 years ago

As I wrote, I have AMD Ryzen CPU. HAXM is for Intel.

Here is the log

12-21 11:25:51.541 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/10.Dotnet.Launcher.preload 12-21 11:25:51.541 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/20.Tizen.preload 12-21 11:25:52.409 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0x226ec00, pid:12671 tid: 12671] to display:0x2455fb0, threads_cnt=1 12-21 11:25:52.489 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : ==>[WARN] (dotnet-loader) [EGL] egl/src/mali_egl_display.c:2010 eglInitialize MALI driver version is [U:r21p0-01rel0 K:r21p0-01rel0(GPL)] commit [b4e84aeb12718f6879970c5368c8e63907748da2] 12-21 11:25:52.493 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : [TBM_INF][34980.026637][12671][_tbm_bufmgr_init 539]loading backend module 12-21 11:25:52.501 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0x248eba0, pid:12671 tid: 12671] to display:0x246cc28, threads_cnt=1 12-21 11:25:52.505 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread removed[0x248eba0 pid:12671 tid: 12671] from display:0x246cc28, threads_cnt=0 12-21 11:25:52.505 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : [TBM_INF][34980.037333][12671][_tbm_backend_load_module 351]Success to load module(libtbm_default.so) 12-21 11:25:52.505 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : [TBM_INF][34980.037433][12671][_tbm_bufmgr_init 549]loading backend module done 12-21 11:25:52.505 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0x248e848, pid:12671 tid: 12671] to display:0x246cc28, threads_cnt=1 12-21 11:25:53.889 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0x28a57a8, pid:12671 tid: 12671] to display:0x28a54c0, threads_cnt=1 12-21 11:25:53.925 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0xf4a004f0, pid:12671 tid: 12702] to display:0x28a54c0, threads_cnt=2 12-21 11:25:53.941 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.ElmSharp.preload 12-21 11:25:53.941 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.ElmSharp.Wearable.preload 12-21 11:25:53.945 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.Tizen.Applications.Common.preload 12-21 11:25:53.949 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.Tizen.Applications.UI.preload 12-21 11:25:53.953 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.Tizen.Log.preload 12-21 11:25:54.005 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/30.Tizen.System.Information.preload 12-21 11:25:54.697 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Success to preload : /usr/share/dotnet.tizen/preload/70.XSF.preload 12-21 11:26:56.253 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : PlayingWithHWInputs.Program 12-21 11:26:56.277 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Thread added[0x27e2448, pid:12671 tid: 12671] to display:0x29b64c8, threads_cnt=1 12-21 11:26:56.521 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : Unhandled exception. 12-21 11:26:56.521 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) :
12-21 11:26:56.577 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : System.NullReferenceException: Object reference not set to an instance of an object. at PlayingWithHWInputs.RotaryEventPage.<.ctor>b__22_1(Object sender, SKPaintSurfaceEventArgs e) in C:\Work\Tizen\HW\PlayingWithHWInputs\PlayingWithHWInputs\RotaryEventPage.cs:line 127 at SkiaSharp.Views.Forms.SKCanvasView.OnPaintSurface(SKPaintSurfaceEventArgs e) at SkiaSharp.Views.Forms.SKCanvasView.SkiaSharp.Views.Forms.ISKCanvasViewController.OnPaintSurface(SKPaintSurfaceEventArgs e) at SkiaSharp.Views.Forms.SKCanvasViewRendererBase`2.OnPaintSurface(Object sender, SKPaintSurfaceEventArgs e) at SkiaSharp.Views.Tizen.SKCanvasView.OnDrawFrame(SKPaintSurfaceEventArgs e) at SkiaSharp.Views.Tizen.SKCanvasView.OnDrawFrame() at SkiaSharp.Views.Tizen.CustomRenderingView.<.ctor>b__4_1(IntPtr d, IntPtr o) at Tizen.Applications.CoreBackend.UICoreBackend.Run(String[] args) at Tizen.Applications.CoreApplication.Run(String[] args) at Tizen.Applications.CoreUIApplication.Run(String[] args) at PlayingWithH 12-21 11:26:56.577 : Info / DOTNET_LAUNCHER ( 12671 : 12673 ) : WInputs.Program.Main(String[] args) in C:\Work\Tizen\HW\PlayingWithHWInputs\PlayingWithHWInputs\PlayingWithHWInputs.cs:line 24

sgchoi5 commented 2 years ago

Could you check SkiaSharp version? Verified version for this app is 1.68.2-preview.50. If you've updated it via Nuget manager, I think.. it does not work correctly..