editor icon indicating copy to clipboard operation
editor copied to clipboard

[Bug] Crash/Error when duplicating elements

Open boqiwen opened this issue 7 months ago • 0 comments

What happened?

Attempting to duplicate an existing node fails to create the clone and throws a client-side exception in the console.

Steps to reproduce

Please watch the video to learn the operation steps.

Error Logs : (Please see the console output)

[browser] [viewer] Post-processing render pass failed. TypeError: Cannot read properties of undefined (reading 'id')
    at PostProcessingPasses.useFrame [as current] (../../packages/viewer/dist/components/viewer/post-processing.js:211:39)
  209 |             ;
  210 |             renderer.setClearAlpha(0);
>   ...Finishing writing to cache...                                                                                                                                                                                                          > 211 |             renderPipelineRef.current.render();
      |                                       ^
  212 |         }
  213 |         catch (error) {
  214 |             hasPipelineErrorRef.current = true; (../../packages/viewer/dist/components/viewer/post-processing.js:215:21)
[browser] [viewer] Scheduling post-processing rebuild (attempt 1/3) (../../packages/viewer/dist/components/viewer/post-processing.js:223:25)
 GET / 200 in 205ms (next.js: 11ms, application-code: 194ms)
[browser] THREE.THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.

Expected behavior

The node should be copied cleanly and efficiently, and placed in the new location without throwing any unhandled exceptions.

Browser & OS

Windows11

Screenshots or screen recordings

https://github.com/user-attachments/assets/4969140e-3b97-4bb1-b859-707f48301093

Additional context

No response

boqiwen avatar Apr 11 '26 15:04 boqiwen