Listing a directory with many files causes an OutOfMemoryError
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. Open NextCloud app
2. Navigate to a folder with many files (tried with a folder having 19k files as well as 34k files - both exclusively jpg images)
3. Wait a bit until the App crashes with OutOfMemoryError
### Expected behaviour
The app should not crash with folders with many files but instead use virtualization, chunking, pagination, or other mechanisms.
### Actual behaviour
The app crashes when viewing folders with many files.
### Android version
16
### Device brand and model
Google Pixel 6
### Stock or custom OS?
Stock
### Nextcloud android app version
3.34.0
### Nextcloud server version
31.0.9
### Using a reverse proxy?
Yes
### Android logs
```
09-28 20:56:14.213 4760 4837 D MetadataWorker: 🕒 Starting metadata sync for folder: /DCIM/
09-28 20:56:14.213 4760 4837 D MetadataWorker: 📂 eTag check
09-28 20:56:14.213 4760 4837 D MetadataWorker: Path: /DCIM/
09-28 20:56:14.213 4760 4837 D MetadataWorker: eTag: 68d94fcc512d3
09-28 20:56:14.213 4760 4837 D MetadataWorker: eTagOnServer: 68d94fcc512d3
09-28 20:56:14.213 4760 4837 D MetadataWorker: Skipping /DCIM/, eTag didn't change
09-28 20:56:14.214 4760 4804 D WM-Processor: Work WorkGenerationalId(workSpecId=4a7305e6-c185-4652-afab-30745ca4b1e2, generation=0) is already enqueued for processing
09-28 20:56:14.217 4760 4837 D MetadataWorker: 📂 eTag check
09-28 20:56:14.217 4760 4837 D MetadataWorker: Path: /DCIM/100PINT/
09-28 20:56:14.217 4760 4837 D MetadataWorker: eTag: 68d94fcc512d3
09-28 20:56:14.217 4760 4837 D MetadataWorker: eTagOnServer: 68d94fcc512d3
09-28 20:56:14.217 4760 4837 D MetadataWorker: Skipping /DCIM/100PINT/, eTag didn't change
09-28 20:56:14.217 4760 4837 D MetadataWorker: 📂 eTag check
09-28 20:56:14.217 4760 4837 D MetadataWorker: Path: /DCIM/Camera/
09-28 20:56:14.217 4760 4837 D MetadataWorker: eTag:
09-28 20:56:14.217 4760 4837 D MetadataWorker: eTagOnServer: 68d94fcc512d3
09-28 20:56:14.217 4760 4837 D MetadataWorker: ⏳ Fetching metadata for: /DCIM/Camera/
09-28 20:56:14.217 4760 4837 D RefreshFolderOperation: Skipping eTag check since metadata worker already did
09-28 20:56:14.224 4760 4837 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/files/REDACTED_USER/DCIM/Camera/
09-28 20:56:14.722 4760 4910 D RefreshFolderOperation: Checking changes in REDACTED_USER@nextcloud.REDACTED_DOMAIN.xx/DCIM/
09-28 20:56:14.722 4760 4760 D ExtendedListFragment: Updating setMessageForEmptyList
09-28 20:56:14.723 4760 4760 D ExtendedListFragment: Skipping setMessageForEmptyList – same data as before
09-28 20:56:14.724 4760 4910 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/files/REDACTED_USER/DCIM/
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: 📂 eTag check
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: Path: /DCIM/
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: Local eTag: 68d94fcc512d3
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: Remote eTag: 68d94fcc512d3
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: Changed: false
09-28 20:56:14.780 4760 4910 I RefreshFolderOperation: Checked REDACTED_USER@nextcloud.REDACTED_DOMAIN.xx/DCIM/ : not changed
09-28 20:56:14.780 4760 4910 D RefreshFolderOperation: 💾 Remote folder is not changed, getting folder content from database
09-28 20:56:14.780 4760 4910 D FileDataStorageManager: getFolderContent - start
09-28 20:56:14.784 4760 4910 D FileDataStorageManager: getFolderContent - finished
09-28 20:56:14.792 4760 4910 D RefreshFolderOperation: Send broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
09-28 20:56:14.794 4760 4760 D FileDisplayActivity: Received broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
09-28 20:56:14.799 4760 4760 D FileDataStorageManager: getFolderContent - start
09-28 20:56:14.800 4760 4760 D FileDataStorageManager: getFolderContent - finished
09-28 20:56:14.806 4760 4760 D FileDisplayActivity: Setting progress visibility to false
09-28 20:56:14.827 4760 4760 D ExtendedListFragment: Skipping setMessageForEmptyList – same data as before
09-28 20:56:14.827 4760 4760 D ExtendedListFragment: Skipping setMessageForEmptyList – same data as before
09-28 20:56:15.795 4760 4760 D ExtendedListFragment: Updating setMessageForEmptyList
09-28 20:56:15.797 4760 4760 D FileDataStorageManager: getFolderContent - start
09-28 20:56:15.797 4760 4760 D FileDataStorageManager: getFolderContent - finished
09-28 20:56:15.805 4760 4760 D FileDisplayActivity: startSyncFolderOperation called, ignoreEtag: false, ignoreFocus: false
09-28 20:56:15.806 4760 4805 D WM-Processor: Processor cancelling 4a7305e6-c185-4652-afab-30745ca4b1e2
09-28 20:56:15.807 4760 4805 D WM-Processor: WorkerWrapper interrupted for 4a7305e6-c185-4652-afab-30745ca4b1e2
09-28 20:56:15.809 4760 4805 D WM-GreedyScheduler: Cancelling work ID 4a7305e6-c185-4652-afab-30745ca4b1e2
09-28 20:56:15.809 4760 4760 D WM-SystemJobService: onStopJob for WorkGenerationalId(workSpecId=4a7305e6-c185-4652-afab-30745ca4b1e2, generation=0)
09-28 20:56:15.815 4760 4805 W JobInfo : Requested important-while-foreground flag for job683 is ignored and takes no effect
09-28 20:56:15.815 4760 4805 D WM-SystemJobScheduler: Scheduling work ID 1f5ca17d-4c6e-47eb-af14-f18831bceeb5Job ID 683
09-28 20:56:15.818 4760 4805 D WM-GreedyScheduler: Ignoring {WorkSpec: c3e2a6e3-9121-4832-87db-3053a898cd9a}. Requires ContentUri triggers.
09-28 20:56:15.818 4760 4805 D WM-GreedyScheduler: Starting tracking for 1f5ca17d-4c6e-47eb-af14-f18831bceeb5
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: Work [ id=4a7305e6-c185-4652-afab-30745ca4b1e2, tags={ com.nextcloud.client.jobs.metadata.MetadataWorker,*,name:metadata_sync,timestamp:1759085774167,class:MetadataWorker } ] was cancelled
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: androidx.work.impl.WorkerStoppedException
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.WorkerWrapper.interrupt(WorkerWrapper.kt:348)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.Processor.interrupt(Processor.java:439)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.Processor.stopAndCancelWork(Processor.java:280)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.CancelWorkRunnable.cancel(CancelWorkRunnable.kt:33)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.CancelWorkRunnable.forNameInline$lambda$0(CancelWorkRunnable.kt:127)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.CancelWorkRunnable.$r8$lambda$gmz-7SyxTGDd6CwHjvOsJ11-hcc(Unknown Source:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.CancelWorkRunnable$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.room.RoomDatabase.runInTransaction$lambda$10(RoomDatabase.android.kt:733)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.room.RoomDatabase.$r8$lambda$bNnW08bMruDX4DuvntvGeRm0ICM(Unknown Source:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.room.RoomDatabase$$ExternalSyntheticLambda0.invoke(D8$$SyntheticClass:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.room.RoomDatabase.runInTransaction(RoomDatabase.android.kt:758)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.room.RoomDatabase.runInTransaction(RoomDatabase.android.kt:733)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.CancelWorkRunnable.forNameInline(CancelWorkRunnable.kt:123)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.EnqueueRunnable.enqueueWorkWithPrerequisites(EnqueueRunnable.java:249)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.EnqueueRunnable.enqueueContinuation(EnqueueRunnable.java:136)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.EnqueueRunnable.processContinuation(EnqueueRunnable.java:129)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.EnqueueRunnable.addToDatabase(EnqueueRunnable.java:93)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.EnqueueRunnable.enqueue(EnqueueRunnable.java:74)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.WorkContinuationImpl.lambda$enqueue$0$androidx-work-impl-WorkContinuationImpl(WorkContinuationImpl.java:201)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.WorkContinuationImpl$$ExternalSyntheticLambda0.invoke(D8$$SyntheticClass:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.OperationKt.launchOperation$lambda$2$lambda$1(Operation.kt:50)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.OperationKt.$r8$lambda$XKAkIiEN7OgIvwuLUZRQpJhjmyE(Unknown Source:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.OperationKt$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
09-28 20:56:15.819 4760 4805 I WM-WorkerWrapper: at java.lang.Thread.run(Thread.java:1119)
09-28 20:56:15.820 4760 4805 D WM-WorkerWrapper: Status for 4a7305e6-c185-4652-afab-30745ca4b1e2 is null ; not doing any work
09-28 20:56:15.820 4760 4760 D WM-Processor: Processor 4a7305e6-c185-4652-afab-30745ca4b1e2 executed; reschedule = false
09-28 20:56:15.820 4760 4760 D WM-GreedyScheduler: Stopping tracking for WorkGenerationalId(workSpecId=4a7305e6-c185-4652-afab-30745ca4b1e2, generation=0)
09-28 20:56:15.820 4760 4805 D WM-StopWorkRunnable: StopWorkRunnable for 4a7305e6-c185-4652-afab-30745ca4b1e2; Processor.stopWork = false
09-28 20:56:15.820 4760 4805 D WM-StopWorkRunnable: StopWorkRunnable for 4a7305e6-c185-4652-afab-30745ca4b1e2; Processor.stopWork = false
09-28 20:56:15.824 4760 4760 D WM-SystemJobService: onStartJob for WorkGenerationalId(workSpecId=1f5ca17d-4c6e-47eb-af14-f18831bceeb5, generation=0)
09-28 20:56:15.824 4760 4805 D WM-GreedyScheduler: Cancelling work ID 4a7305e6-c185-4652-afab-30745ca4b1e2
09-28 20:56:15.825 4760 4805 D WM-GreedyScheduler: Ignoring {WorkSpec: c3e2a6e3-9121-4832-87db-3053a898cd9a}. Requires ContentUri triggers.
09-28 20:56:15.825 4760 4805 D WM-GreedyScheduler: Starting tracking for 1f5ca17d-4c6e-47eb-af14-f18831bceeb5
09-28 20:56:15.825 4760 4805 D WM-BrdcstRcvrCnstrntTrc: BatteryNotLowTracker: unregistering receiver
09-28 20:56:15.826 4760 4805 D WM-NetworkStateTracker: Unregistering network callback
09-28 20:56:15.827 4760 4805 D WM-Processor: Processor: processing WorkGenerationalId(workSpecId=1f5ca17d-4c6e-47eb-af14-f18831bceeb5, generation=0)
09-28 20:56:15.827 4760 4805 D WM-ConstraintTracker: BatteryNotLowTracker: initial state = true
09-28 20:56:15.827 4760 4805 D WM-BrdcstRcvrCnstrntTrc: BatteryNotLowTracker: registering receiver
09-28 20:56:15.828 4760 4805 D WM-ConstraintTracker: NetworkStateTracker24: initial state = NetworkState(isConnected=true, isValidated=true, isMetered=false, isNotRoaming=true)
09-28 20:56:15.828 4760 4805 D WM-NetworkStateTracker: Registering network callback
09-28 20:56:15.829 4760 4822 D WM-NetworkStateTracker: Network capabilities changed: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED LinkUpBandwidth>=3630Kbps LinkDnBandwidth>=70222Kbps TransportInfo: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, IP: /192.168.0.189, Security type: 2, Supplicant state: COMPLETED, Wi-Fi standard: 11ax, RSSI: -49, Link speed: 600Mbps, Tx Link speed: 600Mbps, Max Supported Tx Link speed: 1200Mbps, Rx Link speed: 1080Mbps, Max Supported Rx Link speed: 1200Mbps, Frequency: 5180MHz, Net ID: -1, Metered hint: false, score: 60, isUsable: true, CarrierMerged: false, SubscriptionId: -1, IsPrimary: -1, Trusted: true, Restricted: false, Ephemeral: false, OEM paid: false, OEM private: false, OSU AP: false, FQDN: , Provider friendly name: , Requesting package name: MLO Information: , Is TID-To-Link negotiation supported by the AP: false, AP MLD Address: , AP MLO Link Id: , AP MLO Affiliated links: , Vendor Data: > SignalStrength: -49 UnderlyingNetworks: Null]
09-28 20:56:15.830 4760 4760 D WM-WorkerWrapper: Starting work for com.nextcloud.client.jobs.metadata.MetadataWorker
09-28 20:56:15.830 4760 4805 D WM-GreedyScheduler: Constraints met: Scheduling work ID WorkGenerationalId(workSpecId=1f5ca17d-4c6e-47eb-af14-f18831bceeb5, generation=0)
09-28 20:56:15.831 4760 4805 D WM-Processor: Work WorkGenerationalId(workSpecId=1f5ca17d-4c6e-47eb-af14-f18831bceeb5, generation=0) is already enqueued for processing
09-28 20:56:15.833 4760 4856 D MetadataWorker: 🕒 Starting metadata sync for folder: /DCIM/Camera/
09-28 20:56:15.834 4760 4856 D MetadataWorker: 📂 eTag check
09-28 20:56:15.834 4760 4856 D MetadataWorker: Path: /DCIM/Camera/
09-28 20:56:15.834 4760 4856 D MetadataWorker: eTag:
09-28 20:56:15.834 4760 4856 D MetadataWorker: eTagOnServer: 68d94fcc512d3
09-28 20:56:15.834 4760 4856 D MetadataWorker: ⏳ Fetching metadata for: /DCIM/Camera/
09-28 20:56:15.834 4760 4856 D RefreshFolderOperation: Skipping eTag check since metadata worker already did
09-28 20:56:15.840 4760 4856 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/files/REDACTED_USER/DCIM/Camera/
09-28 20:56:16.363 4760 4916 D RefreshFolderOperation: Checking changes in REDACTED_USER@nextcloud.REDACTED_DOMAIN.xx/DCIM/Camera/
09-28 20:56:16.364 4760 4760 D ExtendedListFragment: Updating setMessageForEmptyList
09-28 20:56:16.364 4760 4760 D ExtendedListFragment: Skipping setMessageForEmptyList – same data as before
09-28 20:56:16.365 4760 4916 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/files/REDACTED_USER/DCIM/Camera/
09-28 20:56:16.422 4760 4916 D RefreshFolderOperation: 📂 eTag check
09-28 20:56:16.422 4760 4916 D RefreshFolderOperation: Path: /DCIM/Camera/
09-28 20:56:16.422 4760 4916 D RefreshFolderOperation: Local eTag:
09-28 20:56:16.422 4760 4916 D RefreshFolderOperation: Remote eTag: 68d94fcc512d3
09-28 20:56:16.422 4760 4916 D RefreshFolderOperation: Changed: true
09-28 20:56:16.422 4760 4916 I RefreshFolderOperation: Checked REDACTED_USER@nextcloud.REDACTED_DOMAIN.xx/DCIM/Camera/ : changed
09-28 20:56:16.423 4760 4916 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/files/REDACTED_USER/DCIM/Camera/
09-28 20:56:36.415 4760 4771 I extcloud.client: Background concurrent mark compact GC freed 17MB AllocSpace bytes, 7(140KB) LOS objects, 31% free, 212MB/308MB, paused 58.831ms,2.258ms total 472.563ms
09-28 20:56:36.941 4760 4837 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:36.941 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:36.941 4760 4916 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:37.701 4760 4771 I extcloud.client: Clamp target GC heap from 588MB to 512MB
09-28 20:56:37.701 4760 4771 I extcloud.client: Background concurrent mark compact GC freed 19MB AllocSpace bytes, 0(0B) LOS objects, 3% free, 492MB/512MB, paused 474us,2.141ms total 1.134s
09-28 20:56:37.701 4760 4837 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 760.115ms
09-28 20:56:37.701 4760 4856 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 760.094ms
09-28 20:56:37.702 4760 4916 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 760.377ms
09-28 20:56:37.731 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:37.731 4760 4837 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:37.731 4760 4916 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:38.190 4760 4771 I extcloud.client: Clamp target GC heap from 607MB to 512MB
09-28 20:56:38.190 4760 4771 I extcloud.client: Background concurrent mark compact GC freed 0B AllocSpace bytes, 0(0B) LOS objects, 0% free, 511MB/512MB, paused 386us total 459.739ms
09-28 20:56:38.190 4760 4856 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 459.020ms
09-28 20:56:38.190 4760 4837 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 458.982ms
09-28 20:56:38.190 4760 4837 I extcloud.client: Forcing collection of SoftReferences for 48B allocation
09-28 20:56:38.190 4760 4856 I extcloud.client: Forcing collection of SoftReferences for 48B allocation
09-28 20:56:38.190 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:38.190 4760 4916 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 459.058ms
09-28 20:56:38.190 4760 4916 I extcloud.client: Forcing collection of SoftReferences for 24B allocation
09-28 20:56:38.190 4760 4916 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:38.190 4760 4773 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:38.191 4760 4774 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:38.527 4760 5124 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.034 4760 4760 W JobService: onNetworkChanged() not implemented in androidx.work.impl.background.systemjob.SystemJobService. Must override in a subclass.
09-28 20:56:39.061 4760 4822 D WM-NetworkStateTracker: Network capabilities changed: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED LinkUpBandwidth>=3630Kbps LinkDnBandwidth>=229064Kbps TransportInfo: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, IP: /192.168.0.189, Security type: 2, Supplicant state: COMPLETED, Wi-Fi standard: 11ax, RSSI: -48, Link speed: 1080Mbps, Tx Link speed: 1080Mbps, Max Supported Tx Link speed: 1200Mbps, Rx Link speed: 1080Mbps, Max Supported Rx Link speed: 1200Mbps, Frequency: 5180MHz, Net ID: -1, Metered hint: false, score: 60, isUsable: true, CarrierMerged: false, SubscriptionId: -1, IsPrimary: -1, Trusted: true, Restricted: false, Ephemeral: false, OEM paid: false, OEM private: false, OSU AP: false, FQDN: , Provider friendly name: , Requesting package name: MLO Information: , Is TID-To-Link negotiation supported by the AP: false, AP MLD Address: , AP MLO Link Id: , AP MLO Affiliated links: , Vendor Data: > SignalStrength: -48 UnderlyingNetworks: Null]
09-28 20:56:39.084 4760 4837 I extcloud.client: Clamp target GC heap from 591MB to 512MB
09-28 20:56:39.084 4760 4837 I extcloud.client: Alloc concurrent mark compact GC freed 16MB AllocSpace bytes, 0(0B) LOS objects, 3% free, 495MB/512MB, paused 317us,2.259ms total 893.638ms
09-28 20:56:39.084 4760 4856 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 893.684ms
09-28 20:56:39.084 4760 4916 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 893.659ms
09-28 20:56:39.084 4760 4773 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 893.877ms
09-28 20:56:39.084 4760 4774 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 893.704ms
09-28 20:56:39.084 4760 5124 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 557.693ms
09-28 20:56:39.108 4760 4837 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.108 4760 4916 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.108 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.566 4760 4771 I extcloud.client: Clamp target GC heap from 607MB to 512MB
09-28 20:56:39.566 4760 4771 I extcloud.client: Background concurrent mark compact GC freed 0B AllocSpace bytes, 0(0B) LOS objects, 0% free, 511MB/512MB, paused 327us total 458.427ms
09-28 20:56:39.567 4760 4837 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 458.426ms
09-28 20:56:39.567 4760 4916 I extcloud.client: WaitForGcToComplete blocked Alloc on Background for 458.429ms
09-28 20:56:39.567 4760 4916 I extcloud.client: Forcing collection of SoftReferences for 24B allocation
09-28 20:56:39.567 4760 4837 I extcloud.client: Forcing collection of SoftReferences for 56B allocation
09-28 20:56:39.567 4760 4837 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.567 4760 4856 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 458.761ms
09-28 20:56:39.567 4760 4773 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.567 4760 4856 I extcloud.client: Forcing collection of SoftReferences for 24B allocation
09-28 20:56:39.567 4760 4774 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:39.567 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:40.465 4760 4916 I extcloud.client: Clamp target GC heap from 606MB to 512MB
09-28 20:56:40.465 4760 4916 I extcloud.client: Alloc concurrent mark compact GC freed 1752KB AllocSpace bytes, 0(0B) LOS objects, 0% free, 510MB/512MB, paused 316us,2.227ms total 898.426ms
09-28 20:56:40.465 4760 4837 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 898.661ms
09-28 20:56:40.465 4760 4773 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 898.381ms
09-28 20:56:40.466 4760 4856 I extcloud.client: Waiting for a blocking GC Alloc
09-28 20:56:40.466 4760 4774 I extcloud.client: WaitForGcToComplete blocked Alloc on Alloc for 898.513ms
09-28 20:56:40.468 4760 4916 W extcloud.client: Throwing OutOfMemoryError "Failed to allocate a 24 byte allocation with 1751744 free bytes and 1710KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC." (VmSize 19157880 kB)
09-28 20:56:40.615 4760 4916 E ReadFolderRemoteOperation: Synchronized /DCIM/Camera/: failed
--------- beginning of crash
09-28 20:56:40.618 4760 4916 E AndroidRuntime: FATAL EXCEPTION: Thread-38
09-28 20:56:40.618 4760 4916 E AndroidRuntime: Process: com.nextcloud.client, PID: 4760
09-28 20:56:40.618 4760 4916 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 1751744 free bytes and 1710KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.dom.InnerNodeImpl.(InnerNodeImpl.java:45)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.dom.ElementImpl.(ElementImpl.java:54)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.dom.DocumentImpl.createElementNS(DocumentImpl.java:347)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:272)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:128)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.jackrabbit.webdav.xml.DomUtil.parseDocument(DomUtil.java:104)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseBodyAsDocument(DavMethodBase.java:113)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getRootElement(DavMethodBase.java:137)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.processResponseBody(DavMethodBase.java:282)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1749)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.lib.common.OwnCloudClient.executeMethod(OwnCloudClient.java:192)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.run(ReadFolderRemoteOperation.java:62)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:462)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:274)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
09-28 20:56:40.618 4760 4916 E AndroidRuntime: at java.lang.Thread.run(Thread.java:1119)
```
### Server error logs
```bash
There is no error on the server
```
### Additional information
Another user of our server also reported the same error with the latest Nextcloud Android App using Xiaomi Redmi Note 14 Pro+ (5G) with Android 14 with the same directories.
The server is hosted using the LSIO Docker Image on a fast RAID1 SSD setup and an Intel i3-N305 CPU
Contributor guide
Assessment
This issue has not been assessed yet.