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

未知原因闪退 #1040

Open
shanjb0221 opened this issue Apr 14, 2023 · 5 comments
Open

未知原因闪退 #1040

shanjb0221 opened this issue Apr 14, 2023 · 5 comments

Comments

@shanjb0221
Copy link

启动时遇到偶发性闪退问题,不清楚如何复现

应用版本:v14.1.2 (build 612566411)

设备信息:Mi 10 Ultra,MIUI 13.0.5,Android 12

trace:

com.facebook.react.common.JavascriptException: Invariant Violation: Failed to call into JavaScript module method RCTEventEmitter.receiveTouches(). Module has not been registered as callable. Bridgeless Mode: false. Registered callable JavaScript modules (n = 10): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, HMRClient, AppRegistry.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes, stack:
invariant@1:68328
__callFunction@1:73580
anonymous@1:72022
__guard@1:72972
callFunctionReturnFlushedQueue@1:71980

	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:102)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:130)
	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:142)
	at com.facebook.jni.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
	at android.os.Looper.loopOnce(Looper.java:210)
	at android.os.Looper.loop(Looper.java:299)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:52)
	at java.lang.Thread.run(Thread.java:920)
@robertying
Copy link
Owner

我在崩溃记录里也看到好多这种报错,但是我没法理解哪里出错了。感觉确实没法复现,是启动时可能正常也可能闪退嘛?

@shanjb0221
Copy link
Author

我在崩溃记录里也看到好多这种报错,但是我没法理解哪里出错了。感觉确实没法复现,是启动时可能正常也可能闪退嘛?

是的,绝大多数情况下都正常启动。只出现过一次闪退

@robertying
Copy link
Owner

过几天更新 RN 版本,再看看效果。

@robertying
Copy link
Owner

请测试 v14.2.0 是否还会间歇性闪退。

@Siyuanwww
Copy link

请测试 v14.2.0 是否还会间歇性闪退。

目前在 Xiaomi 12S Pro 上仍有启动时间歇性闪退

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

3 participants