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

Crash when running the app as it is #12

Open
YUNQIUGUO opened this issue Nov 1, 2023 · 2 comments
Open

Crash when running the app as it is #12

YUNQIUGUO opened this issue Nov 1, 2023 · 2 comments

Comments

@YUNQIUGUO
Copy link

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

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

@hans00
Copy link
Owner

hans00 commented Nov 1, 2023

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.

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