rendering .riv crashes on some Windows machines

Environment

rive: 0.14.4–0.14.6

rive_native: 0.1.4–0.1.6

Renderer: Factory.rive (native D3D11 backend)

Reproduced on: Windows 10 Enterprise 2016 LTSB (build 14393), Intel HD Graphics 530 (Skylake), driver 23.20.16.4973 (Feb 2018), WDDM 2.1. Not reproduced on machines with 2021+ Intel drivers (WDDM 2.7+).

Summary

App crashes immediately and unrecoverably (native access violation, uncatchable from Dart) the first time anything renders via Rive on affected Windows hardware.

Reproduction

Run a Flutter Windows app using rive/rive_native on a PC with an older Intel integrated GPU (pre-2021 driver).

Render any .riv file via RiveWidget/RiveFileWidget.

Process crashes with 0xC0000005 (access violation) — no Dart exception surfaces.

Root cause

In windows/rive_native_plugin.cpp, makeSwapchainTexture() creates the swapchain texture with DXGI_FORMAT_B8G8R8A8_UNORM + D3D11_BIND_UNORDERED_ACCESS + D3D11_RESOURCE_MISC_SHARED. That combination isn't a guaranteed driver capability. When CreateTexture2D fails on unsupported drivers, the HRESULT is never checked — the null texture is passed straight into .As(&asDxgiResource) and GetSharedHandle(), causing the null-pointer dereference and native crash.

Suggestion

The plugin already has a graceful-failure path elsewhere in the same file

result->Error("Rive Renderer is not supported on this device.", nullptr); in HandleMethodCall).

Routing makeSwapchainTexture()'s failure case through that same path — instead of proceeding to GetSharedHandle() on a null texture — should fix it. We can't submit this as a PR ourselves since rive_native has no public source repo to fork.
something like:

HRESULT hr = gpu->CreateTexture2D(&desc, initialData,
    swapchainTexture->nativeTexture.ReleaseAndGetAddressOf());
if (FAILED(hr)) {
    return nullptr; // caller must check this and abort renderer creation
}