Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with 0.2.9 #964

Closed
DocSniper opened this issue Oct 23, 2019 · 25 comments
Closed

Crash with 0.2.9 #964

DocSniper opened this issue Oct 23, 2019 · 25 comments

Comments

@DocSniper
Copy link

DocSniper commented Oct 23, 2019

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

@Iey4iej3
Copy link

Iey4iej3 commented Oct 24, 2019

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 #961 (comment), if it is similar, then seemingly @mar-v-in did not build the package correctly, see #961 (comment).

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

@DocSniper
Copy link
Author

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

gms-log-3.txt

@mar-v-in
Copy link
Member

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 :/

@chris42
Copy link

chris42 commented Oct 24, 2019

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.

@qoheniac
Copy link

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.

@nift4
Copy link

nift4 commented Oct 24, 2019

Same issue

@ploink
Copy link

ploink commented Oct 25, 2019

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

@mar-v-in
Copy link
Member

mar-v-in commented Oct 25, 2019

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.

@ploink
Copy link

ploink commented Oct 25, 2019

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

@Vavun
Copy link
Contributor

Vavun commented Oct 25, 2019

@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

@DocSniper
Copy link
Author

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

@chris42
Copy link

chris42 commented Oct 25, 2019

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!

@schiessle
Copy link

schiessle commented Oct 25, 2019

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!

@k3lt
Copy link

k3lt commented Oct 25, 2019

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.

@nicheosala
Copy link

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

@DPTJKKVH
Copy link

DPTJKKVH commented Oct 26, 2019

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

@DocSniper
Copy link
Author

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 ]

@Iey4iej3
Copy link

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
Copy link

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.

@DocSniper
Copy link
Author

Problem seems to be fixed ...

@Iey4iej3
Copy link

Iey4iej3 commented Oct 30, 2019

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 I think that it is better to push the build to F-Droid repo and release the .apk here, since the preceding build 0.2.9.19240 is obviously broken, non-functional and there is no reason not to replace it by the corrected version.

@mar-v-in
Copy link
Member

@ley4iej3 agree, will do probably tomorrow

@ale5000-git
Copy link
Member

Also the vtm build with the latest fixes will be nice :)

@ildar
Copy link

ildar commented Oct 30, 2019 via email

@mar-v-in
Copy link
Member

mar-v-in commented Nov 1, 2019

@ale5000-git @ildar @Iey4iej3 0.2.10 is published on F-Droid and here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests