matlab file on disk might be empty

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
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
Guillaume el 17 de Jun. de 2019
Are the files saved on a networked drive or a synchronised folder?
Jan
Jan el 17 de Jun. de 2019
Is this the complete error message?
Peter Bäuerle
Peter Bäuerle el 17 de Jun. de 2019
Complete error message:
Error writing [filename].m
The file on disk might be empty or incomplete. Ensure there is sufficient free space on your drive, and then save the file again. Do not reload the file before you successfully save it.
Peter Bäuerle
Peter Bäuerle el 17 de Jun. de 2019
Thanks for your hints so far: it is indeed related with the network. As soon as I save the file on my local disk and work on this it behave normal. Hoiwever, this an institute network and normally we are working on the network drive, were is sufficient space for large amount of data. By doing so, the error occurs permanent....
Any idea for a network solution (right now I'm working with the local drive)?
Best,
Peter
Jan
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.

Iniciar sesión para comentar.

Respuestas (4)

Guillaume
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
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
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
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
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
Peter Bäuerle el 5 de Sept. de 2019
The same for me: Microsoft Windows 10, this a network PC, so I have to login to the institutional network. I'm currently running Matlab R2018b (Update 4). I still work on the local disk, which is working, but not an overall good solution.
Qian Cao
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
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
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
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
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.

Iniciar sesión para comentar.

Niko Seubert
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
Peter Bäuerle el 10 de Feb. de 2020

0 votos

You can do the switch - the problem itself is not solved, but I changed the matlab working directory completely to my local disk and thus circumvent the problem.... that's sufficient right now.
Niko Seubert
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
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).

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Jun. de 2019

Editada:

el 28 de Feb. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by