question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught RuntimeError: memory access out of bounds

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dermotduffycommented, Mar 11, 2022

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.

0reactions
dermotduffycommented, Mar 12, 2022

The point is, why so many?

I’d guess because the player is running out of memory, then re-trying an operation, which causes another reconnection (?). But I think we’d need to dig into the player code to fully understand why it’s opening so many connections in the error case.

And I am not considering this for real, but as last resource, when the card detects such a situation, there would be the option to force the window to be refreshed, from within the card.

Lovelace dashboards are a patchwork of different components written by different people – a single card refreshing the whole document (i.e. blowing up all components) is probably not going to fly. If we could catch this error ‘card-side’ and just reset the player, that’d be much better (e.g. does calling FrigateCardLiveJSMPEG._refreshPlayer() work?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebGL: RuntimeError: memory access out of bounds.
Hello to everybody, so im facing this error "Runtime Error: memory access out of bounds." when i run my webGL build on some...
Read more >
Memory access out of bounds in Chrome · Issue #1384 - GitHub
Googling a bit about this issue, one common cause of "memory access out of bounds" is apparently an object being garbage-collected before use....
Read more >
memory access out of bounds (WebGL on Unity Play) : r/Unity3D
Uncaught RuntimeError: memory access out of bounds (WebGL on Unity Play). Hi, I am trying to get my Unity LEGO microgame uploaded to...
Read more >
[WebGL] "memory access out of bounds" error is thrown when ...
[WebGL] "memory access out of bounds" error is thrown when running a WebGL build on Chrome via a file:// path · 1. Close...
Read more >
Memory Access Out of Bounds - WebGL - Stack Overflow
This error happened to me due to using the dynamic keyword. After replacing all my dynamic types with object the error was gone....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found