Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKPath.ParseSvgPathData is null on wearable #337

Open
luvjungle opened this issue Dec 20, 2021 · 6 comments
Open

SKPath.ParseSvgPathData is null on wearable #337

luvjungle opened this issue Dec 20, 2021 · 6 comments

Comments

@luvjungle
Copy link

luvjungle commented Dec 20, 2021

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
Copy link
Contributor

sgchoi5 commented Dec 20, 2021

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
Copy link
Author

luvjungle commented Dec 20, 2021

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
Copy link
Contributor

sgchoi5 commented Dec 21, 2021

@sgchoi5
Copy link
Contributor

sgchoi5 commented Dec 21, 2021

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

@luvjungle
Copy link
Author

luvjungle commented Dec 21, 2021

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 ) : �[32m[TBM_INF]�[0m[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 ) : �[32m[TBM_INF]�[0m[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 ) : �[32m[TBM_INF]�[0m[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
Copy link
Contributor

sgchoi5 commented Dec 27, 2021

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants