Skip to content

Conversation

@manodasanW
Copy link
Member

@manodasanW manodasanW commented Oct 26, 2024

Looking at some recent crash dumps, it looked like the object / RCW was going away while the function call was happening. This then lead to an AV. Adding GC.KeepAlive throughout to try to avoid this. Also added capability to run tests with GC stress.

Fixes #1022

@manodasanW manodasanW merged commit 9a51916 into master Oct 28, 2024
@manodasanW manodasanW deleted the manodasanw/gcstress branch October 28, 2024 22:16
manodasanW added a commit that referenced this pull request Feb 8, 2025
* Try running with GC stress

* Also disable

* Add GC keep alive

* Remove optional

* Add KeepAlive

* Keep alive

* Try increasing timeout to see if it is just taking longer to launch

* Diagnose test issue

* Try to fix test

* Update timeouts

* Increase timeout

* Try one more fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RCWs could get finalized during unmanaged calls causing for a release on the WinRT object

3 participants