You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
Files opened with the File class are not closed if an exception occurs and the editor remains open. If you open a file in an exclusive mode (e.g. WriteRead), and an exception occurs later on in your Godot program, the program will exit, but the file will remain locked. It will continue to be locked until the editor is restarted. I think this is Mono only due to it requiring an exception to be thrown. Behaviour may be different on other OS's too.
The issue is exacerbated by #29039, as the failure message when open the file on the next run is generic.
Steps to reproduce:
Open a file using the File in exclusive mode (i.e. File.ModeFlags.WriteRead)
Throw an unhandled exception
Try to open the file externally - it will be locked.
The text was updated successfully, but these errors were encountered:
andy-noisyduck
changed the title
Files handles are not closed if an exception occurs (Mono)
File handles are not closed if an exception occurs (Mono)
May 20, 2019
Godot version:
3.1.1 (Mono)
OS/device including version:
Windows 10
Issue description:
Files opened with the
File
class are not closed if an exception occurs and the editor remains open. If you open a file in an exclusive mode (e.g.WriteRead
), and an exception occurs later on in your Godot program, the program will exit, but the file will remain locked. It will continue to be locked until the editor is restarted. I think this is Mono only due to it requiring an exception to be thrown. Behaviour may be different on other OS's too.The issue is exacerbated by #29039, as the failure message when open the file on the next run is generic.
Steps to reproduce:
File
in exclusive mode (i.e.File.ModeFlags.WriteRead
)Minimal reproduction project:
Testing-FileExceptionLocking.zip
The text was updated successfully, but these errors were encountered: