MaterialFiles
MaterialFiles copied to clipboard
Image viewer crashes when deleting an image on SMB server
First of all: Let me thank you for Material Files - If you ask me, it's the most beautiful file manager for Android!!
To reproduce the issue:
- Open an image located on a SMB server in the Material Files Image Viewer
- Use "Delete" in Image Viewer's meatballs menu
The Image Viewer then crashes/exits and I find myself returned to Material Files.
(This does not happen when doing this on Internal storage.)
logcat, but not terribly useful:
09-15 18:41:35.523 13393 13393 E AndroidRuntime: FATAL EXCEPTION: main
09-15 18:41:35.523 13393 13393 E AndroidRuntime: Process: me.zhanghai.android.files, PID: 13393
09-15 18:41:35.523 13393 13393 E AndroidRuntime: android.os.NetworkOnMainThreadException
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1699)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at java.net.SocketOutputStream.write(SocketOutputStream.java:156)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at e4.a.c(SourceFile:66)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at W3.b.a0(SourceFile:213)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at c4.a.h(SourceFile:150)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.k.e(SourceFile:13)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.k.g(SourceFile:1)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.f.i(SourceFile:46)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.d.a(SourceFile:27)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.d.j(SourceFile:6)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at H1.x.i(SourceFile:1)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at b2.k.i(SourceFile:5)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at d4.f.l(SourceFile:35)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at T6.g.f(SourceFile:49)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at S6.c.h(SourceFile:23)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at B1.b.D(SourceFile:10)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at p6.a.onClick(SourceFile:90)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at g.i.handleMessage(SourceFile:150)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:117)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:210)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at android.os.Looper.loop(Looper.java:302)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9652)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:601)
09-15 18:41:35.523 13393 13393 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1062)
Thank you, NetworkOnMainThreadException from logcat is helpful.