Emil Lahtinen

    Emil Lahtinen

    1 year ago
    I stumbled upon this weird LazyColumn+scrolling problem which leads to ANR, details in thread
    So the problem occurs when trying to scroll focused item to the top of the screen. If you start scrolling the items with arrow keys first downward, then scroll back up ‘past the first row’ it jumps to what seems a random row after which GC goes haywire and causes ANR. This happens (at least, haven’t tested thoroughly) with API 27 but not with API 19
    Screenshot from profiler
    I created a minified version where the problem occurs: https://github.com/ELIEL87/lazycolumntest
    matvei

    matvei

    1 year ago
    cc @Ralston Da Silva
    h

    Heikki Rauhala

    1 year ago
    The minified version also shows strange janky behaviour of
    animateScrollToItem
    when moving upwards. It's difficult to tell if that is related to the GC problem. Maybe this should be filed as two distinct bugs?
    r

    Ralston Da Silva

    1 year ago
    Sorry for the delayed response. Yes, we are aware of this issue and we are in the process of adding a few low level APIs so that we can support focus traversal in LazyLists
    Walter Berggren

    Walter Berggren

    1 year ago
    Thanks for the update, great to hear that it is being worked on 😊