rive-wasm icon indicating copy to clipboard operation
rive-wasm copied to clipboard

Errors during makeRenderer not catchable

Open ansf opened this issue 3 months ago • 0 comments

We are using @rive-app/webgl2 in our projects. When the creation of the renderer fails, we see an error in the console, but are unable to catch it using an onLoadError callback or try/catching the Rive constructor.

The error on the console is TypeError: Cannot read properties of null (reading ’T’).

In order to let the creation of the renderer fail, one can disable hardware rendering in Chrome.

Reproducer:

  1. Navigate to "chrome://settings/system"
  2. Disable "Use hardware acceleration when available"
  3. Restart Chrome
  4. Navigate to https://jsfiddle.net/rzbp8woj/1/

Is there any way for us to implement our own fallback mechanism when the creation of the webgl2 renderer fails?

ansf avatar Oct 30 '25 08:10 ansf