-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PathAccessException: The process cannot access the file because it is being used by another process (Windows only) after breaking changes 9.0.0 #634
Comments
Code example: #603 (comment) |
Any updates on this issue @mogol ? |
You can use the previous version. |
any update on this issue? |
Secure storage has a known issues in Windows. It can not access path when used by another process juliansteenbakker/flutter_secure_storage#634
@stan-at-work which previous version are you using to avoid this issue? |
I'm using |
any update on this issue? |
Nope |
I have the same problem using flutter_secure_storage: ^9.2.2 |
+1 i had the same error today after a long time of not having it again. |
@mogol Any updates on this? the latest version and pub version had this critical bug. |
@mogol ? |
Hi all, could you please check if this issue still exists with version v10.0.0-beta.1? Also, if this is still an issue, please provide a step by step guide on how to recreate this issue. Then i can look into it. |
Hello @juliansteenbakker, I have same Problem (only Windows) but i do not see "Windows OS Changes" in v10.0.0-beta.1 or v10.0.0-beta.2 |
v10.0.0-beta.1 does have changes for windows, however they are more related to the win32 implementation in flutter, and not about this problem i can see. I am going to look into this issue. |
Hey, I’m experiencing the same issue—it still persists. There’s no specific pattern that I can recreate. It happens about once a day. I’ve noticed it tends to occur more often when in release mode. I suspect it might be a race condition issue, possibly with locks not waiting for each other or something similar. But I’m not an expert. 😊 |
Add multi storage file. It won't saved to a file at the same time. |
❗
After I updated to version 9.0.0, I randomly got an error saying: 'The process cannot access the file because it is being used by another process.'
This only happened after I upgraded to version 9.0.0.
I investigated the issue and came to the conclusion that it comes down to this.
If a file wants to read the same key at the same time as another file is writing to the same key, then I get this error.
I fixed this by switching back to the previous stable version.
I suggest updating the readme to alert users of this breaking issue.
This error also corrupts the .dat file, so all your secure storage is corrupted and unusable.
The error:
Greetings. Please fix ;-) 👍
Code example provided by: @ReinRaus
Example
The text was updated successfully, but these errors were encountered: