matlab file on disk might be empty
Ältere Kommentare anzeigen
Well, I frequently get this error now, which makes it nearly impossible to improve my codes, because I always have to save the file under a new name. Is anyone familiar with this problem (current Windows 10, current Matlab R 2018.b)? I'm grateful for any hints that might solve this issue....
Thanks a lot!
Peter
6 Kommentare
Rik
am 17 Jun. 2019
Can you find any pattern for when this error occurs? And can you post the complete error message? There might be a helpful detail.
Also, it might be better if you replace "aktuelles" with something like "current version" or "fully updated" so people who don't speak German also understand what you mean without guessing.
Guillaume
am 17 Jun. 2019
Are the files saved on a networked drive or a synchronised folder?
Jan
am 17 Jun. 2019
Is this the complete error message?
Peter Bäuerle
am 17 Jun. 2019
Peter Bäuerle
am 17 Jun. 2019
Jan
am 17 Jun. 2019
Which file system do you have on the network disk? Do other computers access your files?
It might be easier to store the files locally and synchronize them, when you shut down Matlab or the computer.
Antworten (4)
Guillaume
am 17 Jun. 2019
0 Stimmen
I would suggest you contact your IT. There's clearly a synchronisation problem between your computer and the network drive. Note that it is not restricted to matlab, it's just that matlab is more sensitive to it.
11 Kommentare
Yony
am 4 Sep. 2019
Dear Guillaume
My company has the same problem (it occors on two laptops with Matlab 2017b and Windows 10). Can you please elaborate on the synchronization problem? My IT does not know what to fix.
Best
Yony
Guillaume
am 4 Sep. 2019
Unfortunately, I don't know what causes this, but it seems that it's always on network drives. The problem has also been reported with other programs so I know it's not isolated to matlab although matlab appears to be more sensitive to it for some reason.
Mathworks may have some better idea of the cause of the problem so I suggest that you contact support directly.
Jan
am 4 Sep. 2019
@Yony: The OP did not explain exactly, in which environment the problem occurs. Your case is not clear also: Does it concern OneDrive, Dropbox or otehr folders, which are syncronized? Are the files stored locally or on a network drive? Please post more details.
Yony
am 5 Sep. 2019
@Jan: Standard network drive, accessed by Windows. Not a cloud or other software like OneDrive. Other computers connected to the network do not have this problem.
Peter Bäuerle
am 5 Sep. 2019
Qian Cao
am 9 Sep. 2019
Same issue for me on Windows 10, Folder shared over network, R2019a. Invoking the file with local file path is fine but when opened as \\computer-name\folder-name unable to save directly without first getting "Error writing ... The file on disk might be empty ..." --> OK --> "This file has been modified outside of MATLAB editor. Do you want to reload it" --> OK ... so MATLAB does save it in the end but not before throwing these error messages... Is a more specific diagnosis found yet? Thanks.
Jan
am 11 Sep. 2019
@Yony, Peter Bäuerle, Qian Cao: It would be really helpful if you post more details. What e.g. is a "standard network drive"? It can be a folder on a NAS driven by a Samba server under Linux, or an old network resource connected by the outdated SMB v1. Which settings do you use for the Change Notifications? See
Yony
am 18 Sep. 2019
@Jan
Network drive NTFS from win 2012 R2.
Firewall PaloAlto FW
Laptop has Windows 10 Pro version 1709
Matlab 2017b
system_dependent('RemotePathPolicy', 'Status'): None
system_dependent('DirChangeHandleWarn', 'Status'): Once
Note that one other computer sometimes has this problem, but other don't
Andy Brown
am 18 Nov. 2019
I only get this error message if I have two versions of Matlab running. I've only noticed it since I upgraded to Windows 10, so can't say for sure whether the problem existed before the upgrade.
Walter Roberson
am 10 Feb. 2020
There was a Windows 10 network filesystem issue that was triggered when automatic file synchronization was turned on; if I recall correctly it involved Windows Live. I am not sure when the problem was fixed.
Walter Roberson
am 10 Feb. 2020
Bearbeitet: Walter Roberson
am 28 Feb. 2020
https://www.mathworks.com/matlabcentral/answers/354614-cd-to-onedrive-doesn-t-work-on-windows-10-build-16273-1#answer_280466 is the issue that I was thinking of.
Niko Seubert
am 10 Feb. 2020
0 Stimmen
Did you solve that issue ??
Can i finally switch that "check" off???
Peter Bäuerle
am 10 Feb. 2020
0 Stimmen
Niko Seubert
am 10 Feb. 2020
0 Stimmen
Well that is not really an option since "working remote" is on the rise.
Also i can NOT ask the IT guys to finally get the network right (they habe been trying ;) ;) ).
But since we pay a lot of money for licenses and maybe the matlab dudes might want to FIX IT!!!
1 Kommentar
Curtis DeGasperi
am 28 Feb. 2020
Bearbeitet: Curtis DeGasperi
am 28 Feb. 2020
The problem doesn't seem to be limited to newer releases. I'm running R2015b and this problems started a year or more ago for me. Other users in my group have told me they have never experienced this issue. A while ago I did an install on a new computer and all was well for many months, but the problem is back. It does seem odd that I can find complaints about the issue going back to at least 2017 on the interwebs, but nobody seems to really have any idea how to fix it. Maybe it is a Matlab issue. I don't see our IT people spending too much time puzzling this out as it seems to be a very isolated problem (one person and one program).
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!