-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Crashes with net6-windows and WinFormsComInterop >= 0.4 #55
Comments
Can you try 0.4.3 release? |
In debug mode for net6-windows and net7-windows: everything seems to work publish for net6-windows, net7-windows + trimmode=link + self contained: everything seems to work publish for net7-windows + trimmode=link + aot: It seems functional but often crashes when refreshing a chart, although this config would sometimes crash with 0.3.2 as well. I'm not sure it's worth acknowledging but it seems to crash more often with 0.4.3? To be honest I haven't played around with net7 aot much so perhaps it's due to my other code misbehaving. |
Okay. I suspect that's really differetn issue. Can you try switch your OutputType to EXE so you will have console. If that does not help to see stack trace, please take a look at this docs https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/debugging.md#visual-studio-specific-notes |
There are quite a few missing interfaces although I'm not sure how to tell which are fatal vs non-fatal access violations. Unfortunately there may be sporadic calls to undocumented kernel32 functions in this debug output, but I tried to only grab sections where it seemed to be related to UI update flows. Let me know if this is helpful or if you have ideas for ways to make it helpful. Using net7-windows + aot, WinFormsComInterop 0.4.3. pile of debug outputFrom load until first exception:
Couple of other random ones I picked out:
Other large chunk until an access violation:
The final debug trace block in the above spoiler box was taken while broken with this callstack on an access violation:
|
Would be great if you follow https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/debugging.md#visual-studio-specific-notes and stop at first exeption, and show stack trace. Also, if you can give a link to repo with repro I would appreciate it. |
Application works perfectly with WinFormsComInterop
0.3.2
, using net6.0-windows as the target and the HIC.System.Windows.Forms.DataVisualization package, which is a small fork from dotnet.These are from a debug build, no trimming or AOT.
0.4.2
: Opens, but hard crash after closing the file picker dialog. The exception code and offset for ntdll are the same every time.0.4.1
,0.4.0
: Missing library when trying to open the system file picker dialogThe text was updated successfully, but these errors were encountered: