Skip to content
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

[Android] Debug stops when open a FilePicker #26639

Open
keyboqrd opened this issue Dec 14, 2024 · 2 comments
Open

[Android] Debug stops when open a FilePicker #26639

keyboqrd opened this issue Dec 14, 2024 · 2 comments
Labels
s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working

Comments

@keyboqrd
Copy link

keyboqrd commented Dec 14, 2024

Description

I was trying to debug my first app on Android emulator, but seems that FilePicker is crashing the debugging and the App.

Without debugging, the app itself seems working fine.

I'm using

  • Visual Studio 2022 Community, Version 17.12.3 on Windows,
  • dotnet sdk version 9.0.101
  • with an Android Emulator (Pixel 7 - API 35), all default from Android Device Manager.
  • installed workload: android 35.0.7/9.0.100 SDK 9.0.100, VS 17.12.35527.113

the "Relevant log output" is from "Xamarin Diagnostics" output from Visual Studio.

Steps to Reproduce

  1. Download MAUI code sample from
    https://github.com/dotnet/maui-samples/tree/main/9.0/PlatformIntegration/PlatformIntegrationDemos

  2. In Visual Studio, Build, and click debug on Android Emulator.

  3. Inside the App, click "File Picker", then click "Pick File", wait for around 5 seconds.

Now the debugging stops, and app exited.

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/9.0/PlatformIntegration/PlatformIntegrationDemos

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

[E:RunShellCommand]:      emulator-5554 logcat -v time failed: Mono.AndroidTools.AdbException: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall. ---> System.IO.IOException: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall. ---> System.Net.Sockets.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.StreamReader.ReadBuffer()
   at System.IO.StreamReader.ReadLine()
   at Mono.AndroidTools.Adb.AdbClient.ReadLineWhile(Action`1 output, Func`1 predicate) in D:\a\_work\1\s\External\androidtools\Mono.AndroidTools\Adb\AdbClient.cs:line 585
   --- End of inner exception stack trace ---
   at Mono.AndroidTools.Adb.AdbClient.ReadLineWhile(Action`1 output, Func`1 predicate) in D:\a\_work\1\s\External\androidtools\Mono.AndroidTools\Adb\AdbClient.cs:line 592
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass119_0.<RunShellCommandAsync>b__0() in D:\a\_work\1\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 1021
@keyboqrd keyboqrd added the t/bug Something isn't working label Dec 14, 2024
@jfversluis jfversluis added the s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue label Dec 16, 2024
Copy link
Contributor

Thanks for the issue report @keyboqrd! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

Copy link
Contributor

Thanks for the issue report @keyboqrd! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS (Code).

If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or .NET MAUI VS Code Extension repository to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants