frigate-hass-card: Uncaught RuntimeError: memory access out of bounds

I’m aware of https://github.com/dermotduffy/frigate-hass-card/issues/257 and https://github.com/dermotduffy/frigate-hass-card/issues/189#issuecomment-969864638, but I’m opening this issue because I started to get this very frequently after upgrading to v3.0.0-rc.1, so I wonder if something has changed or anything like that.

Here is the stack trace:

Uncaught RuntimeError: memory access out of bounds
    at wasm://wasm/00025b02
    at wasm://wasm/00025b02
    at wasm://wasm/00025b02
    at MPEG1WASM.initializeWasmDecoder (frigate-hass-card.js?hacstag=3940825523001:10893:35)
    at MPEG1WASM.bufferWrite (frigate-hass-card.js?hacstag=3940825523001:10923:12)
    at MPEG1WASM.write (frigate-hass-card.js?hacstag=3940825523001:9225:31)
    at MPEG1WASM.write (frigate-hass-card.js?hacstag=3940825523001:10945:33)
    at TS.packetComplete (frigate-hass-card.js?hacstag=3940825523001:9155:20)
    at TS.parsePacket (frigate-hass-card.js?hacstag=3940825523001:9095:18)
    at TS.write (frigate-hass-card.js?hacstag=3940825523001:8987:44)

And the spinner just keeps spinning:

chrome_QJHS245i2L

If I reload the browser a couple of times, the issue is gone.

Also, I guess it’s important to mention that such problem never happens with a single camera. If I have more than one camera in the dashboard displaying at the same time, either all of them load correctly, or they all don’t.

If nothing has changed and I’m just unlucky, I believe it would be nice if the card could catch the issue from JSMPEG, and display a more helpful message like the JSMPEG has reported an error instead of just keep spinning forever, which gives the impression that it’s still loading.

EDIT: I just realized that it’s not feasible to catch and treat the error, by reading through the second mentioned issue.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

Disabling Web Assembly solves the issue, though.

Again, suggests an issue with the internals of the player. If it was the websocket proxy, or the options, I wouldn’t expect that to be the case – but I cannot explain why it happens more in Lovelace vs Frigate UI.