Viewer crash on initialization

Environment:

Description:

The ShapeDiver viewer crashes during initialization when constructing ParametricViewer. The 3D viewer fails to load and the application stays on the loading screen indefinitely. The issue is constantly happening, affecting our production environments.

Error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘dispose’)

Stack trace:

at K.destroy (sdv.concat.min.js:2233:365)

at E.destroy (sdv.concat.min.js:2665:59)

at m.removeThreeDManager (sdv.concat.min.js:2719:179)

at m.createThreeDManager (sdv.concat.min.js:2716:487)

at module$src$app$ViewerApp.default (sdv.concat.min.js:3300:222)

at ParametricViewer$$module$build$package.ParametricViewer (sdv.concat.min.js:3314:200)

Reproduction:

The crash occurs at viewer construction with minimal settings:

new window.SDVApp.ParametricViewer({

container: \[containerElement\]

})

Impact:

  • Blocks the entire application, 3D viewer never loads

  • Affects all users across all environments

  • Started occurring around April 2-3, 2026

Notes:

  • The issue appears to be in createThreeDManager calling removeThreeDManager, destroy on an object that hasn’t been fully initialized yet

Thank you,

Ionel Cimpan

Summerwood Products

Please note that support for major version 2 of the ShapeDiver viewer was discontinued more than 1.5 years ago. We strongly recommend that you upgrade to major version 3. You can find a migration guide from major version 2 to major version 3 here.

The last release of viewer version 2 is version 2.40.0. You might able to solve the issue you are facing by changing https://viewer.shapediver.com/v2/branch/bug/snap/sdv.concat.min.js to https://viewer.shapediver.com/v2/2.40.0/sdv.concat.min.js.