-
Notifications
You must be signed in to change notification settings - Fork 340
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
[BUG] [Andriod][FileSaver] Crash when removing USB drive #1588
Comments
another Bug is report "Unable to resolve absolute path where the file was saved 'content://com.android.providers.downloads.documents/document/66'", |
I'm struggling to follow when the error exactly occurs. Are you removing the USB stick during the save? Looking at your GIF the file only reaches 0KB when the dialog disappears but there should be some content. |
@bijington Not really! From Gif, it appears that the 'SaveAsync' method has returned and IsSuccessful==true! |
@BaY1251 thanks for the clarification |
Hi @BaY1251. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I wrote the wrong solution name,Sorry for the mistake. |
I will create a PR #1746, for this issue |
I am not to reproduce the issue after the fix. From docs: Stream is closed on Dispose. |
On screenshot you provide, Dispose is not called yet |
The first image shows FD closing after calling Close. I am unable to view the source code of AutoCloseOutputStream. If you can see the source code, it would be best to confirm that
I confirm that AutoCloseOutputStream is invalid for all my existing devices. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 2 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
复现问题的log和相关截屏我已经都提交了,#1751并没有解决问题,也没有改变log. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 2 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
We haven't received a reproduction sample from you. The issue is closed. |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Crash when removing USB drive in Android7.1 after save a file.
No Exception was throw.
Expected Behavior
File save Normally
Steps To Reproduce
Link to public reproduction project repository
https://github.com/BaY1251/MauiDebug.git
Environment
Anything else?
adb log here
"app died" in line 454
file.log
The text was updated successfully, but these errors were encountered: