Nextcloud Apps Crash when Scrolling
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- mobile-dev, performance
Piste de recherche
Start by reproducing scrolling in a synchronized folder with 8,000+ files on Android 14, then inspect the RecyclerView scrolling and ConstraintLayout measurement path shown in the OutOfMemoryError stack trace. Done means scrolling no longer causes excessive memory growth, lag, or an app crash under the reported conditions.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
⚠️ 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
I was just scrolling through my folders looking for a file, then the app started lagging and crashing.
Expected behaviour
Scrolling shouldn't take up much RAM Usage right? It should be optimized further so that the application does not consume too much RAM when scrolling through folders with lots of files.
Actual behaviour
When scrolling through a folder with lots of files, the app may run smoothly for a few seconds, then start to lag and crash.
Android version
14
Device brand and model
Tecno LH8n
Stock or custom OS?
Stock
Nextcloud android app version
34.1.1
Nextcloud server version
33.0.3.2
Using a reverse proxy?
I don't know
Android logs
Cause of error
Exception in thread "main" java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 3819520 free bytes and 3730KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
at java.util.HashMap$KeySet.iterator(HashMap.java:991)
at java.util.HashSet.iterator(HashSet.java:183)
at androidx.constraintlayout.core.widgets.analyzer.Direct.verticalSolvingPass(Direct.java:496)
at androidx.constraintlayout.core.widgets.analyzer.Direct.solvingPass(Direct.java:230)
at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.layout(ConstraintWidgetContainer.java:711)
at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solveLinearSystem(BasicMeasure.java:170)
at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solverMeasure(BasicMeasure.java:298)
at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:119)
at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem(ConstraintLayout.java:1634)
at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(ConstraintLayout.java:1777)
at android.view.View.measure(View.java:27339)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7124)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1608)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1240)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:723)
at android.view.View.measure(View.java:27339)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:10210)
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1688)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1622)
at androidx.recyclerview.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1425)
at androidx.recyclerview.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1158)
at androidx.recyclerview.widget.RecyclerView.scrollStep(RecyclerView.java:2050)
at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5835)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1506)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1515)
at android.view.Choreographer.doCallbacks(Choreographer.java:1085)
at android.view.Choreographer.doFrame(Choreographer.java:971)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1489)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:243)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:8470)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1064)
App information
- ID:
com.nextcloud.client - Version:
340010190 - Build flavor:
gplay
Device information
- Brand:
TECNO - Device:
TECNO-LH8n - Model:
TECNO LH8n - Id:
UP1A.231005.007 - Product:
LH8n-GL
Firmware
- SDK:
34 - Release:
14 - Incremental:
250606V834
Server error logs
Additional information
My folder have 8000+ file and Already Synchronized with my phone
- Langage dominant
- Kotlin
- Étoiles
- 5.7k
- Forks
- 2.1k
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 135
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/android
-
0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
nextcloud/android#17845 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appPeut-être pris @falkloewert l’a pris il y a 28 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nextcloud/android#17837 · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
0. Needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
nextcloud/android#17533 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")Peut-être pris @ChristianTannheimer l’a pris il y a 118 jours. Ouverte0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/android
Issues similaires
-
Failures in nested test classes (Outer$Inner) are not annotated on their source filePeut-être pris @NopeCharon l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
mikepenz/action-junit-report#1661 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Kotlin/kotlin-lsp#309 ·
-
Two stored artist rows are not act names: "DJS" from a Renate floor heading and "Stevie Cox -"Ouvertearea:data-quality importer size:S
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
enorm-labs/event-junkie#5136 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Type: Possible bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
spacecowboy/Feeder#1318 ·
Les mainteneurs répondent en général sous 1 jour