-
Notifications
You must be signed in to change notification settings - Fork 197
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
Flutter Windows Lost connection to device #313
Comments
Try to start your app from Visual Studio to get log and stacktrace. |
Hello, I am facing the same "Lost connection to device" crash dart: >=3.3.1 <4.0.0 Exception thrown: read access violation. The stacktrace:
Might it be that I don't have some of standard Windows utilities installed which I'm not knowing about? |
Thanks for the stack trace. There's a missing check when starting the recording. It seems that the given path is problematic. |
record_windows 1.0.3 has been released to fix the crash and forward the underlying error on Dart side. |
Thank you for your response and the record_windows update! I was able to secure my users' experience by handling this exception. This turned out to be a "Path not found" error. I am not actually sure about its reason, got this thrown while trying to record audios into the "documents" directory, returned by path_provider getApplicationDocumentsDirectory(). It might be one of the two things:
However, dart:io has been able to create folders and files in the same directory. Also, archive plugin successfully unzipped data in there. Is this caused by MediaFoundation at some point? Writing in other folders like Hope this might help. |
Sorry for the late reply, I bet on the encoding issue since dart/native communication is UTF8 only. |
Hello
record 5.0.5
Environment
get Lost connection to device after starting record
The text was updated successfully, but these errors were encountered: