MicroG keeps stopping
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 3.2k
- PR merge metrics
- PR metrics pending
Description
**Describe the bug**
MicroG keeps crashing due to a NullPointerException when calling get-second.
**To Reproduce**
1. Start MicroG
2. Await registration attempt
3. Repeated crashing
**Expected behavior**
MicroG successfully registering.
**Logs**
```
FATAL EXCEPTION: main
Process: com.google.android.gms:persistent, PID: 28030
java.lang.NullPointerException: (...) must not be null
at org.microg.gms.gcm.registeration.ChimeGmsRegistrationHelper$handleRegistration$response$1.invokeSuspend(ChimeGmsRegistrationHelper.kt:74)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@94bd385, Dispatchers.Main.immediate]
```
**System**
Android Version: 15
Custom ROM: /e/OS 3.4
MicroG version: 3.11.250932-15
**Additional context**
I am new to MicroG and changed the profile after initial registration. I am not sure, but I have a hunch that's what caused this issue.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at ChimeGmsRegistrationHelper.kt line 74, where the registration coroutine reports the NullPointerException, and reproduce the registration attempt on the listed Android 15 and MicroG versions. Investigate the response handling after the profile change; done means registration completes without the exception and MicroG no longer repeatedly crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100