MetaMask / MetaMask/metamask-mobile
[Sentry] IllegalStateException: Already resumed, but proposed with update kotlin.Unit
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
Sentry Issue: [METAMASK-MOBILE-3Z6V](https://metamask.sentry.io/issues/6768249846/?referrer=github_integration)
```
IllegalStateException: Already resumed, but proposed with update kotlin.Unit
at kotlinx.coroutines.CancellableContinuationImpl.alreadyResumedError(CancellableContinuationImpl.kt:556)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core(CancellableContinuationImpl.kt:521)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core$default(CancellableContinuationImpl.kt:493)
at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:359)
at expo.modules.kotlin.activityresult.ActivityResultsManager$1$invokeSuspend$$inlined$withActivityAvailable$1.onActivityAvailable(AppCompatActivityAware.kt:42)
...
(11 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with the Sentry stack trace and inspect ActivityResultsManager in expo.modules.kotlin.activityresult, then follow the callback path through AppCompatActivityAware.kt and CancellableContinuationImpl.kt. Determine why the activity result is resumed more than once and verify the fix against the reported IllegalStateException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100