question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes on Android 11 (Gcam >=7.5)

See original GitHub issue

Pixel 4a, RattlesnakeOS, Android 11 (RP1A.201005.006.2020.10.06.13)

Using the .apk files from https://www.apkmirror.com/apk/google-inc/camera, the 7.4.x apk’s don’t crash but any of the 7.5.x .apk files do (7.5.105.323030203 and 7.5.107.326355469). I tried both the latest release of Gcam-Services-Provider and built from source with the same result.

This is what logcat outputs:

10-07 14:42:02.448  1637  1867 I ActivityManager: Start proc 10405:com.google.android.GoogleCamera/u0a190 for pre-top-activity {com.google.android.GoogleCamera/com.android.camera.CameraLauncher}
10-07 14:42:02.452 10405 10405 E id.GoogleCamer: Not starting debugger since process cannot load the jdwp agent.
10-07 14:42:02.469 10405 10405 I id.GoogleCamer: The ClassLoaderContext is a special shared library.
10-07 14:42:02.470 10405 10405 D nativeloader: classloader namespace configured for unbundled vendor apk. library_path=/data/app/~~gvlUQxdNGgx3EPXeRZgdJA==/com.google.android.GoogleCamera-_SUWbO4PLgFR_eiFLXQChQ==/lib/arm64:/data/app/~~gvlUQxdNGgx3EPXeRZgdJA==/com.google.android.GoogleCamera-_SUWbO4PLgFR_eiFLXQChQ==/base.apk!/lib/arm64-v8a:/vendor/lib64
10-07 14:42:02.481 10405 10405 D NetworkSecurityConfig: No Network Security Config specified, using platform default
10-07 14:42:02.481 10405 10405 D NetworkSecurityConfig: No Network Security Config specified, using platform default
10-07 14:42:02.490 10405 10405 W CAM_SearchIndexProv: Called onCreate
10-07 14:42:02.497 10405 10405 D AndroidRuntime: Shutting down VM
10-07 14:42:02.497 10405 10405 E AndroidRuntime: FATAL EXCEPTION: main
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Process: com.google.android.GoogleCamera, PID: 10405
10-07 14:42:02.497 10405 10405 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.apps.camera.legacy.app.app.CameraApp: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6717)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.ActivityThread.access$1300(ActivityThread.java:237)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:223)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7656)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Caused by: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Parcel.createException(Parcel.java:2357)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:2340)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:2282)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:1229)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2627)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2615)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at lpr.b(PG:14)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at lpr.a(PG:69)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at lpr.a(PG:33)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at com.google.android.apps.camera.legacy.app.app.CameraApp.onCreate(PG:115)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6712)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	... 8 more
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at com.android.server.content.ContentService.registerContentObserver(ContentService.java:355)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.content.IContentService$Stub.onTransact(IContentService.java:482)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Binder.execTransactInternal(Binder.java:1154)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 	at android.os.Binder.execTransact(Binder.java:1123)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: 
10-07 14:42:02.499  1637 10427 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
10-07 14:42:02.499  1637  2395 W ActivityTaskManager:   Force finishing activity com.google.android.GoogleCamera/com.android.camera.CameraLauncher
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: onActivityLaunchCancelled during UNKNOWN.
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: java.lang.Throwable: EventSequenceValidator#getStackTrace
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.google.android.startop.iorap.EventSequenceValidator.logWarningWithStackTrace(EventSequenceValidator.java:260)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.google.android.startop.iorap.EventSequenceValidator.onActivityLaunchCancelled(EventSequenceValidator.java:166)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.server.wm.LaunchObserverRegistryImpl.handleOnActivityLaunchCancelled(LaunchObserverRegistryImpl.java:166)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.server.wm.LaunchObserverRegistryImpl.lambda$lAGPwfsXJvBWsyG2rbEfo3sTv34(Unknown Source:0)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.server.wm.-$$Lambda$LaunchObserverRegistryImpl$lAGPwfsXJvBWsyG2rbEfo3sTv34.accept(Unknown Source:4)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:278)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:201)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at android.os.Handler.handleCallback(Handler.java:938)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at android.os.Looper.loop(Looper.java:223)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at android.os.HandlerThread.run(HandlerThread.java:67)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: 	at com.android.server.ServiceThread.run(ServiceThread.java:44)
10-07 14:42:02.519  1637  1854 D EventSequenceValidator: dec AccIntentStartedEvents to 1
10-07 14:42:02.622  3246  3246 W Choreographer: Frame time is 0.002495 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.656  3246  3246 W Choreographer: Frame time is 0.007022 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.689  3246  3246 W Choreographer: Frame time is 0.016748 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.722  3246  3246 W Choreographer: Frame time is 0.037457 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.722  5057  5057 W Choreographer: Frame time is 0.024332 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.789  3246  3246 W Choreographer: Frame time is 0.011106 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.836 15260 15305 I Heartbeat: Sending Heartbeat
10-07 14:42:02.853 15260 15305 I Heartbeat: Received Heartbeat with 16ms latency
10-07 14:42:02.905  3246  3246 W Choreographer: Frame time is 0.011732 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.956   623   623 E Layer   : [Surface(name=Task=1635)/@0x72ffb49 - animation-leash#0] No local sync point found
10-07 14:42:02.956   623   623 E Layer   : [Surface(name=Task=1)/@0xcda94d - animation-leash#0] No local sync point found
10-07 14:42:03.000  1637  1854 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{1241f23 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher t1635 f}}
10-07 14:42:03.014  1637  1854 W ActivityTaskManager: Activity pause timeout for ActivityRecord{1241f23 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher t1635 f}}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
innircommented, Dec 10, 2020

For me something along these lines worked:

adb push app-debug.apk /data/local/tmp
adb shell pm install --force-queryable /data/local/tmp/app-debug.apk

Compiling the app yourself is not necessary (but recommended anyways).

2reactions
Terminator-Jcommented, May 2, 2021

So their is no way without Android Studio or using ADB ?

I mean, you could probably do it from the handset in a root shell in Terminal or Termux, as long as you’ve copied the apk to internal storage somewhere (for example, /sdcard/Download), then just pm install --force-queryable /sdcard/Download/app-debug.apk and be good to go. I know this is necroposting, but it’s still something folks are dealing with, and your release still works; just had a user do this to get Arnova82’s latest GCam 8.1 port working successfully without any GApps/microG installed on crDroid 7.5 (android 11) on a OnePlus 6T.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Camera Port: FAQ and Troubleshooting
There are a few reasons why GCam may crash right after opening: GCam doesn't work on your hardware. The version you're using was...
Read more >
How To Solve Gcam Crash & Lag problem | Take Quality Photos
How To Solve Gcam Crash & Lag problem | Best Gcam For Your Phone | Take Quality Photos .# gcam #solve...
Read more >
GCam crashes when opened : r/LineageOS
This is a stupid answer because it assumes that the camera only crashes on GCam, when in fact it has been known to...
Read more >
[ROM][OFFICIAL][enchilada][11.0]crDroid Android[v7.24]
Crashes on Android 11 (Gcam >=7.5) · Issue #6 · lukaspieper/Gcam-Services-Provider ... Pixel 4a, RattlesnakeOS, Android 11 (RP1A.201005.006.
Read more >
Gcam 7.5 for one plus 6
Has anyone tried gcam 7.5 for one plus 6? I tried a few apk that i found online , they were all crashing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found