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 in demo app when adding disk usage health metric provider #93

Open
zmarkan opened this issue Jun 13, 2024 · 0 comments
Open

Crash in demo app when adding disk usage health metric provider #93

zmarkan opened this issue Jun 13, 2024 · 0 comments

Comments

@zmarkan
Copy link
Contributor

zmarkan commented Jun 13, 2024

Stack trace:

 FATAL EXCEPTION: main
                                                                                                    Process: live.ditto.dittotoolsapp, PID: 25408
                                                                                                    java.util.NoSuchElementException: Collection contains no element matching the predicate.
                                                                                                    	at com.example.dittodiskusage.usecase.GetDiskUsageMetrics.execute(GetDiskUsageMetrics.kt:58)
                                                                                                    	at com.example.dittodiskusage.DiskUsageViewModel.getCurrentState(DiskUsageViewModel.kt:93)
                                                                                                    	at live.ditto.dittoheartbeat.HeartbeatKt.updateHealthMetrics(Heartbeat.kt:46)
                                                                                                    	at live.ditto.dittoheartbeat.HeartbeatKt.access$updateHealthMetrics(Heartbeat.kt:1)
                                                                                                    	at live.ditto.dittoheartbeat.HeartbeatKt$startHeartbeat$1.invokeSuspend(Heartbeat.kt:73)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234)
                                                                                                    	at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
                                                                                                    	at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
                                                                                                    	at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
                                                                                                    	at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
                                                                                                    	at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518)
                                                                                                    	at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:958)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:205)
                                                                                                    	at android.os.Looper.loop(Looper.java:294)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8177)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
                                                                                                    	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@7a4abb1, Dispatchers.Main]
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

1 participant