NativeScript / canvas

Apache License 2.0
87 stars 18 forks source link

latest beta crashes after clean on Android #124

Closed chris-praxis closed 2 weeks ago

chris-praxis commented 1 month ago

2.0.0-beta.21 has been working for me to display a 3D model for some weeks/months now. Suddenly after merging some code it crashes I cannot explain, but it has to do with this plug-in. I decided to try adding Canvas to a template and it works initially but then crashes after a clean build.

REPRO STEPS

Create new project with canvas plug-in

$ ns create test6
(select Vue.js and Tabs)
$ cd test6
$ ns plugin add @nativescript/canvas@2.0.0-beta.21

Register Canvas element in "app.js"

import { Canvas } from "@nativescript/canvas";
Vue.registerElement('Canvas', () => Canvas);

Add component plus callbacks in "Items.vue" (see file).

Test run

$ ns run android

App runs successfully and calls Canvas and layout callbacks

 *** onCanvasLoaded
 *** onLayoutChanged: 1080x1707
 *** onCanvasReady

Good so far. Uninstall app. Clean build and run

$ ns clean
$ ns run android

CRASH (see "crash_log.txt" for more)

07-25 17:47:13.778 11679 11679 F libc    : Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x6c41844b88 in tid 11679 (ivescript.test6), pid 11679 (ivescript.test6)
chris-praxis commented 1 month ago

test6.zip

triniwiz commented 1 month ago

Which Android API are you testing against ? seeing as you said "2.0.0-beta.21 has been working for me to display a 3D model for some weeks/months now"

chris-praxis commented 1 month ago

I've been using 33 but recently updated to 34 for Google Play requirement. Currently it crashes with both.

triniwiz commented 1 month ago

@chris-praxis can you give the webgpu tag a try

triniwiz commented 2 weeks ago

Fixed in the later releases e.g using @webgpu tag