Skip to content

Instantly share code, notes, and snippets.

@saifsmailbox98
Created July 6, 2021 07:25
Show Gist options
  • Save saifsmailbox98/862434f07f64f9fc7974598f6c239f39 to your computer and use it in GitHub Desktop.
Save saifsmailbox98/862434f07f64f9fc7974598f6c239f39 to your computer and use it in GitHub Desktop.
2021-07-06 12:54:27.602 7603-7631/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.townapp, PID: 7603
com.facebook.react.common.JavascriptException: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem., stack:
br@77:41412
default@382:130
onMessage@392:1497
<unknown>@394:1029
<unknown>@395:3401
forEach@-1
<unknown>@395:3387
value@22:906
value@41:3469
<unknown>@41:662
value@41:2459
value@41:634
value@-1
at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:83)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:228)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:919)
2021-07-06 12:54:27.614 1887-2915/? W/ActivityTaskManager: Force finishing activity com.townapp/.MainActivity
2021-07-06 12:54:27.618 1887-2915/? V/WindowManager: Changing focus from Window{6ad5f12 u0 com.townapp/com.townapp.MainActivity} to null
2021-07-06 12:54:27.678 1887-9459/? D/OppoThermalStats: SimpleTopProcesses: {system_server=35, android.hardware.audio@2.0-service=12, lastSamepleWallTime=2021-07-06 12:52:18.949, surfaceflinger=32, com.townapp=120, audioserver=12}
2021-07-06 12:54:27.679 1887-9459/? D/OppoThermalStats: mSimpleTopProcessesNeedUpload: {system_server=35, android.hardware.audio@2.0-service=12, lastSamepleWallTime=2021-07-06 12:52:18.949, surfaceflinger=32, com.townapp=120, audioserver=12}
2021-07-06 12:54:27.689 1887-9459/? D/ColorEapUtils: collectFile: com.townapp, 8636bbdefd5047c7, data_app_crash
2021-07-06 12:54:28.122 1887-2016/? W/ActivityTaskManager: Activity pause timeout for ActivityRecord{11c4a77 u0 com.townapp/.MainActivity t1857 f}
2021-07-06 12:54:28.127 1887-2577/? I/MotorManagerService: notifyActivityChanged: mBackgroudPkg = com.townapp mFocusPkg = com.oppo.launcher mIsSplitMode = false mBackActivity = com.townapp.MainActivity mFocusActivity = com.oppo.launcher.Launcher
2021-07-06 12:54:28.157 1887-2487/? W/InputDispatcher: channel '6ad5f12 com.townapp/com.townapp.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0xd
2021-07-06 12:54:28.157 1887-2487/? E/InputDispatcher: channel '6ad5f12 com.townapp/com.townapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2021-07-06 12:54:28.339 1887-1969/? I/WindowManager: WIN DEATH: Window{6ad5f12 u0 com.townapp/com.townapp.MainActivity}
2021-07-06 12:54:28.339 1887-1969/? W/InputDispatcher: Attempted to unregister already unregistered input channel '6ad5f12 com.townapp/com.townapp.MainActivity (server)'
2021-07-06 12:54:28.364 1887-3253/? I/ActivityManager: Process com.townapp (pid 7603) has died: vis+99 TOP
2021-07-06 12:54:28.369 29082-29175/? I/DCS-BackgroundAppData: sendAppBgEvent: has no pkgName=com.townapp
2021-07-06 12:54:28.386 1887-3253/? V/ColorZoomWindowManagerService: onAnimationFinished: r=ActivityRecord{11c4a77 u0 com.townapp/.MainActivity t1857 f}
2021-07-06 12:54:28.452 1887-1887/? I/OppoPhoneWindowManager: KeyLockModeReceiver KeyLockMode: 0 ProcessName: com.townapp
2021-07-06 12:54:28.536 1887-1969/? D/ColorAppListInterceptManager: shouldFilterTask::packageName = com.townapp
2021-07-06 12:54:28.872 1887-9459/? D/ColorEapUtils: zipFile: /data/oppo/coloros/eap/8636bbdefd5047c7 to /data/oppo/coloros/eap/com.townapp_1.0_data_app_crash@8636bbdefd5047c7@RMX1921EX_11.C.11_1110_202103172219@2021-07-06-12-54-28.zip
@Balasnest
Copy link

what is the resolution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment