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 件のコメント
Rik
2019 年 6 月 17 日
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
2019 年 6 月 17 日
Are the files saved on a networked drive or a synchronised folder?
Jan
2019 年 6 月 17 日
Is this the complete error message?
Peter Bäuerle
2019 年 6 月 17 日
Peter Bäuerle
2019 年 6 月 17 日
Jan
2019 年 6 月 17 日
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.
回答 (4 件)
Guillaume
2019 年 6 月 17 日
0 投票
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 件のコメント
Yony
2019 年 9 月 4 日
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
2019 年 9 月 4 日
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
2019 年 9 月 4 日
@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
2019 年 9 月 5 日
@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
2019 年 9 月 5 日
Qian Cao
2019 年 9 月 9 日
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
2019 年 9 月 11 日
@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
2019 年 9 月 18 日
@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
2019 年 11 月 18 日
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
2020 年 2 月 10 日
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
2020 年 2 月 10 日
編集済み: Walter Roberson
2020 年 2 月 28 日
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
2020 年 2 月 10 日
0 投票
Did you solve that issue ??
Can i finally switch that "check" off???
Niko Seubert
2020 年 2 月 10 日
0 投票
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 件のコメント
Curtis DeGasperi
2020 年 2 月 28 日
編集済み: Curtis DeGasperi
2020 年 2 月 28 日
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).
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!