Skip to content

[Bug] App crashes after editing alt text/image description #342

@graves501

Description

@graves501

With version v4.2.0 the Android app crashes after editing either alt text or the image description of an existing post:

type: crash
osVersion: google/cheetah/cheetah:16/BP2A.250805.005/2025091000:user/release-keys
flags: dev options enabled
package: com.daniebeler.pfpixelix:33, targetSdk 35
process: com.daniebeler.pfpixelix
processUptime: 57785 + 1040 ms
installer: com.looker.droidify

java.lang.IllegalStateException: Flow exception transparency is violated:
    Previous 'emit' call has thrown exception java.lang.IllegalArgumentException: Navigation destination that matches route single_post_screen/873218852827665371?refresh=true cannot be found in the navigation graph ComposeNavGraphNavigator$ComposeNavGraph(0x0) startDestination={ComposeNavGraphNavigator$ComposeNavGraph(0xa8bd7766) route=com.daniebeler.pfpixelix.ui.navigation.Destination.HomeTabFeeds startDestination={ComposeNavigator$Destination(0x2d4bab0e) route=com.daniebeler.pfpixelix.ui.navigation.Destination.Feeds}}, but then emission attempt of value 'com.daniebeler.pfpixelix.domain.service.utils.Resource$Error@f910853' has been detected.
    Emissions from 'catch' blocks are prohibited in order to avoid unspecified behaviour, 'Flow.catch' operator can be used instead.
    For a more detailed explanation, please refer to Flow documentation.
 at kotlinx.coroutines.flow.internal.SafeCollector.emit(SourceFile:28)
 at kotlinx.coroutines.flow.internal.SafeCollector.emit(SourceFile:1)
 at com.daniebeler.pfpixelix.domain.service.editor.PostEditorService$updatePost$$inlined$loadResource$1.invokeSuspend(Unknown Source:159)
 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
 at kotlinx.coroutines.DispatchedTask.run(Unknown Source:114)
 at android.os.Handler.handleCallback(Handler.java:995)
 at android.os.Handler.dispatchMessage(Handler.java:103)
 at android.os.Looper.loopOnce(Looper.java:248)
 at android.os.Looper.loop(Looper.java:338)
 at android.app.ActivityThread.main(ActivityThread.java:9106)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
 at com.android.internal.os.ExecInit.main(ExecInit.java:50)
 at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
 at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
 Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b32fe8e, Dispatchers.Main.immediate]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions