AnimaScript init fails on WebGL2 2.49.1 when a CLI 1.11.0 export calls context.log()

Hi Rive team,

After upgrading to Rive CLI 1.11.0, I ran into an AnimaScript startup failure on WebGL2 2.49.1. The .riv loads and Interactive starts playing, but the scripted drawable never appears. The same .riv animates immediately on WebGL2 2.55.1.

I reproduced it on macOS 26.6 in Chrome 158.0.8127.37, headless, with matching JavaScript and rive.wasm versions. The attached project has one scripted drawable that moves a square. The two exports differ by one line in the node’s init method.

override init(context: Context): bool {
    context.log("Probe initialized");
    this.paint.color = 0xFF68CFFC;
    return true;
}

Steps to reproduce

  1. Load with-log.riv with @rive-app/webgl2 2.49.1 and its matching rive.wasm. Select the Repro artboard, start the Interactive state machine, and set autoplay to true.

  2. Watch the canvas and console. The file reports a successful load, but the square never draws.

  3. Load that same file on 2.55.1. The square moves immediately and the log prints.

  4. Load without-log.riv on 2.49.1. The square moves. Removing just the context.log() call is enough for this repro.

Console error on 2.49.1

wasm call trapped in host_obj_user_init: failed to call unlinked import function env.console.caller

For this minimal file, removing the log works around it. Using 2.55.1 also restored playback in the original project. I tested those two runtime versions.

Which WebGL2 version first supports this import? If the older runtime is expected to reject it, could the CLI report the minimum compatible runtime at export, or could the Web runtime surface this as an explicit script compatibility error when the file loads? In an app, the load callback and playing state machine made this look like a playback issue.

Thanks,
Ilya

animascript-context-log-repro.zip