Krita can't open files from a network drive Reproducible: Always Steps to Reproduce: 1a. Drag an image file from a network drive into Krita OR 1b. File > Open any kind of file format (kra, png, jpg, etc) from a network drive With Krita closed, double clicking a .kra file on a network drive will open it in Krita Actual Results: Win 10, Krita 2.9.9: Unknown error code -2 File doesn't open Expected Results: File opens Tried on my home NAS, from Win10, Krita 2.9.9 --> Unknown error code -2 Tried from a school network from Win8, Krita 2.9.10 Also reported by others on IRC, including Samab network.
From IRC: boud - hmm.... I actually think deevad has reported a similar problem when accessing krita files on a samba share from linux Atirk - i can reproduce the error on windows 7 Atirk - i just did the same thing. trying to access files on a network drive doesn't seem to work. it says file does not exist. so it's not just him
Hm, when I tested it here at work, the problem seems to be that _saving_ is broken: the krita file ended up with a zero length. Could check whether that's the case for you, too?
No, it happens when trying to open png or jpg images too (file>open or drag into Krita) from the network. .kra file Do open properly in Krita if I double click the file on the network from Windows Explorer. Same file won't work trying to open from file>open menu.
Hm, that's really fishy. I guess I need to figure out a way to setup a network drive at home to experiment with, but the one I bought last year was so broken I brought it back to the shop and switched to dropbox for everything... So I actually haven't got a test setup!
I have the same problem trying to open any file from server. If i open the same file in a local directory works well. Krita 2.9.10 (git 5f2f2b0) 64 bits windows 8.1.
Created attachment 98314 [details] Intermittent Internal Error message on saving to network location. Perhaps not related, but I did get this error message after saving to a network location on a couple of occations with krita 3.0 Alpha 1. Win 10 (and a Synology nas). But mostly it works fine for me.
Git commit 189daca58291cf6d3443fdc53eac6d579c66086e by Boudewijn Rempt. Committed on 16/08/2016 at 13:46. Pushed by rempt into branch 'video-export-rebased'. Save to a temporary file, then copy the result over on success I thought we were already doing this, but apparently that only was done for remote urls, back in the days we still supported that. The temporary file is saved in the tmp dir, and then copied over. We even make a safety copy of the original file if it exists before doing the copy. This should make saving over network drives faster and more reliable, as well as saving in general more robust. Related: bug 366765, bug 355726 M +63 -17 libs/ui/KisDocument.cpp http://commits.kde.org/krita/189daca58291cf6d3443fdc53eac6d579c66086e
Git commit 3f138209f96cc34a72a135e440609e45633e4ae7 by Boudewijn Rempt. Committed on 16/08/2016 at 13:51. Pushed by rempt into branch 'master'. Save to a temporary file, then copy the result over on success I thought we were already doing this, but apparently that only was done for remote urls, back in the days we still supported that. The temporary file is saved in the tmp dir, and then copied over. We even make a safety copy of the original file if it exists before doing the copy. This should make saving over network drives faster and more reliable, as well as saving in general more robust. Related: bug 366765, bug 355726 M +63 -17 libs/ui/KisDocument.cpp http://commits.kde.org/krita/3f138209f96cc34a72a135e440609e45633e4ae7