Bug 357132 - Trying to open a file from a network drive causes an error
Summary: Trying to open a file from a network drive causes an error
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 2.9.9
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-24 21:25 UTC by tylerecouture
Modified: 2016-08-16 13:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Intermittent Internal Error message on saving to network location. (61.56 KB, image/jpeg)
2016-04-10 10:47 UTC, Marcus Kjeldsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tylerecouture 2015-12-24 21:25:32 UTC
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.
Comment 1 tylerecouture 2015-12-24 21:32:56 UTC
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
Comment 2 Halla Rempt 2015-12-28 11:59:14 UTC
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?
Comment 3 tylerecouture 2015-12-28 20:49:31 UTC
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.
Comment 4 Halla Rempt 2015-12-29 07:11:16 UTC
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!
Comment 5 Miguel García-Redondo 2016-01-13 08:49:24 UTC
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.
Comment 6 Marcus Kjeldsen 2016-04-10 10:47:31 UTC
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.
Comment 7 Halla Rempt 2016-08-16 13:57:32 UTC
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
Comment 8 Halla Rempt 2016-08-16 13:58:28 UTC
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