I was working on an app by testing in the iOS simulator. Also I tested through a cable development version on Android. It was all good. However, when I build for production both iOS and Android crash on a specific place.
The only traces of error are the adb logcat that during/after the app crashes. I would appreciate any ideas that will help me debug the issue.
Android logs:
-14 01:30:05.000 773 1665 E dubaid : [SystemHandler.cpp] onPartialWakelockReleaseMessage# Already released, lock: 143076769
06-14 01:30:07.828 14030 14030 E JankService: child Thread receive to stop
06-14 01:30:07.940 824 1054 E JankService: all data read ok
06-14 01:30:09.302 637 3672 E audio_custom: get_config_value: invalid path /proc/device-tree/audio_hw_config/hifi_info/highperform_lowpower_support.
06-14 01:30:09.313 637 3672 E audio_hw_effect: unsupported sws effect version!
06-14 01:30:09.313 637 3672 E audio_hw_effect: sws set parameter func:[8] err: [-61]
06-14 01:30:09.318 13884 13932 E ReactNativeJS: Requiring unknown module "./locale/en-GB".
06-14 01:30:09.326 13884 13932 E ReactNativeJS: Requiring unknown module "./locale/en-gb".
06-14 01:30:09.343 13884 13933 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Process: my.bigwin.com, PID: 13884
06-14 01:30:09.343 13884 13933 E AndroidRuntime: com.facebook.react.common.JavascriptException: Requiring unknown module "./locale/en-GB"., stack:
06-14 01:30:09.343 13884 13933 E AndroidRuntime: h#2:1448
06-14 01:30:09.343 13884 13933 E AndroidRuntime: d#2:868
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Dt#861:16712
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Tt#861:17738
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Yt#861:16801
06-14 01:30:09.343 13884 13933 E AndroidRuntime: n#947:1453
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Sn#90:30120
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Or#90:45887
06-14 01:30:09.343 13884 13933 E AndroidRuntime: na#90:72881
06-14 01:30:09.343 13884 13933 E AndroidRuntime: ra#90:73371
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Oa#90:80972
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Wa#90:80310
06-14 01:30:09.343 13884 13933 E AndroidRuntime: Ue#90:83367
06-14 01:30:09.343 13884 13933 E AndroidRuntime: De#90:13673
06-14 01:30:09.343 13884 13933 E AndroidRuntime: We#90:13846
06-14 01:30:09.343 13884 13933 E AndroidRuntime: receiveTouches#90:14605
06-14 01:30:09.343 13884 13933 E AndroidRuntime: value#28:3311
06-14 01:30:09.343 13884 13933 E AndroidRuntime: <unknown>#28:822
06-14 01:30:09.343 13884 13933 E AndroidRuntime: value#28:2565
06-14 01:30:09.343 13884 13933 E AndroidRuntime: value#28:794
06-14 01:30:09.343 13884 13933 E AndroidRuntime:
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:907)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at android.os.Looper.loop(Looper.java:216)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
06-14 01:30:09.343 13884 13933 E AndroidRuntime: at java.lang.Thread.run(Thread.java:784)
06-14 01:30:09.347 824 3397 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.348 824 3397 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.348 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.349 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.349 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.357 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.358 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.362 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.364 824 6429 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.365 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.365 773 1665 E dubaid : [DubaiUtils.h] parseMessage# Failed to find second tag: uid=
06-14 01:30:09.366 773 1665 E dubaid : [SystemHandler.cpp] parsePartialWakelockAcquiredMessage# Failed to parse count: lock=20712722 tag=IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$PersistentReceiverIntentOperation count=0
06-14 01:30:09.366 773 1665 E dubaid : [SystemHandler.cpp] onPartialWakelockAcquireMessage# Failed to parse message
06-14 01:30:09.366 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.370 773 1665 E dubaid : [SystemHandler.cpp] onPartialWakelockReleaseMessage# Already released, lock: 20712722
06-14 01:30:09.371 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.376 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.376 773 1665 E dubaid : [DubaiUtils.h] parseMessage# Failed to find second tag: uid=
06-14 01:30:09.376 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.376 773 1665 E dubaid : [SystemHandler.cpp] parsePartialWakelockAcquiredMessage# Failed to parse count: lock=7945443 tag=IntentOp:.common.broadcast.BackgroundBroadcastReceiverSupport$GmsReceiverIntentOperation count=0
06-14 01:30:09.376 773 1665 E dubaid : [SystemHandler.cpp] onPartialWakelockAcquireMessage# Failed to parse message
06-14 01:30:09.376 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.378 1231 10848 E ActivityManager: The same pid with last one, do not add dropbox and clear mLastCrashedPid. mLastAppCrashedPid==13884
06-14 01:30:09.382 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.382 773 1665 E dubaid : [SystemHandler.cpp] onPartialWakelockReleaseMessage# Already released, lock: 7945443
06-14 01:30:09.382 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.385 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.388 659 1532 E AudioFlinger: writing blocked, write to hal costs: 70 ms
06-14 01:30:09.398 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.403 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.423 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.425 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.430 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.433 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.436 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.438 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.446 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.449 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.453 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.454 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.455 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.457 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.458 1231 1753 E InputDispatcher: channel 'b8833ec my.bigwin.com/my.bigwin.com.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
06-14 01:30:09.459 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.459 824 6434 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.459 824 6442 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.459 824 6442 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.459 824 6442 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.460 824 6442 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.460 824 6442 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
06-14 01:30:09.475 1231 25557 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0110]
06-14 01:30:09.479 2088 2781 E Hicom_PolicyCenterService: handleAppDied. null == mMultipathAppsMap
06-14 01:30:09.480 2088 2104 E HsmCoreServiceImpl: onTransact in code is: 102
06-14 01:30:09.484 1231 15387 E WindowManager: win=Window{b8833ec u0 my.bigwin.com/my.bigwin.com.MainActivity EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
06-14 01:30:09.504 1231 1269 E libprocessgroup: Error encountered killing process cgroup uid 99036 pid 13973: No such file or directory
06-14 01:30:09.507 5645 5699 E BluetoothLeScanner: updateLeScanParams win:60 ivl:600
06-14 01:30:09.511 1544 1544 E OCTTY : [main:370] install already set to
06-14 01:30:09.511 1544 1544 E OCTTY :
06-14 01:30:09.513 2195 2503 E powergenie_jni: FUNC: setHisiCABCInner() LINE: 60 open /dev/pri_lcd error: No such file or directory
06-14 01:30:09.513 2195 2503 E DisplayControl: Fail! set cabc mode: 1
06-14 01:30:09.515 2088 2781 E XEngineMpipControl: Invalid SubId
06-14 01:30:09.519 1544 1544 E OCTTY : [main:370] install already set to
06-14 01:30:09.519 1544 1544 E OCTTY :
06-14 01:30:09.520 2088 2990 E DollieAdapterService: notifyActivityState pkg:my.bigwin.com/my.bigwin.com.MainActivity state:18 fg:false mUid:10275
06-14 01:30:09.522 2228 2312 E HwLauncher: SettingsEx , no such field.
06-14 01:30:09.538 661 3418 E BufferQueueProducer: [] mConsumerName == NULL!!!!!!
06-14 01:30:09.541 2393 2407 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]
06-14 01:30:09.544 2195 3326 E AwareLog: SPKSchedFeature: Uid has been sent, ignore.
06-14 01:30:09.544 2088 31236 E HsmCoreServiceImpl: onTransact in code is: 102
06-14 01:30:09.547 2088 31236 E HsmCoreServiceImpl: onTransact in code is: 103
06-14 01:30:09.555 2088 2990 E DollieAdapterService: notifyActivityState pkg:com.huawei.android.launcher/com.huawei.android.launcher.drawer.DrawerLauncher state:2 fg:true mUid:10087
06-14 01:30:09.555 3819 3837 E AppLifeChangeSensor: CAWARENESS: activityResumed mAppLifeChangeCallback is null
06-14 01:30:09.558 1231 1938 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0111]
06-14 01:30:09.972 1231 10719 E NetworkStats: getIfaceStats rmnet0 type 5 failed, return qtaguid stat 190962
06-14 01:30:09.972 1231 1244 E NetworkStats: getIfaceStats rmnet0 type 4 failed, return qtaguid stat 394005
I see all kinds of things, but I am unable to figure out which one causes the crash.
thanks
After all it had to do with the languages where it says Requiring unknown module "./locale/en-GB".
I fixed this and it was up and running.
Related
I am using react native version 0.61.5 My application works fine in development build but when i create a release (signed) apk, it crashes after login. I have already created a logcat file, in logcat it shows error
04-24 20:13:26.448 24977 25054 E AndroidRuntime: Process: com.reactnativestarter, PID: 24977
04-24 20:13:26.448 24977 25054 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: undefined is not a function, js engine: hermes, stack:
04-24 20:13:26.448 24977 25054 E AndroidRuntime: anonymous (address at#1:479896
04-24 20:13:26.448 24977 25054 E AndroidRuntime: apply#-1
04-24 20:13:26.448 24977 25054 E AndroidRuntime: value (address at#1:81355
04-24 20:13:26.448 24977 25054 E AndroidRuntime: apply#-1
04-24 20:13:26.448 24977 25054 E AndroidRuntime: value (address at#1:76764
04-24 20:13:26.448 24977 25054 E AndroidRuntime: anonymous (address at#1:75185
04-24 20:13:26.448 24977 25054 E AndroidRuntime: value (address at#1:76361
04-24 20:13:26.448 24977 25054 E AndroidRuntime: value (address at#1:75143
04-24 20:13:26.448 24977 25054 E AndroidRuntime:
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:71)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
04-24 20:13:26.448 24977 25054 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
already tried to set this false def enableProguardInReleaseBuilds = false but didn't work.
I also tried to disable Hermes but didn't work. Please help!
probably you have an error in that component please recheck your login
I'm creating a fairly small app, 3 screens using simple components such as Flatlist, Image and Searchbar. It runs nicely except when I try to test with --variant=release.
I did the signing process and I can confirm this part works as I've deployed my app in Google Beta successfully (only to see the test report from Google showing my app crashed on all simulators).
I've also tried everything I could find on Google (cleaning, reset cache, upgrading everything to last version, even starting my project from scratch and just copy pasting my src folder in).
Here's my package.json, in case something's wrong with my dependencies I couldn't see :
"dependencies": {
"#react-native-community/async-storage": "^1.6.2",
"axios": "^0.19.0",
"he": "^1.2.0",
"moment": "^2.24.0",
"react": "16.9.0",
"react-native": "0.61.2",
"react-native-device-info": "^4.0.1",
"react-native-elements": "^1.2.6",
"react-native-extended-stylesheet": "^0.12.0",
"react-native-fast-image": "^7.0.2",
"react-native-gallery-swiper": "^1.23.1",
"react-native-gesture-handler": "^1.4.1",
"react-native-reanimated": "^1.3.0",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^4.0.10",
"react-navigation-drawer": "^2.2.2",
"react-navigation-hooks": "^1.1.0",
"react-navigation-stack": "^1.9.4",
"react-redux": "^7.1.1",
"redux": "^4.0.4",
"redux-devtools-extension": "^2.13.8",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"#babel/core": "^7.6.4",
"#babel/runtime": "^7.6.3",
"#react-native-community/eslint-config": "^0.0.5",
"babel-jest": "^24.9.0",
"eslint": "^6.5.1",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
Here's an extract of the logcat file when I start the app :
10-22 10:40:51.265 32285 32285 E elevenelevenap: Not starting debugger since process cannot load the jdwp agent.
10-22 10:40:51.340 1817 1921 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
10-22 10:40:51.341 1817 1921 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
10-22 10:40:51.822 1817 1817 E Layer : [Surface(name=AppWindowToken{b55b6c0 token=Token{4cb0043 ActivityRecord{43741f2 u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t5}}})/#0x2af8cf8 - animation-leash#0] No local sync point found
10-22 10:40:51.823 1817 1817 E Layer : [Surface(name=AppWindowToken{b55b6c0 token=Token{4cb0043 ActivityRecord{43741f2 u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t5}}})/#0x2af8cf8 - animation-leash#0] No local sync point found
10-22 10:40:51.823 1817 1817 E Layer : [Surface(name=AppWindowToken{470f541 token=Token{8241428 ActivityRecord{21c524b u0 com.elevenelevenapp/.MainActivity t95}}})/#0xf0a643b - animation-leash#0] No local sync point found
10-22 10:40:51.823 1817 1817 E Layer : [Surface(name=AppWindowToken{470f541 token=Token{8241428 ActivityRecord{21c524b u0 com.elevenelevenapp/.MainActivity t95}}})/#0xf0a643b - animation-leash#0] No local sync point found
10-22 10:40:51.840 1817 1817 E Layer : [Surface(name=AppWindowToken{b55b6c0 token=Token{4cb0043 ActivityRecord{43741f2 u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t5}}})/#0x2af8cf8 - animation-leash#0] No local sync point found
10-22 10:40:51.840 1817 1817 E Layer : [Surface(name=AppWindowToken{470f541 token=Token{8241428 ActivityRecord{21c524b u0 com.elevenelevenapp/.MainActivity t95}}})/#0xf0a643b - animation-leash#0] No local sync point found
10-22 10:40:52.105 32285 32310 E ReactNativeJS: TypeError: undefined is not an object (evaluating 'm.hot.accept')
10-22 10:40:52.107 32285 32310 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
10-22 10:40:52.109 32285 32311 E AndroidRuntime: Process: com.elevenelevenapp, PID: 32285
10-22 10:40:52.109 32285 32311 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: undefined is not an object (evaluating 'm.hot.accept'), stack:
10-22 10:40:52.109 32285 32311 E AndroidRuntime: <unknown>#383:349
10-22 10:40:52.109 32285 32311 E AndroidRuntime: v#2:1474
10-22 10:40:52.109 32285 32311 E AndroidRuntime: <unknown>#6:58
10-22 10:40:52.109 32285 32311 E AndroidRuntime: v#2:1474
10-22 10:40:52.109 32285 32311 E AndroidRuntime: d#2:876
10-22 10:40:52.109 32285 32311 E AndroidRuntime: global code#968:4
10-22 10:40:52.109 32285 32311 E AndroidRuntime:
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:71)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
10-22 10:40:52.109 32285 32311 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
10-22 10:40:52.174 1799 2450 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-22 10:40:52.174 1799 2450 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-22 10:40:52.197 2038 2142 E InputDispatcher: channel '1977922 com.elevenelevenapp/com.elevenelevenapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
As you can see it shows a few errors but so far I couldn't trace them back to something I could work on, hence asking you guys some help, I'm quite desperate.
Thanks
Maybe you need application to add inside the tag of AndroidManifest.xml android:usesCleartextTraffic="true".
like this:
<application
...
android:usesCleartextTraffic="true"
...
>
...
</application>
Let me know if this works for, though im kind of late right now
I have added rnfirebase to my project recently for fcm, I have setup everything as per the documentation and I can even see notifications coming through to my app in emulator(debug mode). But app crashes only in release mode. Says 'Unfortunately app has stopped'. build has no errors, I have even checked android studio and there are no errors there as well.
Can someone help me debug the issue? Thanks
My logcat output is below
12-06 15:15:57.041 9500-9500/? I/art: Not late-enabling -Xcheck:jni (already on)
12-06 15:15:57.116 9500-9500/com.demoparentapp D/SoLoader: init start
adding system library source: /vendor/lib
adding system library source: /system/lib
12-06 15:15:57.117 9500-9500/com.demoparentapp D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.demoparentapp-1/lib/x86 flags = 0]
12-06 15:15:57.132 9500-9500/com.demoparentapp D/SoLoader: adding backup source: com.facebook.soloader.ApkSoSource[root = /data/data/com.demoparentapp/lib-main flags = 1]
12-06 15:15:57.133 9500-9500/com.demoparentapp D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]
12-06 15:15:57.134 9500-9500/com.demoparentapp D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.demoparentapp-1/lib/x86 flags = 0]
Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.demoparentapp/lib-main flags = 1]
12-06 15:15:57.134 9500-9500/com.demoparentapp V/fb-UnpackingSoSource: locked dso store /data/user/0/com.demoparentapp/lib-main
12-06 15:15:57.138 9500-9500/com.demoparentapp I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.demoparentapp/lib-main
12-06 15:15:57.138 9500-9500/com.demoparentapp V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.demoparentapp/lib-main
12-06 15:15:57.141 9500-9500/com.demoparentapp D/SoLoader: init finish: 4 SO sources prepared
init exiting
12-06 15:15:57.189 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.ctor()
12-06 15:15:57.189 9500-9500/com.demoparentapp D/SoLoader: init exiting
12-06 15:15:57.250 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.createReactContextInBackground()
12-06 15:15:57.253 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
12-06 15:15:57.255 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()
12-06 15:15:57.256 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.recreateReactContextInBackground()
12-06 15:15:57.257 9500-9500/com.demoparentapp D/ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
12-06 15:15:57.267 9500-9516/com.demoparentapp D/SoLoader: About to load: libreactnativejni.so
12-06 15:15:57.268 9500-9516/com.demoparentapp D/SoLoader: libreactnativejni.so not found on /data/data/com.demoparentapp/lib-main
12-06 15:15:57.269 9500-9516/com.demoparentapp D/SoLoader: libreactnativejni.so found on /data/app/com.demoparentapp-1/lib/x86
Not resolving dependencies for libreactnativejni.so
12-06 15:15:57.346 9500-9517/com.demoparentapp W/unknown:InspectorPackagerConnection: Couldn't connect to packager, will silently retry
12-06 15:15:57.350 9500-9519/com.demoparentapp D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
12-06 15:15:57.394 9500-9500/com.demoparentapp W/unknown:ReactNative: Packager connection already open, nooping.
12-06 15:15:57.420 9500-9516/com.demoparentapp D/SoLoader: Loaded: libreactnativejni.so
About to load: libfb.so
libfb.so not found on /data/data/com.demoparentapp/lib-main
12-06 15:15:57.421 9500-9516/com.demoparentapp D/SoLoader: libfb.so found on /data/app/com.demoparentapp-1/lib/x86
Not resolving dependencies for libfb.so
12-06 15:15:57.424 9500-9516/com.demoparentapp D/SoLoader: About to load: libfb.so
libfb.so not found on /data/data/com.demoparentapp/lib-main
libfb.so found on /data/app/com.demoparentapp-1/lib/x86
Not resolving dependencies for libfb.so
12-06 15:15:57.425 9500-9516/com.demoparentapp I/art: Thread[12,tid=9516,Native,Thread*=0xec47ac00,peer=0x12d5f400,"Thread-110"] recursive attempt to load library "/data/app/com.demoparentapp-1/lib/x86/libfb.so"
12-06 15:15:57.425 9500-9516/com.demoparentapp D/SoLoader: Loaded: libfb.so
Loaded: libfb.so
12-06 15:15:57.431 9500-9516/com.demoparentapp D/ReactNative: ReactInstanceManager.createReactContext()
12-06 15:15:57.440 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
12-06 15:15:57.441 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
12-06 15:15:57.442 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
12-06 15:15:57.443 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
12-06 15:15:57.444 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
12-06 15:15:57.445 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
12-06 15:15:57.446 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager
12-06 15:15:57.450 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
12-06 15:15:57.453 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
12-06 15:15:57.454 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
12-06 15:15:57.456 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
12-06 15:15:57.458 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
12-06 15:15:57.459 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
12-06 15:15:57.462 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
12-06 15:15:57.465 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
12-06 15:15:57.466 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
12-06 15:15:57.470 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
12-06 15:15:57.481 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
12-06 15:15:57.490 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
12-06 15:15:57.492 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
12-06 15:15:57.493 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
12-06 15:15:57.494 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
12-06 15:15:57.500 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
12-06 15:15:57.501 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
12-06 15:15:57.502 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
12-06 15:15:57.503 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
12-06 15:15:57.506 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
12-06 15:15:57.507 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
12-06 15:15:57.508 9500-9519/com.demoparentapp I/OpenGLRenderer: Initialized EGL, version 1.4
12-06 15:15:57.508 9500-9519/com.demoparentapp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
12-06 15:15:57.508 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
12-06 15:15:57.509 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
12-06 15:15:57.510 9500-9516/com.demoparentapp W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
12-06 15:15:57.511 9500-9519/com.demoparentapp D/EGL_emulation: eglCreateContext: 0xefff9e20: maj 3 min 0 rcv 3
12-06 15:15:57.515 9500-9519/com.demoparentapp D/EGL_emulation: eglMakeCurrent: 0xefff9e20: ver 3 0 (tinfo 0xe9e820d0)
12-06 15:15:57.518 9500-9519/com.demoparentapp E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
glUtilsParamSize: unknow param 0x00008824
12-06 15:15:57.535 9500-9516/com.demoparentapp D/ReactNative: Initializing React Xplat Bridge.
12-06 15:15:57.541 9500-9516/com.demoparentapp D/ReactNative: Initializing React Xplat Bridge before initializeBridge
12-06 15:15:57.552 9500-9519/com.demoparentapp D/EGL_emulation: eglMakeCurrent: 0xefff9e20: ver 3 0 (tinfo 0xe9e820d0)
12-06 15:15:57.561 9500-9516/com.demoparentapp D/ReactNative: Initializing React Xplat Bridge after initializeBridge
CatalystInstanceImpl.runJSBundle()
12-06 15:15:57.565 9500-9525/com.demoparentapp D/ReactNative: ReactInstanceManager.setupReactContext()
CatalystInstanceImpl.initialize()
12-06 15:15:57.570 9500-9525/com.demoparentapp D/ReactNative: ReactInstanceManager.attachRootViewToInstance()
12-06 15:15:57.570 9500-9525/com.demoparentapp D/SoLoader: About to load: libyoga.so
12-06 15:15:57.571 9500-9525/com.demoparentapp D/SoLoader: libyoga.so not found on /data/data/com.demoparentapp/lib-main
libyoga.so found on /data/app/com.demoparentapp-1/lib/x86
Not resolving dependencies for libyoga.so
12-06 15:15:57.600 9500-9525/com.demoparentapp D/SoLoader: Loaded: libyoga.so
12-06 15:15:57.610 9500-9500/com.demoparentapp W/unknown:ReactNative: Packager connection already open, nooping.
12-06 15:15:57.627 9500-9525/com.demoparentapp D/SoLoader: init exiting
12-06 15:15:57.646 9500-9525/com.demoparentapp W/unknown:ReactNative: Tried to update non-existent root tag: 1
Tried to update non-existent root tag: 1
12-06 15:15:57.902 9500-9525/com.demoparentapp I/WebViewFactory: Loading com.android.webview version 44.0.2403.119 (code 246011960)
12-06 15:15:57.960 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/utils/apps.js -> node_modules/react-native-firebase/dist/modules/core/app.js -> node_modules/react-native-firebase/dist/utils/apps.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:57.965 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/admob/index.js -> node_modules/react-native-firebase/dist/modules/admob/Interstitial.js -> node_modules/react-native-firebase/dist/modules/admob/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:57.970 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/admob/index.js -> node_modules/react-native-firebase/dist/modules/admob/RewardedVideo.js -> node_modules/react-native-firebase/dist/modules/admob/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:57.970 9500-9525/com.demoparentapp W/System: ClassLoader referenced unknown path: /system/app/webview/lib/x86
12-06 15:15:58.010 9500-9525/com.demoparentapp I/LibraryLoader: Time to load native libraries: 24 ms (timestamps 2122-2146)
Expected native library version number "",actual native library version number ""
12-06 15:15:58.028 9500-9525/com.demoparentapp W/art: Attempt to remove non-JNI local reference, dumping thread
12-06 15:15:58.058 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/database/Reference.js -> node_modules/react-native-firebase/dist/utils/SyncTree.js -> node_modules/react-native-firebase/dist/modules/database/Reference.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.060 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/core/firebase.js -> node_modules/react-native-firebase/dist/utils/apps.js -> node_modules/react-native-firebase/dist/modules/core/app.js -> node_modules/react-native-firebase/dist/modules/database/index.js -> node_modules/react-native-firebase/dist/modules/core/firebase.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.063 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/firestore/DocumentSnapshot.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentReference.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentSnapshot.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
Require cycle: node_modules/react-native-firebase/dist/modules/firestore/CollectionReference.js -> node_modules/react-native-firebase/dist/modules/firestore/Query.js -> node_modules/react-native-firebase/dist/modules/firestore/QuerySnapshot.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentChange.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentSnapshot.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentReference.js -> node_modules/react-native-firebase/dist/modules/firestore/CollectionReference.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.064 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/firestore/DocumentReference.js -> node_modules/react-native-firebase/dist/modules/firestore/utils/serialize.js -> node_modules/react-native-firebase/dist/modules/firestore/DocumentReference.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.073 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/core/firebase.js -> node_modules/react-native-firebase/dist/utils/apps.js -> node_modules/react-native-firebase/dist/modules/core/app.js -> node_modules/react-native-firebase/dist/modules/functions/index.js -> node_modules/react-native-firebase/dist/modules/core/firebase.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.082 9500-9524/com.demoparentapp W/ReactNativeJS: Require cycle: node_modules/react-native-firebase/dist/modules/storage/index.js -> node_modules/react-native-firebase/dist/modules/storage/reference.js -> node_modules/react-native-firebase/dist/modules/storage/task.js -> node_modules/react-native-firebase/dist/modules/storage/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
12-06 15:15:58.086 9500-9524/com.demoparentapp E/ReactNativeJS: Java exception in 'NativeModules'
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/FirebaseApp;
12-06 15:15:58.102 9500-9524/com.demoparentapp E/ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
12-06 15:15:58.158 9500-9519/com.demoparentapp D/EGL_emulation: eglMakeCurrent: 0xefff9e20: ver 3 0 (tinfo 0xe9e820d0)
12-06 15:16:00.099 9500-9519/com.demoparentapp D/EGL_emulation: eglMakeCurrent: 0xefff9e20: ver 3 0 (tinfo 0xe9e820d0)
12-06 15:16:00.103 9500-9519/com.demoparentapp E/Surface: getSlotFromBufferLocked: unknown buffer: 0xf413ec40
12-06 15:16:00.142 9500-9519/com.demoparentapp E/Surface: getSlotFromBufferLocked: unknown buffer: 0xf413c800
Here is the output from adb logcat command
12-06 18:51:24.991 12241 12260 E Surface : getSlotFromBufferLocked: unknown buffer: 0xee5136e0
12-06 18:51:27.311 1355 1697 W audio_hw_generic: Not supplying enough data to HAL, expected position 15554301 , only wrote 15417164
12-06 18:52:00.056 1271 1318 D hwcomposer: hw_composer sent 110 syncs in 60s
12-06 18:52:15.556 1639 1657 E BluetoothAdapter: Bluetooth binder is null
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: Failed to read cpu-freq
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state: open failed: ENOENT (No such file or directory)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at libcore.io.IoBridge.open(IoBridge.java:452)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at java.io.FileInputStream.<init>(FileInputStream.java:76)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at java.io.FileInputStream.<init>(FileInputStream.java:103)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at java.io.FileReader.<init>(FileReader.java:66)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at com.android.internal.os.KernelCpuSpeedReader.readDelta(KernelCpuSpeedReader.java:49)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8002)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at android.os.Handler.dispatchMessage(Handler.java:102)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at android.os.Looper.loop(Looper.java:148)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at android.os.HandlerThread.run(HandlerThread.java:61)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at com.android.server.ServiceThread.run(ServiceThread.java:46)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at libcore.io.Posix.open(Native Method)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: at libcore.io.IoBridge.open(IoBridge.java:438)
12-06 18:52:15.557 1639 1657 E KernelCpuSpeedReader: ... 11 more
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: Failed to read uid_cputime
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: java.io.FileNotFoundException: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at libcore.io.IoBridge.open(IoBridge.java:452)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at java.io.FileInputStream.<init>(FileInputStream.java:76)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at java.io.FileInputStream.<init>(FileInputStream.java:103)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at java.io.FileReader.<init>(FileReader.java:66)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at com.android.internal.os.KernelUidCpuTimeReader.readDelta(KernelUidCpuTimeReader.java:71)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8031)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at android.os.Handler.dispatchMessage(Handler.java:102)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at android.os.Looper.loop(Looper.java:148)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at android.os.HandlerThread.run(HandlerThread.java:61)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at com.android.server.ServiceThread.run(ServiceThread.java:46)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at libcore.io.Posix.open(Native Method)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: at libcore.io.IoBridge.open(IoBridge.java:438)
12-06 18:52:15.557 1639 1657 E KernelUidCpuTimeReader: ... 11 more
I want to call a method using p0 ApplicationContext:Landroid/content/Context.
How can I get the ApplicationContext for the class?
I tried calling my method from the init method of the class in order to copy p0, but android failed to verify the class with this.
Any ideas? I will provide more detail if required.
#JesusFreke : More info
1 EDITED CRASH
10-06 15:43:48.081 14308 14557 E AndroidRuntime: FATAL EXCEPTION: WFSync
10-06 15:43:48.081 14308 14557 E AndroidRuntime: Process: com.zynga.words3, PID: 14308
10-06 15:43:48.081 14308 14557 E AndroidRuntime: java.lang.VerifyError: Verifier rejected class com.zynga.wfframework.appmodel.game.GameCenter$6: void com.zynga.wfframework.appmodel.game.GameCenter$6.<init>(com.zynga.wfframework.appmodel.game.GameCenter, android.content.Context, com.zynga.wfframework.appmodel.AppModelCallback, java.util.Date, long, java.util.Date, long, com.zynga.wfframework.remoteservice.IRemoteService$PollType, com.zynga.wfframework.appmodel.sync.SyncService$SyncServicePollType, android.content.Intent, int) failed to verify: void com.zynga.wfframework.appmodel.game.GameCenter$6.<init>(com.zynga.wfframework.appmodel.game.GameCenter, android.content.Context, com.zynga.wfframework.appmodel.AppModelCallback, java.util.Date, long, java.util.Date, long, com.zynga.wfframework.remoteservice.IRemoteService$PollType, com.zynga.wfframework.appmodel.sync.SyncService$SyncServicePollType, android.content.Intent, int):
[0x41] 'this' arg must be initialized
(declaration of 'com.zynga.wfframework.appmodel.game.GameCenter$6' appears in /data/app/com.zynga.words3-2/base.apk:classes3.dex)
10-06 15:43:48.081 14308 14557 E AndroidRuntime: at com.zynga.wfframework.appmodel.game.GameCenter.refreshState(SourceFile:1201)
10-06 15:43:48.081 14308 14557 E AndroidRuntime: at com.zynga.wfframework.appmodel.game.GameCenter.refreshState(SourceFile:1144)
10-06 15:43:48.081 14308 14557 E AndroidRuntime: at com.zynga.wfframework.appmodel.sync.SyncService$1.run(SourceFile:189)
10-06 15:43:48.081 14308 14557 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
2 PARTIAL CODE
.method constructor <init>(Lcom/zynga/wfframework/appmodel/game/GameCenter;Landroid/content/Context;Lcom/zynga/wfframework/appmodel/AppModelCallback;Ljava/util/Date;JLjava/util/Date;JLcom/zynga/wfframework/remoteservice/IRemoteService$PollType;Lcom/zynga/wfframework/appmodel/sync/SyncService$SyncServicePollType;Landroid/content/Intent;I)V
.registers 16
...
##41
#v0=(Reference,Lcom/zynga/wfframework/remoteservice/RemoteServiceSyncResult;);v1=(Null);p0=(UninitThis,Lcom/zynga/wfframework/appmodel/game/GameCenter$6;);
invoke-virtual {p0, v1, v0}, Lcom/zynga/wfframework/appmodel/game/GameCenter$6;->onPostExecute(ILcom/zynga/wfframework/remoteservice/RemoteServiceSyncResult;)V
Why is p0 not initialised? What can I do to catch it initialised?
Hope you can help. By the way, I fixed the problem in another way, but this relies on an error method in the class being called. I would prefer to find another solution.
In a constructor, the this argument (p0) starts out as uninitialized, and it can't be used until it has been initialized. You must call the superclass's <init> method to initialize it.
e.g. if the super class is Lcom/some/superclass;, and it has a no-args constructor, you would need to add
invoke-direct {p0}, Lcom/some/superclass;-><init>()V
at some point before you try to use p0.
Assuming you're starting out with a working method to begin with, the constructor should already have such an instruction. In which case, you just need to move your method call after it.
I have some data saved to my Shared Preferences i am able to access it until i am not changing storage permission explicitly in application permission in marshmallow(Does not matter in first time this is allowed or not).
CASE 1: when i change storage permission to allow for any task at run time this is working fine,NO issue.
Case 2: again i try to read from shared preference but this time i have denied storage permission explicitly in application permission, its crashes with a null pointer exception,
kindly confirm storage permission is related to external storage or internal storage as well as shared preference.
log for error :
**02-03 12:59:52.235: E/AndroidRuntime(6970): at android.os.AsyncTask$3.done(AsyncTask.java:309)**
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
02-03 12:59:52.235: E/AndroidRuntime(6970): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.lang.Thread.run(Thread.java:818)
02-03 12:59:52.235: E/AndroidRuntime(6970): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] com.necdisplay.IntlWirelessDataApp.common.SpecialClassMappingForSharedPreference.getData()' on a null object reference
02-03 12:59:52.235: E/AndroidRuntime(6970): at com.necdisplay.IntlWirelessDataApp.common.Function.compareAndUpdateModelName(Function.java:3549)
02-03 12:59:52.235: E/AndroidRuntime(6970): at com.necdisplay.IntlWirelessDataApp.common.Function.readModelName(Function.java:3665)
02-03 12:59:52.235: E/AndroidRuntime(6970): at com.necdisplay.IntlWirelessDataApp.common.Function.readServiceData(Function.java:2539)
02-03 12:59:52.235: E/AndroidRuntime(6970): at com.necdisplay.IntlWirelessDataApp.common.ReadWriteTask.doInBackground(ReadWriteTask.java:229)
02-03 12:59:52.235: E/AndroidRuntime(6970): at android.os.AsyncTask$2.call(AsyncTask.java:295)
02-03 12:59:52.235: E/AndroidRuntime(6970): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-03 12:59:52.235: E/AndroidRuntime(6970): ... 4 more
02-03 12:59:52.431: I/com.necdisplay.IntlWirelessDataApp.common.Utility(6970): getFileList
02-03 12:59:52.436: I/com.necdisplay.IntlWirelessDataApp.common.Utility(6970): getFileList
02-03 12:59:52.961: E/WindowManager(6970): android.view.WindowLeaked: Activity com.necdisplay.IntlWirelessDataApp.serviceconnection.ServiceConnection has leaked window com.android.internal.policy.PhoneWindow$DecorView{940db25 V.E...... R......D 0,0-959,192} that was originally added here
02-03 12:59:52.961: E/WindowManager(6970): at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368)
02-03 12:59:52.961: E/WindowManager(6970): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
02-03 12:59:52.961: E/WindowManager(6970): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
02-03 12:59:52.961: E/WindowManager(6970): at android.app.Dialog.show(Dialog.java:319)
02-03 12:59:52.961: E/WindowManager(6970): at com.necdisplay.IntlWirelessDataApp.common.ReadWriteTask.onPreExecute(ReadWriteTask.java:199)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:604)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.AsyncTask.execute(AsyncTask.java:551)
02-03 12:59:52.961: E/WindowManager(6970): at com.necdisplay.IntlWirelessDataApp.common.AsyncTaskForTagDetection.onPostExecute(AsyncTaskForTagDetection.java:205)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.AsyncTask.finish(AsyncTask.java:651)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.AsyncTask.-wrap1(AsyncTask.java)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.Handler.dispatchMessage(Handler.java:102)
02-03 12:59:52.961: E/WindowManager(6970): at android.os.Looper.loop(Looper.java:148)
02-03 12:59:52.961: E/WindowManager(6970): at android.app.ActivityThread.main(ActivityThread.java:5417)
02-03 12:59:52.961: E/WindowManager(6970): at java.lang.reflect.Method.invoke(Native Method)
02-03 12:59:52.961: E/WindowManager(6970): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
Shared Preferences are not affected by user app permissions afaik.
Even writing files in app directory don't require permissions, according to docs https://developer.android.com/guide/topics/data/data-storage.html.
I would suspect SpecialClassMappingForSharedPreference to cause the issue.