matlab file on disk might be empty
Mostrar comentarios más antiguos
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 comentarios
Rik
el 17 de Jun. de 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
el 17 de Jun. de 2019
Are the files saved on a networked drive or a synchronised folder?
Jan
el 17 de Jun. de 2019
Is this the complete error message?
Peter Bäuerle
el 17 de Jun. de 2019
Peter Bäuerle
el 17 de Jun. de 2019
Jan
el 17 de Jun. de 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.
Respuestas (4)
Guillaume
el 17 de Jun. de 2019
0 votos
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 comentarios
Yony
el 4 de Sept. de 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
el 4 de Sept. de 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
el 4 de Sept. de 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
el 5 de Sept. de 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
el 5 de Sept. de 2019
Qian Cao
el 9 de Sept. de 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
el 11 de Sept. de 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
el 18 de Sept. de 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
el 18 de Nov. de 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
el 10 de Feb. de 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
el 10 de Feb. de 2020
Editada: Walter Roberson
el 28 de Feb. de 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
el 10 de Feb. de 2020
0 votos
Did you solve that issue ??
Can i finally switch that "check" off???
Peter Bäuerle
el 10 de Feb. de 2020
0 votos
Niko Seubert
el 10 de Feb. de 2020
0 votos
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 comentario
Curtis DeGasperi
el 28 de Feb. de 2020
Editada: Curtis DeGasperi
el 28 de Feb. de 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).
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!