You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use LWJGL 3.3.4 snapshot build 2 (built at Assimp git hash 56e0ba5) my application crashes while importing truck.3mf. The exact behavior varies from run to run, which might be a symptom of uninitialized data.
Here is the output of my application with verbose logging enabled:
Info, T0: Load truck.3mfDebug, T0: Assimp 5.3.0 amd64 gcc shared singlethreadedsingle : Info, T0: Found a matching importer for this file format: 3mf Importer.Info, T0: Import root directory is './'Warn, T0: Ignored file of unknown type: 3D/3dmodel.modelWarn, T0: Ignored file of unknown type: 3D/Texture/CMC_LOGO_COLOR.pngWarn, T0: Ignored file of unknown type: 3D/_rels/3dmodel.model.relsWarn, T0: Ignored file of unsupported type CONTENT_TYPES_ARCHIVES[Content_Types].xmlDebug, T0: 3D/3dmodel.modelDebug, T0: UpdateImporterScale scale set: 1Debug, T0: ValidateDataStructureProcess beginError, T0: Validation failed: aiTexture::achFormatHint contains non-lowercase lettersfree(): invalid pointer
Here is another run with the same inputs:
Info, T0: Load truck.3mfDebug, T0: Assimp 5.3.0 amd64 gcc shared singlethreadedsingle : Info, T0: Found a matching importer for this file format: 3mf Importer.Info, T0: Import root directory is './'Warn, T0: Ignored file of unknown type: 3D/3dmodel.modelWarn, T0: Ignored file of unknown type: 3D/Texture/CMC_LOGO_COLOR.pngWarn, T0: Ignored file of unknown type: 3D/_rels/3dmodel.model.relsWarn, T0: Ignored file of unsupported type CONTENT_TYPES_ARCHIVES[Content_Types].xmlDebug, T0: 3D/3dmodel.modelDebug, T0: UpdateImporterScale scale set: 1Debug, T0: ValidateDataStructureProcess beginError, T0: Validation failed: aiTexture::achFormatHint contains non-lowercase lettersmunmap_chunk(): invalid pointer
Other times the import succeeds but the imported data structure refers to an embedded texture with outrageously large dimensions, such as a height of 1,092,883,925 texels. Such results might also be a symptom of uninitialized data. An application that tried to process such a texture might appear to hang.
I'll attempt to gather diagnostic data using ASAN.
I wrote a test application (in Java) that imports "truck.3mf" 40 times and prints the dimensions of the embedded texture (and does not release the scene data structure). Sometimes the dimensions are correct, but mostly not.
Here is typical output:
Activity
stephengold commentedon Nov 18, 2023
I tried importing both files using
assimp info(built at Git hash 6004290) and there was no hang.@tellypresence What tool are you using to load these files?
stephengold commentedon Nov 23, 2023
When I use LWJGL 3.3.4 snapshot build 2 (built at Assimp git hash 56e0ba5) my application crashes while importing truck.3mf. The exact behavior varies from run to run, which might be a symptom of uninitialized data.
Here is the output of my application with verbose logging enabled:
Here is another run with the same inputs:
Other times the import succeeds but the imported data structure refers to an embedded texture with outrageously large dimensions, such as a height of 1,092,883,925 texels. Such results might also be a symptom of uninitialized data. An application that tried to process such a texture might appear to hang.
I'll attempt to gather diagnostic data using ASAN.
stephengold commentedon Nov 23, 2023
The crashes in my application occur when
aiReleaseImport()is called. Since theassimptool never releases the data structure, it does not crash.I modified Info.cpp to release the data structure before it returns:
and obtained the following ASAN output:
stephengold commentedon Nov 23, 2023
I wrote a test application (in Java) that imports "truck.3mf" 40 times and prints the dimensions of the embedded texture (and does not release the scene data structure). Sometimes the dimensions are correct, but mostly not.
Here is typical output:
I believe the correct dimensions are
width = 54813, height = 0.kimkulling commentedon Nov 27, 2023
Hi, thanks a lot for the great analysis. I guess the detais of the embedded textures are broken. I need to check that.
tellypresence commentedon May 14, 2025
3MF issues tracked via epic #6180