-
Notifications
You must be signed in to change notification settings - Fork 689
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
Windows APP SDK 1.3230331000 Drag and Drop Crash still present #8450
Comments
Agree. My app also crashes due to this issue. |
@amercer-fdi thanks for the report. Can you attach a dump file to this issue, and/or a repro project? |
@Scottj1s, yes but it'll be a bit. I removed the DnD code completely and just went with buttons instead. I'll throw together a sample project that reproduces it, hopefully this weekend. If it makes a difference, my two lists were inside a user control which was created from the Template Studio. |
` ` |
Microsoft.WindowsAppSDK.1.3.230602002 |
The same problem. In Version 1.4.231008000, the application crashes when dragging. But I made single-instanced app issue |
@amercer-fdi, @Bondarenko1990 thanks for your patience. We've root-caused this issue and are investigating a fix. Will report back if there is an available workaround in the meantime. |
@mareksm, @Bondarenko1990, your DragDrop crashes both appear to be related to dispatching the operation on a thread pool thread, where the Xaml runtime has not been initialized, resulting from making Main async (typically for single-instance support). A simple workaround is to make Main sync and block on the async redirect check as noted here. @amercer-fdi, your original issue is different - are you still seeing this with the latest version of WinAppSDK? |
Making app/main sync again doesn't do anything - it still crashes. I've added a note to the ticket: #9061 |
All symptoms related to async Main have been addressed in issue #9061. The original issue reported here can no longer be repro'd - accessing the DragEventArgs parameter. Closing this issue until a repro can be demonstrated. |
I don't think this is the same async drag & drop issue that you linked, but rather a different one involving accessing Using an async handler appears as though it is safe and recommended since As I suggested there, the documentation should probably be updated. |
Describe the bug
When attempting a drag and drop operation, accessing the
DragEventArgs
parameter of the Drop event will intermittantly causes the application to unrecoverably crash. This sometimes happens on the first attempt, most commonly on the second attempt, and I have never gotten further than 4 successful drops before it occurs.Debugging in Visual Studio 2022 stops with and Unhandled Exception. The application has crashed at this point and shuts down. There is also no way to debug this now as can be seen from the two screenshots.
Steps to reproduce the bug
Please see #7192, #7007 and #7002. This bug and related bugs have been reported many times.
Expected behavior
Application continues running and unlimited drag and drop operations can be performed.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.3.0: 1.3.230331000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: