Skip to content

FilePicker crashes on Linux Debian Trixie #280

@Burtan

Description

@Burtan

Hey,

I just tried your FilePicker:

val openPicker = rememberFilePickerLauncher(
    type = FilePickerFileType.Extension(listOf("cub")),
    selectionMode = FilePickerSelectionMode.Single,
    onResult = { file ->

    }
)

IconButton(onClick = openPicker::launch) {
    Icon(
        imageVector = Icons.Default.FolderOpen,
        contentDescription = i18n.menuFileOpen
    )
}

However it crashes with the following error:

Caused by: java.lang.ClassCastException: class kotlin.coroutines.jvm.internal.CompletedContinuation cannot be cast to class kotlinx.coroutines.internal.DispatchedContinuation (kotlin.coroutines.jvm.internal.CompletedContinuation and kotlinx.coroutines.internal.DispatchedContinuation are in unnamed module of loader 'app')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions