Bug 1872192 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Crash report: https://crash-stats.mozilla.org/report/index/998f1ad9-fb47-4d66-ba31-549fc0231227

100% of these crash reports are from x86 or x86_64 devices running Android 5.0 or 5.1 (API 21 or 22). These crashes are probably the same Kotlin coroutine issue as bug 1804115 and bug 1844964.

Exception: java.lang.NullPointerException
Message: Attempt to invoke virtual method 'long java.util.concurrent.atomic.AtomicLong.decrementAndGet()' on a null object reference 

```
Frame   Module  Function  Source
0   mozilla.appservices.places.uniffi.PlacesConnection  noteHistoryMetadataObservation  places.kt:77
1   mozilla.appservices.places.PlacesWriterConnection   noteHistoryMetadataObservation  PlacesConnection.kt:19
2   mozilla.components.browser.storage.sync.PlacesHistoryStorage$noteHistoryMetadataObservation$2   invokeSuspend   PlacesHistoryStorage.kt:63
3   kotlin.coroutines.jvm.internal.BaseContinuationImpl   resumeWith  ContinuationImpl.kt:9
4   kotlinx.coroutines.DispatchedTask   run   DispatchedTask.kt:112
5   java.util.concurrent.ThreadPoolExecutor   runWorker   ThreadPoolExecutor.java:1112
6   java.util.concurrent.ThreadPoolExecutor$Worker  run   ThreadPoolExecutor.java:587
7   java.lang.Thread  run   Thread.java:818
```
Crash report: https://crash-stats.mozilla.org/report/index/998f1ad9-fb47-4d66-ba31-549fc0231227

100% of these crash reports are from x86 or x86_64 devices running Android 5.0 or 5.1 (API 21 or 22). These crashes are probably the same Kotlin coroutine issue as bug 1804115 and bug 1844964: https://github.com/Kotlin/kotlinx.coroutines/issues/490

Exception: java.lang.NullPointerException
Message: Attempt to invoke virtual method 'long java.util.concurrent.atomic.AtomicLong.decrementAndGet()' on a null object reference 

```
Frame   Module  Function  Source
0   mozilla.appservices.places.uniffi.PlacesConnection  noteHistoryMetadataObservation  places.kt:77
1   mozilla.appservices.places.PlacesWriterConnection   noteHistoryMetadataObservation  PlacesConnection.kt:19
2   mozilla.components.browser.storage.sync.PlacesHistoryStorage$noteHistoryMetadataObservation$2   invokeSuspend   PlacesHistoryStorage.kt:63
3   kotlin.coroutines.jvm.internal.BaseContinuationImpl   resumeWith  ContinuationImpl.kt:9
4   kotlinx.coroutines.DispatchedTask   run   DispatchedTask.kt:112
5   java.util.concurrent.ThreadPoolExecutor   runWorker   ThreadPoolExecutor.java:1112
6   java.util.concurrent.ThreadPoolExecutor$Worker  run   ThreadPoolExecutor.java:587
7   java.lang.Thread  run   Thread.java:818
```

Back to Bug 1872192 Comment 0