[Solved] Moto G4 + CM14.1: downloading or previewing any file are impossible

2nd Edit: fixed with new ROM. Anything working in Seafile as expected :wink:

Edit: Several tests have shown that the error is independent of an installed SD card. I*ve fixed title and description. The error occurs with CM14.1 on a Moto G4. With the same software (CM + Seafile) on a Moto G1 everything works.

I’m using the latest Seafile client from Google Playstore (2.1.7). I can’t download any file anymore. Libraries are displayed correctly. Previewing pictures displays only a default image. This is surprising because thumbnails are displayed. If I try to download a file a message is displayed “Herunterladen fehlgeschlagen” that means download failed.

Automatic upload works, access to protected libraries works, but I can’t download any file.

If I try to preview a picture logcat shows this error:

12-31 11:15:45.120 16828 16828 D DefaultAppLock: onActivityResumed 12-31 11:15:45.265 16828 23708 D OpenGLRenderer: endAllActiveAnimators on 0x97594a80 (RippleDrawable) with handle 0x9758cf50 12-31 11:15:45.419 16828 23791 W System.err: java.io.FileNotFoundException: /storage/emulated/0/Seafile/temp/file-183792680.tmp (Invalid argument) 12-31 11:15:45.420 16828 23791 W System.err: at java.io.FileOutputStream.open(Native Method) 12-31 11:15:45.420 16828 23791 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:221) 12-31 11:15:45.420 16828 23791 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:169) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.SeafConnection$MonitoredFileOutputStream.<init>(SeafConnection.java:1225) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.SeafConnection.getFileFromLink(SeafConnection.java:588) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.SeafConnection.getFile(SeafConnection.java:689) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.data.DataManager.getFile(DataManager.java:403) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.transfer.DownloadTask.doInBackground(DownloadTask.java:71) 12-31 11:15:45.420 16828 23791 W System.err: at com.seafile.seadroid2.transfer.DownloadTask.doInBackground(DownloadTask.java:19) 12-31 11:15:45.421 16828 23791 W System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305) 12-31 11:15:45.421 16828 23791 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 12-31 11:15:45.421 16828 23791 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 12-31 11:15:45.421 16828 23791 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 12-31 11:15:45.421 16828 23791 W System.err: at java.lang.Thread.run(Thread.java:761) 12-31 11:15:45.422 16828 16828 D ImageLoader: Load image from memory cache [drawable://2130837677_1074x1770] 12-31 11:15:45.558 16828 23709 W System.err: java.io.FileNotFoundException: /storage/emulated/0/Seafile/temp/file-871045282.tmp (Invalid argument) 12-31 11:15:45.560 16828 23709 W System.err: at java.io.FileOutputStream.open(Native Method) 12-31 11:15:45.560 16828 23709 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:221) 12-31 11:15:45.560 16828 23709 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:169) 12-31 11:15:45.560 16828 23709 W System.err: at com.seafile.seadroid2.SeafConnection$MonitoredFileOutputStream.<init>(SeafConnection.java:1225) 12-31 11:15:45.560 16828 23709 W System.err: at com.seafile.seadroid2.SeafConnection.getFileFromLink(SeafConnection.java:588) 12-31 11:15:45.561 16828 23709 W System.err: at com.seafile.seadroid2.SeafConnection.getFile(SeafConnection.java:689) 12-31 11:15:45.561 16828 23709 W System.err: at com.seafile.seadroid2.data.DataManager.getFile(DataManager.java:403) 12-31 11:15:45.561 16828 23709 W System.err: at com.seafile.seadroid2.transfer.DownloadTask.doInBackground(DownloadTask.java:71) 12-31 11:15:45.561 16828 23709 W System.err: at com.seafile.seadroid2.transfer.DownloadTask.doInBackground(DownloadTask.java:19) 12-31 11:15:45.561 16828 23709 W System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305) 12-31 11:15:45.561 16828 23709 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 12-31 11:15:45.561 16828 23709 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 12-31 11:15:45.561 16828 23709 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 12-31 11:15:45.561 16828 23709 W System.err: at java.lang.Thread.run(Thread.java:761) 12-31 11:15:45.562 16828 16828 D ImageLoader: Load image from memory cache [drawable://2130837677_1074x1770] 12-31 11:15:45.664 16828 16828 D BrowserActivity: onSaveInstanceState 12-31 11:15:45.665 16828 16828 D BrowserActivity: onStop 12-31 11:15:45.666 16828 16828 D ReposFragment: timer stopped 12-31 11:15:47.275 16828 16828 D DefaultAppLock: onActivityPaused

Even, the two files exists in /storage/emulated/0/Seafile/temp but their size is 0.

How can I fix this?