-
Notifications
You must be signed in to change notification settings - Fork 51
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
WinUI WebView2 causes crash with HTML input file while debugging after 30 seconds #3551
Comments
Thanks for the bug report @Eilon. Looks like the workaround we had to do for opening the FileDialog is causing a potential re-entrancy issue that is being flagged when debugging with a _DebugBreak() and this debug output message: The nested loop timer looks to be 30 seconds, which is why we see this after keeping the dialog open for a bit. I've opened this bug on our backlog to take a look. |
If there's any debugging information or testing needed, please let me know and my team and I will help. |
I am experiencing this too, also developing Blazor hybrid apps. Issue is also present when using .NET 8 RC1 |
Hello @champnic To sum up, there is no way to let the user choose a file in a conventional way, making MAUI+Blazor unusable at the moment. If you need any help to reproduce or any other thing, please feel free to ping me, I'll gladly help. |
@NJullienSweet hi if you use maui maybe you can choose to use FilePicker.
|
MudFab is just a button, I copy the code from my project. It doesn't matter what component/html element to use, just see the callback method. |
@fairjm my bad I was confused, thanks. In this case also |
@champnic is there any update on this issue? I've been experiencing it for a while now with a winforms - blazor hybrid project using .NET 6 and now .NET 8. |
@champnic is there any update on this? Blazor+MAUI hybrid is still unusable dotnet/maui#15224 |
@daghsentinel I can't do it easily because my component is in a razor class library (project type |
It's been 14 months since this issue was raised, and people developing MAUI Blazor projects with file uploads are still unable to debug their applications. This is not a niché use-case, and the suggested workaround of using the MAUI FilePicker is unsuitable if you ever want your blazor component to also be consumed in a web application. Is there any update on this? I can't really overstate how problematic this is. |
@champnic - anything you can do? |
Description
A WinUI app with WebView2 that hosts HTML with an
<input type="file" ... />
element will cause the app to crash and not able to debug it.Version
SDK:
Runtime:
Framework:
OS:
Repro Steps
<WebView2 Source="https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file"></WebView2>
(and remove any other code from the CS file that isn't relevant)Result: The app will crash and you cannot debug it. If you try to debug it, you get all kinds of weird exceptions from VS itself (and it weirdly loads in Dark Mode... no idea why).
Expected: No crash.
Screenshots
Additional context
This does not repro in these similar scenarios:
AB#44977210
The text was updated successfully, but these errors were encountered: