Comments (5)
Hi, would be great if you could prepare a PR for this issue.
Thanks!
from assimp.
Address sanitizer output is available from #5438
from assimp.
Correction: the crash does not occur during post-processing. It occurs while calculating the scene's memory usage.
assimp/code/Common/Importer.cpp
Line 1268 in ff5b0ae
Using GDB, I set a breakpoint at code/Common/Importer.cpp line 1268, and saw that mScene->mNumMaterials
is 1. I believe it should've been set to zero in RemoveRedundantMatsProcess::Execute()
.
Stepping through RemoveRedundantMatsProcess::Execute()
, I see it return from line 161:
assimp/code/PostProcessing/RemoveRedundantMaterials.cpp
Lines 159 to 162 in ff5b0ae
At that point, mMaterials[0]
has been set to nullptr
, but mNumMaterials
has not been updated---it is still 1. That explains the segmentation violation.
from assimp.
I could easily write a PR to solve this issue, but after what happened with #5438 I've decided to wait for an explicit PR request and not submit unsolicited code.
from assimp.
Since #5467 is integrated, I believe this issue is solved and can be closed.
from assimp.
Related Issues (20)
- IOS开发 ,导出fbx格式 HOT 3
- Bug: Build error ISO C99 and later do not support implicit function declarations HOT 1
- Bug: Issue 55843 in oss-fuzz: assimp:assimp_fuzzer: Integer-overflow in Assimp::DXF::LineReader::operator++
- GLTF2Exporter and KHR_lights_punctual
- Bug: 3mf export tests are broken
- Bug: Assimp 5.4.1 can not find FBX loader for FBX file when it was read from memory. HOT 2
- Bug:Export OBJ file node name failed to export HOT 2
- Constructor/destructor for class aiScene is in Version.cpp
- Bug:The crash occurred when the ifc file was imported
- Bug:The stack-overflow occurred when the ifc file was imported HOT 1
- Bug:Exporting FBX file using assimp, unable to parse mesh
- Bug: Importing Collada file fails with "Error importing model: Cannot parse string" HOT 1
- Bug: GCC-14 fails to build when default symbol visibility is set to hidden HOT 1
- Bug: Possible nullptr dereferencing in Subdivision
- Question: blender 4.1 exported and imported to flax engine has some issues
- Bug: Hard-Crash when loading FBX file HOT 1
- Bug: Compile error in Visual Studio 2022 in Debug mode
- Bug: There may be an out-of-bound access of the variable m_DataIt (static analysis report) HOT 1
- Bug: There may be a dead loop in the file code/PostProcessing/TextureTransform.cpp( static analysis report). HOT 1
- Bug: compile assimp for android failed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assimp.