Open arcutright opened 1 year ago
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.
The final debug trace block in the above spoiler box was taken while broken with this callstack on an access violation:
program.exe!WinFormsComInterop_WinFormsComInterop_PrimitivesIRawElementProviderSimpleProxy__get_ProviderOptions() Unknown
UIAutomationCore.dll!00007ffd3fc6fa9a() Unknown
program.exe!System_Windows_Forms_Primitives_Interop_UiaCore__UiaRaiseAutomationPropertyChangedEvent() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_AccessibleObject__RaiseAutomationPropertyChangedEvent() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Button__OnClick() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Button__OnMouseUp() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Control__WmMouseUp() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Control__WndProc() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_ButtonBase__WndProc() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_NativeWindow__Callback() Unknown
program.exe!Internal_CompilerGenerated__Module___<ReverseDelegateStub>System_Windows_Forms_Primitives_Interop_User32_WNDPROC() Unknown
user32.dll!00007ffd6e56e7e8() Unknown
user32.dll!00007ffd6e56e229() Unknown
program.exe!System_Windows_Forms_Primitives_Interop_User32__DispatchMessageW() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Application_ComponentManager__Interop_Mso_IMsoComponentManager_FPushMessageLoop() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Application_ThreadContext__RunMessageLoopInner() Unknown
program.exe!System_Windows_Forms_System_Windows_Forms_Application_ThreadContext__RunMessageLoop() Unknown
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 dialog