Report bug
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- mobile, mobile-dev
Línea de trabajo
Start by tracing deletion and back navigation in FileDisplayActivity and the OCFileListAdapter named in the crash, then inspect how list updates are sent to RecyclerView. Reproduce by deleting items and navigating back before they disappear. The issue is fixed when the list updates without the reported invalid item position exception; the payload does not identify a test to run.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
⚠️ Before posting ⚠️
- This is a bug, not a question or an enhancement.
- I've searched for similar issues and didn't find a duplicate.
- I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
Cause of error
Exception in thread "main" java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:7 com.owncloud.android.ui.EmptyRecyclerView{358bb52 VFED..... ......ID 0,0-1200,2146 #7f0a0349 app:id/list_root}, adapter:com.owncloud.android.ui.adapter.OCFileListAdapter@1836103, layout:androidx.recyclerview.widget.LinearLayoutManager@946ee23, context:com.owncloud.android.ui.activity.FileDisplayActivity@645eaf3
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6821)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6757)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6753)
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2362)
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1662)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1622)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:697)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:4591)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4346)
at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:2106)
at androidx.recyclerview.widget.RecyclerView$1.run(RecyclerView.java:468)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:2088)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:2097)
at android.view.Choreographer.doCallbacks(Choreographer.java:1572)
at android.view.Choreographer.doFrame(Choreographer.java:1429)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:2051)
at android.os.Handler.handleCallback(Handler.java:1029)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:274)
at android.os.Looper.loop(Looper.java:369)
at android.app.ActivityThread.main(ActivityThread.java:10106)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:616)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1137)
App information
- ID:
com.nextcloud.client - Version:
350000290 - Build flavor:
gplay
Device information
- Brand:
Xiaomi - Device:
houji - Model:
23127PN0CC - Id:
BP2A.250605.031.A3 - Product:
houji
Firmware
- SDK:
36 - Release:
16 - Incremental:
OS3.0.307.0.WNCCNXM
Expected behaviour
J'étais en train de supprimer des éléments et j'ai fais flèche retour pour revenir en arrière dans le menu de nextcloud (avant qu'il ne finisse de fzire disparaitre tout les éléments que j'avais supprimer)
Actual behaviour
.
Android version
Hyper OS3.0.307.0.WNCCNXM
Device brand and model
Xiaomi 14 houji
Stock or custom OS?
Stock
Nextcloud android app version
OS3.0.307.0.WNCCNXM
Nextcloud server version
16
Using a reverse proxy?
No
Android logs
No response
Server error logs
Additional information
No response
- Lenguaje dominante
- Kotlin
- Estrellas
- 5.7k
- Forks
- 2.1k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 149
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/android
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nextcloud/android#18094 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
nextcloud/android#17845 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nextcloud/android#17837 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nextcloud/android#17533 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/android
Issues similares
-
accessibility agent-ready area:android bug fleet
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
level-98/mailcrane#412 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DojoCodingLabs/hermit#23 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
signalapp/Signal-Android#15148 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día