Report bug
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- mobile, mobile-dev
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
⚠️ 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
- 主要言語
- Kotlin
- スター
- 5.7k
- フォーク
- 2.1k
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 149
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/android のほかの issue
-
0. Needs triage enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nextcloud/android#18094 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
nextcloud/android#17845 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the app再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nextcloud/android#17837 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nextcloud/android#17533 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
nextcloud/android の issue をすべて見る
似ている issue
-
accessibility agent-ready area:android bug fleet
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
level-98/mailcrane#412 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
DojoCodingLabs/hermit#23 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
signalapp/Signal-Android#15148 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信