components-js icon indicating copy to clipboard operation
components-js copied to clipboard

Focusing a track from the carousel leads to: Error while running updatePages()

Open Ocupe opened this issue 2 years ago • 7 comments

Select which package(s) are affected

@livekit/components-react

Describe the bug

There should be no error in the console when you pin a participant from the carousel. Dieser Fehler scheint weder die Funktion des Karussells noch den Rest der App zu beeinträchtigen.

Reproduction

When one participant is focused, focus another participant from the carousel.

Logs

image

System Info

System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 2.28 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.2.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - ~/Library/pnpm/yarn
    npm: 9.6.6 - /opt/homebrew/bin/npm
  Browsers:
    Brave Browser: 112.1.50.119
    Chrome: 112.0.5615.137
    Firefox: 114.0
    Firefox Developer Edition: 105.0
    Safari: 16.5

Severity

annoyance

Additional Information

No response

Ocupe avatar Jun 13 '23 08:06 Ocupe

same error, when I quit a meeting, I got the same error @Ocupe

Error while running updatePages():  Error: Element not part of the array: Antoine__ug6s_camera_placeholder not in Antoine__ug6s_camera_TR_VCt38mfcudpVDY
    at t1 (278-bac2459ffa7ea51d.js:3:28533)
    at 278-bac2459ffa7ea51d.js:3:29308
    at 278-bac2459ffa7ea51d.js:3:29367
    at Array.forEach (<anonymous>)
    at 278-bac2459ffa7ea51d.js:3:29258
    at Array.forEach (<anonymous>)
    at t2 (278-bac2459ffa7ea51d.js:3:28969)
    at k (278-bac2459ffa7ea51d.js:3:51646)
    at S (278-bac2459ffa7ea51d.js:3:51920)
    at em (278-bac2459ffa7ea51d.js:1:84661)

I could reproduce it in my app, and your demo app !

lebaudantoine avatar Oct 19 '24 21:10 lebaudantoine

The logic seems OK, but the order of operation seems off. I think we are calling the hook at a weird inbetween state. @lebaudantoine, does it have any negative impact besides the error logged to the console?

Thank you for reporting this and we are eager to resolve the issue. 👍

Ocupe avatar Oct 22 '24 11:10 Ocupe

Same issue here. I didn't see any negative impact besides the error logged.

swaaj avatar Nov 13 '24 12:11 swaaj

I got the same issue, but it did not affect functionality.

geoffcfchen avatar Feb 27 '25 19:02 geoffcfchen

The issue is a bit of critical as the error message exposes user IDs!

rowlo avatar Mar 07 '25 14:03 rowlo

user IDs aren't secret at all

lukasIO avatar Mar 07 '25 18:03 lukasIO

Same here.

- @livekit/components-react — 2.9.15
- @livekit/components-styles — 1.1.6
- @livekit/track-processors — ^0.6.1
- livekit-client — 2.15.8

seferdemirci avatar Oct 24 '25 20:10 seferdemirci