Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when remounting containers #140

Open
Ledzz opened this issue Nov 5, 2024 · 3 comments
Open

Error when remounting containers #140

Ledzz opened this issue Nov 5, 2024 · 3 comments

Comments

@Ledzz
Copy link
Contributor

Ledzz commented Nov 5, 2024

I guess it could be related to #117.

When I remount some containers, I sometimes get an error: Uncaught RangeError: offset is out of bounds.
It happens on this line.
I logged some variables: index is -1, bucket.offset is -1, indexInBucket is 0.
I can't reproduce it outside my app yet, but if you can't find the issue I'll try to build repro again.
Uikit version is latest for now: 0.8.1
Also I'll attach whole error with stacktrace:

helpers.ts:122 Uncaught RangeError: offset is out of bounds
    at Float32Array.set (<anonymous>)
    at InstancedBufferAttribute.set (three.module.js:9961:14)
    at instanced-panel-group.js:95:27
    at updateSortedBucketsAllocation (sorted-buckets.js:151:13)
    at InstancedPanelGroup.update (instanced-panel-group.js:198:13)
    at InstancedPanelGroup.onFrame (instanced-panel-group.js:174:14)
    at instanced-panel-group.js:38:66
    at PanelGroupManager.traverse (instanced-panel-group.js:46:17)
    at onFrame (instanced-panel-group.js:38:40)
    at Object.current (root.js:44:13)
    at render$1 (index-6662eaf2.esm.js:1511:22)
    at loop (index-6662eaf2.esm.js:1538:19)
@bbohlender
Copy link
Contributor

A reproduction repo would help a lol
#117 should have been fixed
these buffer resizing errors are really hard to catch without proper reproduction :)

@Ledzz
Copy link
Contributor Author

Ledzz commented Nov 5, 2024

Yeah, the #117 issue has been fixed. I just found this one and it is a different error.
I'll try to replicate it in codesandbox this week :)

@bbohlender
Copy link
Contributor

Awesome, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants