nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.94k stars 875 forks source link

iOS App Memory Errors Related to Photos #784

Closed Jerome1010 closed 1 week ago

Jerome1010 commented 5 years ago

Expected behaviour

iOS App syncs all folders and contents, images will show preview thumbnails, app won't get an error.

Actual behaviour

Nextcloud web interface works fine. Upload of several hundred photos to various folders and everything is stable. However, as soon as I log into my iOS Nextcloud app, hit refresh in a folder containing photos, sometimes some thumbnails will load, but rather quickly the app freezes and gives me a 500 Error, or a TIME OUT ERROR.

I am forced to reboot my server. Works fine on the web until I again login to the iOS app.

If I go to my server console for a reboot, I am getting:

"Out of memory: Kill Process 1471 (mysqld) score 184 or sacrifice child"

"Killed process 1471(mysqld) total-vm 1073336kB, anon-rss: 185728kB, file-rss: 0kB, shmem-rss: 0kB"

"Out of memory: kill process 5682 (mysqld) score 165 or sacrifice child"

"Killed process 5682 (mysqld) total-vm 1081440kB, anon-rss: 166608kB, file-rss:0kB, shmem-rss:0kB"

Steps to reproduce

Login to iOS Nextcloud app. Refresh a folder with photos in it.

iOS version

12.1.3

App version

2.22.8.20

Server configuration

I'm a rookie on most of this so.... Ubuntu 18.04 1GB RAM on a 1 CPU server running Nextcloud 15.0.2 SNAP

Operating system: Ubuntu 18.04

Web server: Apache 2.4 (SNAP so I'm guessing here)

Database: MySQL 5.7 (SNAP so I'm guessing here)

PHP version: 7.2 (SNAP so I'm guessing here)

Nextcloud version: (see Nextcloud admin page) 15.0.2 SNAP

I am also quite sure that my memory errors started right about the time I switched from an Android in October-ish 2018. The Android I never had this problem even once. But it happens 100% of the time on my iPhone. Because it didn't occur on Android and it doesn't occur on the web interface, and only occurs when I use iOS app, I'm nearly positive it is an issue with the iOS app.

marinofaggiana commented 5 years ago

Hi @Jerome1010 try the version in TestFlight (2.22.9.x) but your error occured in server side, this issue is in the wrong place

Jerome1010 commented 5 years ago

I just wanted to add that I believe the latest version of Nextcloud iOS app has resolved this issue. Either that or running the preview generator addition. But I'm fairly sure it was the app update....

marinofaggiana commented 5 years ago

Yes , now the requests of preview are serialized.