hans00 / react-native-transformers-example

Example of transformers.js on React Native
43 stars 6 forks source link

Crash when running the app as it is #12

Open YUNQIUGUO opened 1 year ago

YUNQIUGUO commented 1 year ago

Issue:

Hi, I cloned the project and was running the react-native-transformers example as it is. but sometimes will experience an app crash instantly after finishing the bundling stage.

Any clues? Or additional configuration that I might overlooked?

I don't see much log info from the metro terminal:

BUNDLE  ./index.js 
 WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
 WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
 LOG  Running "transformers_example" with {"rootTag":11}

Thanks!

YUNQIUGUO commented 1 year ago

Sorry - to clarify, I am running this on Android side.

hans00 commented 1 year ago

Please provide your native log adb logcat -s DEBUG -s AndroidRuntime -s ReactNativeJS

But I guess may cause by gcanvas' OffscreenCanvas. For large image process, I hardcoded a very large offscreen canvas which will cause crash if GPU memory not enough. Maybe you can try the skia branch, will not that unstable like gcanvas.