Skip to content

[BUG] Crash when opening movie (Duplicate Key in LazyRow/Column) #23

@SwoleRonson

Description

@SwoleRonson

Hi,

I found a bug where the app crashes completely when trying to open the movie "Hawkwind - Space Ritual".
https://www.themoviedb.org/movie/203349-hawkwind-space-ritual

Based on the ADB logs, it's throwing a java.lang.IllegalArgumentException in Jetpack Compose because a LazyColumn or LazyRow is being fed a duplicate key (40877). This is likely caused by duplicate items in the metadata being pulled for this specific movie (e.g., duplicate cast members, crew, or related items sharing the same ID).

02-21 14:34:20.627 13168 13168 E AndroidRuntime: FATAL EXCEPTION: main 02-21 14:34:20.627 13168 13168 E AndroidRuntime: Process: com.arvio.tv, PID: 13168 02-21 14:34:20.627 13168 13168 E AndroidRuntime: java.lang.IllegalArgumentException: Key "40877" was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item. 02-21 14:34:20.627 13168 13168 E AndroidRuntime: at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SourceFile:22) 02-21 14:34:20.627 13168 13168 E AndroidRuntime: at androidx.compose.ui.layout.LayoutNodeSubcompositionsState$Scope.subcompose(SourceFile:3) 02-21 14:34:20.627 13168 13168 E AndroidRuntime: at androidx.compose.foundation.lazy.layout.LazyLayoutMeasureScopeImpl.measure-0kLqBqw(SourceFile:36) 02-21 14:34:20.627 13168 13168 E AndroidRuntime: at androidx.tv.foundation.lazy.list.a0.a(SourceFile:19) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions