Skip to content

SQLBI Whiteboard 1.0.1 (dev 3260)

Pre-release
Pre-release

Choose a tag to compare

@marcosqlbi marcosqlbi released this 25 Aug 09:14
9506673
Fix Store LiveView crash on resize and bump to 1.0.1 (#69)

Store-packaged Graphics Capture objects are apartment-bound. LiveView
left `frame.Surface`, the capture session, and `GraphicsCaptureItem` for
the GC, so `IObjectReference.Finalize` called `Marshal.Release` from
`GC.RunFinalizers`. That is the `AccessViolationException` (Event 1026,
`0xC0000005`) that closed the Store app a few seconds after resizing a
LiveView. The same bits run unpackaged because those RCWs are
free-threaded there.

Dispose the WinRT wrappers on the dispatcher that created them, close
any pending frame before `FramePool.Recreate` (which invalidates native
frames), and marshal `GraphicsCaptureItem.Closed` back to the UI thread.

`VersionPrefix` is 1.0.1 so this can be promoted to the Store. Identity
version will be `1.0.1.0`.

Verified locally: `dotnet build Whiteboard.sln -c Release` is clean,
Core smoke tests pass. The Store repro is still the packaged identity,
so confirmation is a sideloaded MSIX or the 1.0.1 Store build on a
machine that crashed on 1.0.0.