facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.18k stars 24.22k forks source link

android ANR #37507

Closed aLittleGreens closed 1 year ago

aLittleGreens commented 1 year ago

Description

found current proc in the error state 2023-05-09 09:43:32.707 27748-27808 CrashReport com...babymonitorplus D found proc state is anr! proc:com.philips.ph.babymonitorplus 2023-05-09 09:43:32.707 27748-27808 CrashReport com...babymonitorplus D anr time:1683596607739 trace file:null proc:com.philips.ph.babymonitorplus main stack:com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:65) com.facebook.react.modules.core.ReactChoreographer.postFrameCallback(ReactChoreographer.java:100) com.facebook.react.modules.core.Timing$TimerFrameCallback.doFrame(Timing.java:104) com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:166) com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:84) android.view.Choreographer$CallbackRecord.run(Choreographer.java:1229) android.view.Choreographer$CallbackRecord.run(Choreographer.java:1239) android.view.Choreographer.doCallbacks(Choreographer.java:899) android.view.Choreographer.doFrame(Choreographer.java:827) android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1214) android.os.Handler.handleCallback(Handler.java:942) android.os.Handler.dispatchMessage(Handler.java:99) android.os.Looper.loopOnce(Looper.java:201) android.os.Looper.loop(Looper.java:288) android.app.ActivityThread.main(ActivityThread.java:7884) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

                                                                          short msg:ANR Input dispatching timed out (Application does not have a focused window)
                                                                          long msg:ANR in com.philips.ph.babymonitorplus (com.philips.ph.babymonitorplus/com.tuya.smart.ipc.camera.rnpanel.activity.TYRCTSmartCameraPanelActivity)
                                                                          PID: 27748
                                                                          Reason: Input dispatching timed out (Application does not have a focused window)
                                                                          Parent: com.philips.ph.babymonitorplus/com.tuya.smart.ipc.camera.rnpanel.activity.TYRCTSmartCameraPanelActivity
                                                                          ErrorId: acd824f6-66a1-4eab-9a0b-e8caeaa92053
                                                                          Frozen: false
                                                                          Load: 1.21 / 0.55 / 0.22
                                                                          ----- Output from /proc/pressure/memory -----
                                                                          some avg10=0.00 avg60=0.00 avg300=0.00 total=25143288
                                                                          full avg10=0.00 avg60=0.00 avg300=0.00 total=5251053
                                                                          ----- End output from /proc/pressure/memory -----

React Native Version

0.51.1

Output of npx react-native info

info Fetching system and libraries information... System: OS: macOS 11.0.1 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 26.70 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 20.0.0 - ~/.nvm/versions/node/v20.0.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v20.0.0/bin/yarn npm: 9.6.4 - ~/.nvm/versions/node/v20.0.0/bin/npm Watchman: 2022.11.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.0 - /usr/local/bin/pod SDKs: iOS SDK: Not Found Android SDK: API Levels: 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 Build Tools: 26.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.1, 30.0.2, 30.0.3, 31.0.0, 33.0.0 System Images: android-23 | Google APIs Intel x86 Atom, android-29 | Automotive with Play Store Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | ARM 64 v8a, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.9971841 Xcode: /undefined - /usr/bin/xcodebuild Languages: Java: 1.8.0_211 - /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: ^0.71.7 => 0.71.7 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

re-entry panel Probability anr

Snack, code example, screenshot, or link to a repository

bo

github-actions[bot] commented 1 year ago
:warning: Unsupported Version of React Native
:information_source: It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.
aLittleGreens commented 1 year ago

Thanks for your message

github-actions[bot] commented 1 year ago
:warning: Issue is Invalid
:information_source: This issue doesn't match any of the expected types for this repository - closing.