How to fix React native app stopped working on android - android

i added firebase to my react native project and it's stopped running on my emulator. I've had this issue with firebase & react-native some years back, don't know what the fix was.
Running adb logcat displays this
04-24 22:13:32.453 371 394 E system_server: Invalid ID 0x00000000.
04-24 22:13:32.465 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.468 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.471 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.476 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.479 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.480 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.482 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.484 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.485 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.486 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.487 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.488 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.493 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.494 4759 4759 E com.mvmarket: Unknown bits set in runtime_flags: 0x8000
04-24 22:13:32.494 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.748 174 4798 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.818 4759 4807 E AndroidRuntime: FATAL EXCEPTION: create_react_context
04-24 22:13:32.818 4759 4807 E AndroidRuntime: Process: com.mvmarket, PID: 4759
04-24 22:13:32.818 4759 4807 E AndroidRuntime: java.lang.NoSuchMethodError: No static method createEgl14([I)Lorg/webrtc/EglBase14; in class Lorg/webrtc/EglBase; or its super classes (declaration of 'org.webrtc.EglBase' appears in /data/app/com.mvmarket-R-KOl49no3K6lCqfeV5j9A==/base.apk)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBase(EglUtils.java:35)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBaseContext(EglUtils.java:62)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:107)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:76)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModulePackage.createNativeModules(WebRTCModulePackage.java:15)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1476)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1447)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1341)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:138)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1111)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
04-24 22:13:32.850 371 473 E InputDispatcher: channel '932d8ad com.mvmarket/com.mvmarket.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.874 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.890 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.906 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.924 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.940 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.956 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.974 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.990 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found

Fixed it
According to the stacktrace, it was an issue with react-native-webrtc
Fixed with this https://stackoverflow.com/a/67592188/11901942
Thanks #Gabe Sechan

Related

Qt Custom Android launcher black screen on HOME key

I'm debugging an issue with android > 7 (didn't manage to get the issue on android 6), where an application built as a launcher would result in a black screen on home key press.
I created a simple QtQuick application, with just an ApplicationWindow and a Rectangle, nothing special, just to have something visual.
In AndroidManifest.xml (generated by Qt), I added :
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
and set android:launchMode to "singleInstance" (also tried singleTask).
Tried building the app with: Qt 5.12.5/15.13.2/5.15.1, NDK 19/21 and in 99% of the builds I just get a black screen when pressing home key.
There are some rare cases where the home key works and it will open the launcher as it should (after manually launching another activity) , when that happens it keeps working till I reinstall it again.
I can't find any solution to this issue, or what could be the possible reason that in rare cases it works. Only thing I could conclude so far is that there must be a difference in execution order when the application is launched.
This are the adb logs when I launch Youtube then press home key:
09-10 14:29:05.229 4531 4600 I chromium: [4531:4600:INFO:mdns_app_filter.cc(1531)] MdnsAppFilter: Done announcing.
09-10 14:29:07.087 3184 3298 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
09-10 14:29:07.839 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.859 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.860 13637 13637 I AVUtils : Opened libavenhancements.so
09-10 14:29:07.860 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.860 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.860 13637 13637 I AVUtils : Opened libavenhancements.so
09-10 14:29:07.860 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.860 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.865 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.865 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.865 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.868 13637 13637 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-10 14:29:08.255 13637 13637 W app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
09-10 14:29:08.268 13637 13637 I app_process: The ClassLoaderContext is a special shared library.
09-10 14:29:08.376 13637 13637 D AndroidRuntime: Calling main entry com.android.commands.input.Input
09-10 14:29:08.377 13637 13637 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=9786662, downTime=9786662, deviceId=-1, source=0x101 }
09-10 14:29:08.382 13637 13637 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=9786662, downTime=9786662, deviceId=-1, source=0x101 }
09-10 14:29:08.387 3184 3261 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity (has extras)} from uid 1000
09-10 14:29:08.407 3328 3328 I vol.Events: writeEvent dismiss_dialog volume_controller
09-10 14:29:08.413 13567 13567 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#ce7a413
09-10 14:29:08.420 13637 13637 D AndroidRuntime: Shutting down VM
09-10 14:29:08.446 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.494 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.494 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.641 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.642 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.646 13567 13567 E Qt JAVA : Surface 1 not found!
09-10 14:29:08.652 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.655 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.663 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.663 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.673 3318 3318 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3160
09-10 14:29:08.679 3318 3318 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1829
09-10 14:29:08.727 3184 3290 W HdmiCecController: Failed to send <Text View On> src: 4, dst: 0 with errorCode=1
09-10 14:29:08.743 3184 3207 I ActivityManager: Displayed org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity: +310ms (total +5s740ms)
09-10 14:29:08.903 3004 4033 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen org.qtproject.testlauncher#0
09-10 14:29:08.903 3004 4033 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen org.qtproject.testlauncher#0
09-10 14:29:08.925 7169 7169 I starboard: Prepare to suspend
09-10 14:29:08.926 7169 7169 I starboard_media: Media focus: none
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: com.google.android.youtube.tv's active state now is : false
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: Cast TV app is inactive now: com.google.android.youtube.tv
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: Cast TV app is disconnected now: com.google.android.youtube.tv
09-10 14:29:08.938 4531 4531 D WargServiceStub: TV app is closed: com.google.android.libraries.cast.tv.warg.service.internal.CastTvApp#bfa4d3f
09-10 14:29:08.939 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1532)] App stopping: AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.939 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1536)] App stopped: AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.940 4531 4531 I chromium: [4531:4531:INFO:resource_manager_impl.cc(244)] All resources released for app AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.940 4531 4531 E chromium: [4531:4531:ERROR:hash_util.cc(101)] Unknown app_id AndroidNativeApp
09-10 14:29:08.940 4531 4531 E chromium: [4531:4531:ERROR:cast_metrics_helper.cc(129)] No start time for app: app_id=E8C28D3C
09-10 14:29:08.940 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1791)] Focusing foreground application: session=312d0999-4abe-4b47-b2d4-6a0a87f460f7
09-10 14:29:08.941 4531 4531 I chromium: [4531:4531:INFO:api_reboot.cc(286)] active_activities count=0
09-10 14:29:08.941 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.457): CastV2.Connection.Connect.In
09-10 14:29:08.941 4531 4531 E chromium: [4531:4531:ERROR:media_classifier_manager.cc(89)] No mixer control available
09-10 14:29:08.942 4531 4531 W chromium: [4531:4531:WARNING:media_control_handler.cc(49)] Unknown player state:
09-10 14:29:08.943 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.458): CastV2.Connection.Connect.In
09-10 14:29:08.943 4531 4531 D cr_CastToNative: [NativeApplication.java:224] onDestroyed
09-10 14:29:08.944 4531 4600 I chromium: [4531:4600:INFO:mdns_cast_service.cc(780)] Device discovery state is idle
09-10 14:29:08.947 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456): CastV2.Connection.Close.Out
09-10 14:29:08.948 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.70): CastV2.Connection.Close.Out
09-10 14:29:08.948 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.70): CastV2.Connection.Close.Out
09-10 14:29:08.949 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(1018)] Invalid connection: e0898d4e-696d-4ffb-aed7-910ddceb8a24:local-client.455:mediacontrol-0
09-10 14:29:08.949 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.455): CastV2.Connection.Close.Out
09-10 14:29:08.949 4531 4601 I chromium: [4531:4601:INFO:v2_transport.cc(472)] Removed Cast V2 endpoint: id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.950 4531 4601 I chromium: [4531:4601:INFO:v2_transport.cc(1212)] Heartbeat for V2TransportImpl stopping
09-10 14:29:09.067 4531 4601 E chromium: [4531:4601:ERROR:connection_namespace_handler.cc(214)] Connection not found: e0898d4e-696d-4ffb-aed7-910ddceb8a24:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456:com.google.android.gms-308
09-10 14:29:09.070 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456): CastV2.Connection.Close.In.NotFound
09-10 14:29:09.108 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
09-10 14:29:09.180 7169 7169 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
09-10 14:29:09.208 3184 3290 W HdmiCecController: Failed to send <Give Device Power Status> src: 4, dst: 0 with errorCode=1
09-10 14:29:09.194 7169 7169 I chatty : uid=10041(com.google.android.youtube.tv) identical 4 lines
09-10 14:29:09.197 7169 7169 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
09-10 14:29:09.307 7309 7317 W System : A resource failed to call close.
09-10 14:29:09.354 3184 3193 I system_server: Background concurrent copying GC freed 30729(1568KB) AllocSpace objects, 9(372KB) LOS objects, 19% free, 8MB/10MB, paused 326us total 204.430ms
09-10 14:29:09.398 7169 7240 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
I believe this is the main issue E Qt JAVA : Surface 1 not found! as it's not outputted in case when the home key works.
Then there is this case when I just press home key while having only launcher open:
09-10 14:35:43.408 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.418 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.418 14291 14291 I AVUtils : Opened libavenhancements.so
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 I AVUtils : Opened libavenhancements.so
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-10 14:35:43.484 4531 4600 I chromium: [4531:4600:INFO:mdns_app_filter.cc(2604)] MdnsAppFilter: responses sent in 40 seconds: 8
09-10 14:35:43.645 14291 14291 W app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
09-10 14:35:43.650 14291 14291 I app_process: The ClassLoaderContext is a special shared library.
09-10 14:35:43.718 14291 14291 D AndroidRuntime: Calling main entry com.android.commands.input.Input
09-10 14:35:43.719 14291 14291 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=10182003, downTime=10182003, deviceId=-1, source=0x101 }
09-10 14:35:43.723 14291 14291 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=10182003, downTime=10182003, deviceId=-1, source=0x101 }
09-10 14:35:43.727 3328 3328 I vol.Events: writeEvent dismiss_dialog volume_controller
09-10 14:35:43.728 3184 3261 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity (has extras)} from uid 1000
09-10 14:35:43.729 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.482): CastV2.Connection.Connect.In
09-10 14:35:43.747 14291 14291 D AndroidRuntime: Shutting down VM
09-10 14:35:43.751 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(853)] Not supported namespace: namespace=urn:x-cast:com.google.cast.multizone, conn=receiver-ad21cedb-cca5-1e11-0a29-1be0dd74fbc7:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.482:com.google.android.gms-334
09-10 14:35:43.777 14155 14155 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#1336c23
09-10 14:35:43.781 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:35:43.781 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:35:43.804 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
09-10 14:35:43.821 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:35:43.821 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:35:43.912 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.912 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.913 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.913 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.914 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.915 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.915 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.918 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.919 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.920 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.920 14155 14195 W libtestlauncher.so: QEGLPlatformContext: eglSwapBuffers failed: 300d
09-10 14:35:43.921 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.921 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.921 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.922 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.924 3004 3259 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.924 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.924 3004 3056 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.925 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.925 3004 3259 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.926 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.926 14155 14195 W libtestlauncher.so: QEGLPlatformContext: eglSwapBuffers failed: 300d
09-10 14:35:44.069 3184 3290 W HdmiCecController: Failed to send <Text View On> src: 4, dst: 0 with errorCode=1
09-10 14:35:44.548 3184 3290 W HdmiCecController: Failed to send <Give Device Power Status> src: 4, dst: 0 with errorCode=1
09-10 14:35:46.135 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.483): CastV2.Connection.Connect.In
09-10 14:35:46.154 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(853)] Not supported namespace: namespace=urn:x-cast:com.google.cast.multizone, conn=receiver-ad21cedb-cca5-1e11-0a29-1be0dd74fbc7:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.483:com.google.android.gms-335
09-10 14:35:46.172 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
Different behaviour, but I guess the main issue here is E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
Is there any way to fix this, as it seems like an Android/Qt issue? I'm all out of ideas what to try any more.

Release application always crashing on splash screen

I'm facing an issue with React Native release builds. Either on iPhone or Android, my application works fine in debug mode, but after building with release configuration, the app always crashes on the splash screen.
On Android, I'm getting an OutOfMemory in the log triggered by WebSocketReader.java. Here is the Android log :
07-26 10:57:18.639 5893 7623 E AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
07-26 10:57:18.639 5893 7623 E AndroidRuntime: Process: com.schooltoring, PID: 5893
07-26 10:57:18.639 5893 7623 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 10628794 byte allocation with 4409280 free bytes and 4MB until OOM
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at java.lang.StringFactory.newStringFromBytes(StringFactory.java:79)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at java.lang.StringFactory.newStringFromBytes(StringFactory.java:207)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okio.Buffer.readString(Buffer.java:620)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okio.Buffer.readUtf8(Buffer.java:591)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:222)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
07-26 10:57:18.639 5893 7623 E AndroidRuntime: at java.lang.Thread.run(Thread.java:762)
Complete log : https://gist.github.com/SLedunois/7d801cb0e55f2ae98bdbc054b0a84e61 (Sorry about the link. Crash report are too long to be included in the body)
On iPhone, I don't really understand the crash report. I'm new at iOS development. Here is the iOS crash report :
https://gist.github.com/SLedunois/76eaa85dfebb2ceff1f97cb4723989f1
I think, the error is caused by :
Thread 12 Crashed:
0 libsystem_kernel.dylib 0x00000001815192ec __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001816ba288 pthread_kill$VARIANT$mp + 376
2 libsystem_c.dylib 0x0000000181487d0c abort + 140
3 Schooltoring 0x0000000100ccc734 0x100c78000 + 345908
4 CoreFoundation 0x0000000181a931c8 __handleUncaughtException + 828
5 libobjc.A.dylib 0x0000000180c4c8c8 _objc_terminate+ 35016 () + 112
6 Schooltoring 0x0000000100cb090c 0x100c78000 + 231692
7 libc++abi.dylib 0x0000000180c3d37c std::__terminate(void (*)+ 111484 ()) + 16
8 libc++abi.dylib 0x0000000180c3cccc __cxxabiv1::exception_cleanup_func+ 109772 (_Unwind_Reason_Code, _Unwind_Exception*) + 0
9 libobjc.A.dylib 0x0000000180c4c720 _objc_exception_destructor+ 34592 (void*) + 0
10 Schooltoring 0x0000000100d61af0 0x100c78000 + 957168
11 Schooltoring 0x0000000100d61638 0x100c78000 + 955960
12 libdispatch.dylib 0x0000000181384aa0 _dispatch_call_block_and_release + 24
13 libdispatch.dylib 0x0000000181384a60 _dispatch_client_callout + 16
14 libdispatch.dylib 0x000000018138e9b4 _dispatch_queue_serial_drain$VARIANT$mp + 608
15 libdispatch.dylib 0x000000018138f2fc _dispatch_queue_invoke$VARIANT$mp + 336
16 libdispatch.dylib 0x000000018138fcc8 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
17 libdispatch.dylib 0x0000000181398098 _dispatch_workloop_worker_thread$VARIANT$mp + 668
18 libsystem_pthread.dylib 0x00000001816b7e70 _pthread_wqthread + 860
19 libsystem_pthread.dylib 0x00000001816b7b08 start_wqthread + 4
All my builds are configured to be signed.
Does someone face a similar issue?
Try adding android:largeHeap="true" to your manifest under application:
Ex. <application android:label="YourApp" android:largeHeap="true"></application>
Found solution. The error was triggered because of the static image used in the application were too big.
See https://facebook.github.io/react-native/docs/images for more explanations.

run-android stopped working and always fail

All of a sudden, my react native project stopped working in the android emulator.
every time I run
react-native run-android
i get the message 'Unfortunately, APPNAME has stopped.
My setup files are here.
The app is launched using
/Users/myusername/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -n com.selfy/.MainActivity)...
I'm not sure what did happen before the last time it was working just fine. On the iOS simulator, the app runs as usual.
Just to get me started with the debug, what's the usual procedure to debug, when the app doesn't even start on the device? Is there a way to save the error stuck somewhere?
LogCat logs here:
01-04 10:27:34.401 2520 2520 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.402 2520 2520 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.403 2520 2520 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:34.423 2520 2520 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:34.427 2520 2520 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:34.440 2520 2520 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:34.440 2520 2520 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:34.441 2520 2520 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:34.448 2520 2520 D AndroidRuntime: Calling main entry com.android.commands.am.Am
01-04 10:27:34.456 2520 2520 D AndroidRuntime: Shutting down VM
01-04 10:27:34.676 2530 2530 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.678 2530 2530 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.678 2530 2530 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:34.701 2530 2530 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:34.706 2530 2530 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:34.720 2530 2530 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:34.720 2530 2530 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:34.721 2530 2530 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:34.727 2530 2530 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:34.742 2530 2530 I art : System.exit called, status: 0
01-04 10:27:34.742 2530 2530 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:34.989 2541 2541 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.990 2541 2541 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.990 2541 2541 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:35.012 2541 2541 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:35.015 2541 2541 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:35.028 2541 2541 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:35.028 2541 2541 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:35.028 2541 2541 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:35.034 2541 2541 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:35.043 1234 1234 I : free_cache(9402219) avail 469483520
01-04 10:27:36.164 2541 2541 I art : System.exit called, status: 0
01-04 10:27:36.164 2541 2541 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:36.376 2553 2553 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:36.378 2553 2553 D AndroidRuntime: CheckJNI is ON
01-04 10:27:36.378 2553 2553 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:36.401 2553 2553 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:36.406 2553 2553 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:36.420 2553 2553 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:36.420 2553 2553 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:36.420 2553 2553 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:36.431 2553 2553 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:36.723 1480 1492 W art : Long monitor contention with owner PackageInstaller (1507) at int android.content.res.AssetManager.getStringBlockCount!()(AssetManager.java:-2) waiters=0 in android.content.pm.PackageInstaller$SessionInfo com.android.server.pm.PackageInstallerSession.generateInfo() for 282ms
01-04 10:27:36.752 1480 1506 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl1425441869.tmp/base.apk pkg=com.selfy isa=x86 vmSafeMode=false debuggable=true target-filter=interpret-only oatDir = /data/app/vmdl1425441869.tmp/oat sharedLibraries=null
01-04 10:27:36.764 2564 2564 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
01-04 10:27:36.765 2564 2564 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,-lock_add,-popcnt) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,sse4.1,sse4.2,-avx,-avx2,-lock_add,popcnt) for the command line:
01-04 10:27:36.765 2564 2564 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl1425441869.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=interpret-only --swap-fd=9 --debuggable
01-04 10:27:36.765 2564 2564 I dex2oat : /system/bin/dex2oat --compiler-filter=interpret-only --debuggable
01-04 10:27:36.765 2564 2564 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:36.929 2564 2566 W dex2oat : Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
01-04 10:27:36.978 2564 2566 W dex2oat : Before Android 4.1, method boolean com.facebook.share.widget.ShareButtonBase.canShare() would have incorrectly overridden the package-private method in android.widget.TextView
01-04 10:27:36.983 2564 2564 W dex2oat : Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
01-04 10:27:38.944 2564 2564 I dex2oat : dex2oat took 2.179s (threads: 2) arena alloc=280KB (287040B) java alloc=5MB (6023456B) native alloc=8MB (8991224B) free=2MB (3067400B)
01-04 10:27:38.949 1480 1494 I ActivityManager: Force stopping com.selfy appid=10054 user=-1: installPackageLI
01-04 10:27:38.962 1480 1506 I PackageManager: Package com.selfy codePath changed from /data/app/com.selfy-1 to /data/app/com.selfy-2; Retaining data and using new
01-04 10:27:38.962 1480 1506 W PackageManager: Code path for com.selfy changing from /data/app/com.selfy-1 to /data/app/com.selfy-2
01-04 10:27:38.962 1480 1506 W PackageManager: Resource path for com.selfy changing from /data/app/com.selfy-1 to /data/app/com.selfy-2
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.google.android.c2dm.permission.RECEIVE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sec.android.provider.badge.permission.READ in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sec.android.provider.badge.permission.WRITE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.htc.launcher.permission.READ_SETTINGS in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.htc.launcher.permission.UPDATE_SHORTCUT in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sonyericsson.home.permission.BROADCAST_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sonymobile.home.permission.PROVIDER_INSERT_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.anddoes.launcher.permission.UPDATE_COUNT in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.majeur.launcher.permission.UPDATE_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.CHANGE_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.READ_SETTINGS in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.WRITE_SETTINGS in package com.selfy
01-04 10:27:38.996 1480 1506 I art : Starting a blocking GC Explicit
01-04 10:27:39.014 1480 1506 I art : Explicit concurrent mark sweep GC freed 51004(2MB) AllocSpace objects, 17(676KB) LOS objects, 23% free, 12MB/16MB, paused 641us total 17.238ms
01-04 10:27:39.018 1234 1234 E : Couldn't opendir /data/app/vmdl1425441869.tmp: No such file or directory
01-04 10:27:39.022 2553 2553 I art : System.exit called, status: 0
01-04 10:27:39.022 2553 2553 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:39.022 1480 1506 I ActivityManager: Force stopping com.selfy appid=10054 user=0: pkg removed
01-04 10:27:39.042 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.057 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.061 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.061 1897 1897 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1385 android.content.ContextWrapper.startService:613 android.content.ContextWrapper.startService:613 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:3011
01-04 10:27:39.133 1480 1493 W VoiceInteractionManagerService: no available voice recognition services found for user 0
01-04 10:27:39.133 1480 1493 W LocationProviderProxy-network: Odd, no component found for service com.android.location.service.v3.NetworkLocationProvider
01-04 10:27:39.139 1480 1493 W GeocoderProxy: Odd, no component found for service com.android.location.service.GeocodeProvider
01-04 10:27:39.139 1480 1493 W GeofenceProxy: Odd, no component found for service com.android.location.service.GeofenceProvider
01-04 10:27:39.139 1480 1493 W ActivityRecognitionProxy: Odd, no component found for service com.android.location.service.ActivityRecognitionProvider
01-04 10:27:39.143 1695 1695 D CarrierSvcBindHelper: No carrier app for: 0
01-04 10:27:39.146 1695 1695 D CarrierSvcBindHelper: No carrier app for: 0
01-04 10:27:39.147 1695 1695 D CarrierConfigLoader: mHandler: 9 phoneId: 0
01-04 10:27:39.702 2570 2570 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:39.703 2570 2570 D AndroidRuntime: CheckJNI is ON
01-04 10:27:39.703 2570 2570 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:39.724 2570 2570 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:39.728 2570 2570 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:39.744 2570 2570 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:39.744 2570 2570 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:39.748 2570 2570 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:39.759 2570 2570 D AndroidRuntime: Calling main entry com.android.commands.am.Am
01-04 10:27:39.765 1480 1591 I ActivityManager: START u0 {flg=0x10000000 cmp=com.selfy/.MainActivity} from uid 2000 on display 0
01-04 10:27:39.774 2570 2570 D AndroidRuntime: Shutting down VM
01-04 10:27:39.787 1480 1939 I ActivityManager: Start proc 2580:com.selfy/u0a54 for activity com.selfy/.MainActivity
01-04 10:27:39.794 2580 2580 I art : Not late-enabling -Xcheck:jni (already on)
01-04 10:27:39.795 2580 2580 W art : Unexpected CPU variant for X86 using defaults: x86
01-04 10:27:39.818 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x933 imply creation of host color buffer
01-04 10:27:39.842 1480 1501 D : HostConnection::get() New Host Connection established 0x7ffed95948e0, tid 1501
01-04 10:27:39.881 2580 2595 D NetworkSecurityConfig: No Network Security Config specified, using platform default
01-04 10:27:39.889 2580 2580 V fb-UnpackingSoSource: locked dso store /data/user/0/com.selfy/lib-main
01-04 10:27:39.889 2580 2580 V fb-UnpackingSoSource: deps mismatch on deps store: regenerating
01-04 10:27:39.890 2580 2580 V fb-UnpackingSoSource: so store dirty: regenerating
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libfb.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libfolly_json.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libglog.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libglog_init.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libgnustl_shared.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libicu_common.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libimagepipeline.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libjsc.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejni.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejnifb.so: deferring to libdir
01-04 10:27:39.924 2580 2580 V fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource
01-04 10:27:39.924 2580 2580 V fb-UnpackingSoSource: starting syncer worker
01-04 10:27:39.939 2580 2580 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.selfy/lib-main (from syncer thread)
01-04 10:27:39.940 2580 2580 V fb-UnpackingSoSource: not releasing dso store lock for /data/user/0/com.selfy/lib-main (syncer thread started)
01-04 10:27:40.009 2580 2580 W unknown:React: Packager connection already open, nooping.
01-04 10:27:40.023 1220 2506 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
01-04 10:27:41.021 2580 2610 D : HostConnection::get() New Host Connection established 0xe36cc700, tid 2610
01-04 10:27:41.021 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.022 1480 1501 I Choreographer: Skipped 71 frames! The application may be doing too much work on its main thread.
01-04 10:27:41.038 2580 2610 I OpenGLRenderer: Initialized EGL, version 1.4
01-04 10:27:41.038 2580 2610 D OpenGLRenderer: Swap behavior 1
01-04 10:27:41.046 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.067 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.095 2580 2610 W gralloc_ranchu: Gralloc pipe failed
01-04 10:27:41.244 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.249 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.257 1480 1501 I ActivityManager: Displayed com.selfy/.MainActivity: +1s483ms
01-04 10:27:41.262 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.394 2580 2580 I art : Thread[1,tid=2580,Native,Thread*=0xf008b400,peer=0x750cd6f0,"main"] recursive attempt to load library "/data/app/com.selfy-2/lib/x86/libfb.so"
01-04 10:27:41.404 1480 1938 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#f85b331 attribute=null, token = android.os.BinderProxy#1a05b66
01-04 10:27:41.410 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
01-04 10:27:41.410 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
01-04 10:27:41.411 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
01-04 10:27:41.412 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
01-04 10:27:41.413 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
01-04 10:27:41.414 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
01-04 10:27:41.420 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
01-04 10:27:41.421 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
01-04 10:27:41.421 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
01-04 10:27:41.422 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
com.facebook.react.views.slider.ReactSliderManager
01-04 10:27:41.437 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
01-04 10:27:41.437 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
01-04 10:27:41.438 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
01-04 10:27:41.441 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
01-04 10:27:41.442 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
01-04 10:27:41.442 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
01-04 10:27:41.448 1480 1501 I WindowManager: Destroying surface Surface(name=Starting com.selfy) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:429 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:232 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:180 com.android.server.wm.WindowManagerService$H.handleMessage:8079 android.os.Handler.dispatchMessage:102
01-04 10:27:41.583 1480 1501 W AppOps : Finishing op nesting under-run: uid 10054 pkg com.selfy code 24 time=0 duration=0 nesting=0
01-04 10:27:41.792 2580 2615 I ReactNativeJS: NOTIFICATION CLICKED
01-04 10:27:41.803 1480 1747 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.AppWindowToken.notifyAppStopped:389 com.android.server.wm.WindowManagerService.notifyAppStopped:4456 com.android.server.am.ActivityStack.activityStoppedLocked:1252 com.android.server.am.ActivityManagerService.activityStopped:6873
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/INIT' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/PROBE_UNKNOWN_ACTION_h.k.0.z.2' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/INIT' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/PROBE_UNKNOWN_ACTION_6.p.6.i.j.h' }
01-04 10:27:41.851 2580 2615 I ReactNativeJS: { type: '##INIT' }
01-04 10:27:41.852 2580 2615 I ReactNativeJS: { type: '##INIT' }
01-04 10:27:41.863 2580 2621 E AndroidRuntime: FATAL EXCEPTION: IntentService[RNPushNotification]
01-04 10:27:41.863 2580 2621 E AndroidRuntime: Process: com.selfy, PID: 2580
01-04 10:27:41.863 2580 2621 E AndroidRuntime: java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.selfy-2/base.apk)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.zzdo(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService.onHandleIntent(RNPushNotificationRegistrationService.java:22)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
01-04 10:27:41.863 1480 1591 W ActivityManager: Force finishing activity com.selfy/.MainActivity
01-04 10:27:41.869 2580 2580 D AndroidRuntime: Shutting down VM
01-04 10:27:41.869 2580 2580 I Process : Sending signal. PID: 2580 SIG: 9
01-04 10:27:41.905 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.907 1480 1526 I OpenGLRenderer: Initialized EGL, version 1.4
01-04 10:27:41.907 1480 1526 D OpenGLRenderer: Swap behavior 1
01-04 10:27:41.913 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.917 1240 1472 E FrameworkListener: read() failed (Connection reset by peer)
01-04 10:27:41.917 1480 1520 W InputDispatcher: channel '4042ea7 com.selfy/com.selfy.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
01-04 10:27:41.918 1480 1520 E InputDispatcher: channel '4042ea7 com.selfy/com.selfy.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-04 10:27:41.921 1480 1729 D GraphicsStats: Buffer count: 3
01-04 10:27:41.921 1480 1729 I WindowManager: WIN DEATH: Window{4042ea7 u0 com.selfy/com.selfy.MainActivity}
01-04 10:27:41.921 1480 1729 W InputDispatcher: Attempted to unregister already unregistered input channel '4042ea7 com.selfy/com.selfy.MainActivity (server)'
01-04 10:27:41.921 1480 1729 I WindowManager: Destroying surface Surface(name=com.selfy/com.selfy.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowState$DeathRecipient.binderDied:1780 android.os.BinderProxy.sendDeathNotice:688 <bottom of call stack>
01-04 10:27:41.922 1480 1492 I ActivityManager: Process com.selfy (pid 2580) has died
01-04 10:27:41.922 1480 1492 W ActivityManager: Scheduling restart of crashed service com.selfy/com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService in 1000ms
01-04 10:27:41.923 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.978 1480 1591 W ActivityManager: Ignoring remove of inactive process: ProcessRecord{4ef2cd9 0:com.selfy/u0a54}
01-04 10:27:42.042 1220 1529 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.055 1220 2506 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.071 1220 2506 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.165 1480 1495 I WindowManager: Destroying surface Surface(name=Application Error: com.selfy) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193
01-04 10:27:42.166 1480 1495 W AppOps : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
01-04 10:27:42.615 1911 1997 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
01-04 10:27:43.786 1480 1552 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
Thanks

My Application Shuts Down with a Silent Error (AndroidRuntime: Shutting down VM)

MyApplication terminates silently. The last thing it prints is a tracelog from a function, then the Vm shuts down without any reference to my application.
This is the log snippet
05-17 15:25:28.294 4385 4385 D MyApplication: MyFunction()
05-17 15:25:28.294 4385 4385 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.369 4400 4400 W app_process: type=1400 audit(0.0:76): avc: denied { write } for name="system#framework#boot.art" dev="dm-0" ino=149 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=0
05-17 15:25:28.419 4400 4400 W main : type=1400 audit(0.0:77): avc: denied { write } for name="arm64" dev="dm-0" ino=143 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=dir permissive=0
05-17 15:25:28.371 4400 4400 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
05-17 15:25:28.375 4400 4400 D AndroidRuntime: CheckJNI is OFF
05-17 15:25:28.417 4400 4400 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
05-17 15:25:28.458 4400 4400 I Radio-JNI: register_android_hardware_Radio DONE
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running.
There's no clear indicator except the generic: 05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The error was caused by an StackOverflow in native code I wrote.
Stackoverflows shut down silently in Android Native Code, in contrast to segfaults and are therefore hard to find.
Locate the last working piece of code with Tracelogging / Logdebug or use the debugger of Android Studio and you will find the location of the bug.
The indicator for the silent termination is: "Shutting down VM"
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running, because the code was executed within it's own process (via ProcessBuilder.command())

android.content.ActivityNotFoundException: No Activity found to handle Intent

I m a newbie to Android. I am trying to use google location API and when run in the emulator it shows Unfortunately your app stopped working.
I did a adb logcat and here is my stacktrace
10-31 23:43:02.010 2370 2370 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:02.011 2370 2370 D AndroidRuntime: CheckJNI is ON
10-31 23:43:02.026 2370 2370 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:02.030 2370 2370 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:02.044 2370 2370 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:02.044 2370 2370 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:02.045 2370 2370 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:02.062 2370 2370 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
10-31 23:43:02.073 2228 2240 I art : CollectorTransition marksweep + semispace GC freed 125(-7KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 379KB/891KB, paused 5.591ms total 5.591ms
10-31 23:43:02.080 2228 2242 D DefContainer: Copying /data/local/tmp/HighwayMechanic.apk to base.apk
10-31 23:43:02.181 1138 1177 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl931695514.tmp/base.apk pkg=com.highway.highwaymechanic isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl931695514.tmp/oat
10-31 23:43:02.190 2382 2382 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
10-31 23:43:02.190 2382 2382 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2) for the command line:
10-31 23:43:02.190 2382 2382 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl931695514.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=8 --debuggable
10-31 23:43:02.190 2382 2382 I dex2oat : /system/bin/dex2oat --debuggable
10-31 23:43:08.200 2382 2382 I dex2oat : dex2oat took 6.009s (threads: 1) arena alloc=2MB java alloc=6MB native alloc=32MB free=2MB
10-31 23:43:08.276 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: uninstall pkg
10-31 23:43:08.294 1138 1177 I PackageManager: Package com.highway.highwaymechanic codePath changed from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1; Retaining data and using new
10-31 23:43:08.295 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: replace pkg
10-31 23:43:08.296 1138 1177 W PackageManager: Code path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.296 1138 1177 W PackageManager: Resource path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.333 1138 1177 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
10-31 23:43:08.333 1138 1177 I art : Starting a blocking GC Explicit
10-31 23:43:08.353 1138 1177 I art : Explicit concurrent mark sweep GC freed 10787(756KB) AllocSpace objects, 11(220KB) LOS objects, 19% free, 5MB/6MB, paused 517us total 13.651ms
10-31 23:43:08.357 1138 1177 W PackageManager: Couldn't remove dex file for package: at location /data/app/com.highway.highwaymechanic-2/base.apk, retcode=-1
10-31 23:43:08.359 1138 1177 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=0: pkg removed
10-31 23:43:08.360 2370 2370 I art : System.exit called, status: 0
10-31 23:43:08.360 2370 2370 I AndroidRuntime: VM exiting with result code 0.
10-31 23:43:08.400 1138 1138 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.403 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.404 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.404 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.414 1925 1925 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.content.ContextWrapper.startService:581 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2725
10-31 23:43:08.418 1138 1641 I BroadcastQueue: Delay finish: com.android.keychain/.KeyChainBroadcastReceiver
10-31 23:43:08.514 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.515 1138 2212 I BroadcastQueue: Resuming delayed broadcast
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REPLACED
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1566 1566 D CarrierConfigLoader: mHandler: 9 phoneId: 0
10-31 23:43:08.617 2390 2390 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:08.619 2390 2390 D AndroidRuntime: CheckJNI is ON
10-31 23:43:08.635 2390 2390 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.640 2390 2390 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:08.654 2390 2390 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:08.654 2390 2390 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:08.655 2390 2390 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:08.667 2390 2390 D AndroidRuntime: Calling main entry com.android.commands.am.Am
10-31 23:43:08.669 1138 2212 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.highway.highwaymechanic/.MainActivity} from uid 0 on display 0
10-31 23:43:08.691 2390 2390 D AndroidRuntime: Shutting down VM
10-31 23:43:08.695 2390 2395 I art : Debugger is no longer active
10-31 23:43:08.695 2390 2401 E art : Thread attaching while runtime is shutting down: Binder_2
10-31 23:43:08.695 2390 2401 I AndroidRuntime: NOTE: attach of thread 'Binder_2' failed
10-31 23:43:08.697 2402 2402 I art : Not late-enabling -Xcheck:jni (already on)
10-31 23:43:08.697 2402 2402 I art : Late-enabling JIT
10-31 23:43:08.702 2402 2402 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.708 1138 1712 I ActivityManager: Start proc 2402:com.highway.highwaymechanic/u0a53 for activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:08.717 2402 2409 E art : Failed sending reply to debugger: Broken pipe
10-31 23:43:08.717 2402 2409 I art : Debugger is no longer active
10-31 23:43:08.728 2402 2402 W System : ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.797 2402 2402 D gralloc_goldfish: Emulator without GPU emulation detected.
10-31 23:43:08.818 1138 1170 I ActivityManager: Displayed com.highway.highwaymechanic/.MainActivity: +129ms
10-31 23:43:10.932 1138 1429 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending} from uid 10053 on display 0
10-31 23:43:10.933 2402 2402 D AndroidRuntime: Shutting down VM
10-31 23:43:10.933 2402 2402 E AndroidRuntime: FATAL EXCEPTION: main
10-31 23:43:10.933 2402 2402 E AndroidRuntime: Process: com.highway.highwaymechanic, PID: 2402
10-31 23:43:10.933 2402 2402 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending }
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3917)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3877)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:748)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4200)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4168)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.google.android.gms.dynamic.zza$5.onClick(Unknown Source)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View.performClick(View.java:5198)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21147)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-31 23:43:10.934 1138 1712 W ActivityManager: Force finishing activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:10.935 943 943 D gralloc : Registering a buffer in the process that created it. This may cause memory ordering problems.
10-31 23:43:10.935 943 943 E libEGL : called unimplemented OpenGL ES API
10-31 23:43:10.935 943 943 E SurfaceFlinger: glCheckFramebufferStatusOES error 1711643839
10-31 23:43:10.935 943 943 E SurfaceFlinger: got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
10-31 23:43:11.448 1138 1162 W ActivityManager: Activity pause timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
10-31 23:43:21.478 1138 1162 W ActivityManager: Activity destroy timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
Here is my Android_manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.highway.highwaymechanic"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="23" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
</application>
</manifest>
Here is my MainActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends FragmentActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
Here is my MapsActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
#Override
public void onMapReady(GoogleMap map) {
LatLng sydney = new LatLng(-34, 151);
map.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
map.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
}
When run in the emulator it crashes with Unfortunately the app stopped working.
Please help me with it.
Thanks in Advance
I believe this should have been fixed with the latest release of the Google Play services client library. Note that this is a fix in the client library and so you will have to update the library to the latest revision using your SDK manager and recompile your application.
for more details you can check this link
https://code.google.com/p/gmaps-api-issues/issues/detail?id=4862
Do you have an another Activity named Map? As I see in your manifest,
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
Likewise, there should be a similar tag for the MapsActivity in your manifest. I think this is the error.
it bugs out much sooner, missing some native assembly for x86 architecture:
W System: ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
followed by:
W GooglePlayServicesUtil: Google Play services is missing.
To add the missing Google Play (incl. Maps) Services, wrote a how-to once (it's almost the same).
While that FragmentActivity requires an IntentFilter, else it cannot be launched, for example:
<activity
android:name=".MapsActivity"
android:label="#string/title_activity_map">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>

Categories

Resources