GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Crash with 0.2.9

Open DocSniper opened this issue 7 years ago • 25 comments

I use (standard / offical) LOS 16 without GApps. With GmsCore-v0.2.8.17785-mapbox.apk I have location (even if it claims no know location). But after updating to GmsCore-v0.2.9.19420.apk MicroG crashes at start. I tested it on system (replacing 0.2.8) and on data (with 0.2.8 on system).

I attached a logcat with filter set to gms. gms-log.txt

Edit: here a second crash log, I had 0.2.8 on system and updated to 0.2.9 (data). gms-log-2.txt

DocSniper avatar Oct 23 '19 17:10 DocSniper

This filtration is not good enough. At the first log, there is a line:

10-23 19:35:02.680 E/AndroidRuntime(12738): Process: com.google.android.gms, PID: 12738

Could you please catch another log and study the context of this? (By the way, you can also try adb logcat crash.)

You can compare the log with https://github.com/microg/android_packages_apps_GmsCore/issues/961#issuecomment-545055531, if it is similar, then seemingly @mar-v-in did not build the package correctly, see https://github.com/microg/android_packages_apps_GmsCore/issues/961#issuecomment-545483240.

Let's discuss the crash issue here instead of there.

Iey4iej3 avatar Oct 24 '19 08:10 Iey4iej3

Have tried again and found these two interesting things. Now also in detail.

gms-log-3.txt

DocSniper avatar Oct 24 '19 08:10 DocSniper

I guess this is caused by updating the build stack to SDK 29. I have to check the details, but my guess is that proguard is removing code that should not be removed :/

mar-v-in avatar Oct 24 '19 08:10 mar-v-in

Could it also be a subproject Problem? Already in the Version before, I felt there was a mismatch in the submodules: See #15 in GmsLib

EDIT: I just checked the subprojects, they seem to be fine, only RemoteDroidGuard is lagging behind.

chris42 avatar Oct 24 '19 11:10 chris42

I have the same problem on Fairphone Open 19.08.1 (Android 7.1.2 without GApps) + Xposed module FakeGapps 2.0. Everything is working properly again after downgrading to 0.2.8.17785-mapbox.

qoheniac avatar Oct 24 '19 12:10 qoheniac

Same issue

nift4 avatar Oct 24 '19 13:10 nift4

Same here

GmsCore-v0.2.8.17785-mapbox.apk: collected all checkmarks in self-check and works.

GmsCore-v0.2.9.19420.apk: Crashes on boot. Fails to register UnifiedNlp in system. When I disable GPS it stops crashing and boots with no problem, but then crashes the moment I try to enable GPS. Edit: added crashlog 2019-10-25-13-56-42.txt

ploink avatar Oct 25 '19 11:10 ploink

Anyone with this problem and related issues (crash on boot, GCM not connecting after boot, no location functionality) in 0.2.9, please try https://microg.org/dl/GmsCore-v0.2.9.19420-5-cfc90b4.apk and report back.

mar-v-in avatar Oct 25 '19 18:10 mar-v-in

Just tried it, no crash, got all checkmarks in self-test. Thanks!

ploink avatar Oct 25 '19 19:10 ploink

@mar-v-in everything seems works fine now. ROM: LineageOS for microG 16.0

no /data encryption and password protection

gmscore installed in /data as update - OK (after reboot - still OK)

gmscore updated directly in /system/priv-app - OK

ghost avatar Oct 25 '19 19:10 ghost

The crash problem seems to be fixed, thanks. I get location and it seems to work well. But even if I get a position, the self-test doesn't pass here: mg029

DocSniper avatar Oct 25 '19 19:10 DocSniper

Just tested it by installing it to /data and it seems to work fine. I get a location and no crashes so far. Logs seem to be fine (no errors). Only had to re-set the UnifiedNlp backends. Thanks a lot for that quick update!

chris42 avatar Oct 25 '19 19:10 chris42

I had the exact same issue with LineageOS16-microg and the latest microG services package from f-droid. The package from @mar-v-in fixed it. No more crash on startup and the all checkboxes are checked again in the self-test. 😄 Thanks!

schiessle avatar Oct 25 '19 22:10 schiessle

Anyone with this problem and related issues (crash on boot, GCM not connecting after boot, no location functionality) in 0.2.9, please try https://microg.org/dl/GmsCore-v0.2.9.19420-5-cfc90b4.apk and report back.

I can also confirm this fixed the UnifiedNlp backend not recognized by MicroG, i didn't have crash issues tho.

k3lt avatar Oct 25 '19 23:10 k3lt

No more issues on LineageOS for MicroG 16.0. Thanks @mar-v-in!

nicheosala avatar Oct 26 '19 06:10 nicheosala

I can confirm that the test apk fixes not only GCM but also location. LineageOS 16 btw.

DPTJKKVH avatar Oct 26 '19 20:10 DPTJKKVH

To substantiate my previous post, failing the self-check doesn't seem to be a permission problem in my case:

runtime permissions:

  • android.permission.ACCESS_FINE_LOCATION: granted=true, flags=[ SYSTEM_FIXED GRANTED_BY_DEFAULT ]
  • android.permission.READ_EXTERNAL_STORAGE: granted=true, flags=[ GRANTED_BY_DEFAULT ]
  • android.permission.ACCESS_COARSE_LOCATION: granted=true, flags=[ SYSTEM_FIXED GRANTED_BY_DEFAULT ]
  • android.permission.READ_PHONE_STATE: granted=true, flags=[ GRANTED_BY_DEFAULT ]
  • android.permission.GET_ACCOUNTS: granted=true, flags=[ GRANTED_BY_DEFAULT ]
  • android.permission.WRITE_EXTERNAL_STORAGE: granted=true, flags=[ GRANTED_BY_DEFAULT ]

DocSniper avatar Oct 27 '19 09:10 DocSniper

The crash problem seems to be fixed, thanks. I get location and it seems to work well. But even if I get a position, the self-test doesn't pass here: mg029

@DocSniper Please open another issue and close this issue, since it is an issue different from crashing. By the way, you need to test other NLP Backends.

Iey4iej3 avatar Oct 27 '19 10:10 Iey4iej3

Anyone with this problem and related issues (crash on boot, GCM not connecting after boot, no location functionality) in 0.2.9, please try https://microg.org/dl/GmsCore-v0.2.9.19420-5-cfc90b4.apk and report back.

@mar-v-in Could you pleas push this build to releases here and in the F-Droid repo? Thanks.

Iey4iej3 avatar Oct 27 '19 10:10 Iey4iej3

Problem seems to be fixed ...

DocSniper avatar Oct 27 '19 11:10 DocSniper