Comments (10)
With the latest master I get the following error message:
100 %ERROR: Failed to load file: No materials remaining
And there is no crash.
from assimp.
So all not used materials get removed correctly from my point of view. There is a noe hierarchy, but no meshes at all. So all not used materials will be removed.
from assimp.
This is just a validation message from the model validation and from ym point of view this is correct.
from assimp.
So all not used materials get removed correctly from my point of view. There is a noe hierarchy, but no meshes at all. So all not used materials will be removed.
@kimkulling If no materials are used, and all not-used materials get removed, then all materials should be removed. That won't happen if the post-processing aborts.
This is just a validation message from the model validation and from ym point of view this is correct.
@kimkulling The message came from post-processing, not from model validation.
from assimp.
Which behavior would you expect?
from assimp.
For a model with zero meshes, I expect that RRM post-processing should result in a model with zero materials.
from assimp.
Good point, fix is on its way.
from assimp.
After the fix (GIT commit 3990ec8) loading the test model results in a segmentation violation:
$ bin/assimpd info ~/Downloads/Running.gltf -rrm
param = -rrm
Launching asset import ... OK
Validating postprocessing flags ... OK
100 %Importing file ... OK
import took approx. 0.02072 seconds
AddressSanitizer:DEADLYSIGNAL
=================================================================
==20768==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x7f4fbae02bf2 bp 0x7fff99fe80a0 sp 0x7fff99fe7fa0 T0)
==20768==The signal is caused by a READ memory access.
==20768==Hint: address points to the zero page.
#0 0x7f4fbae02bf2 in Assimp::Importer::GetMemoryRequirements(aiMemoryInfo&) const /home/sgold/NetBeansProjects/ext/assimp/code/Common/Importer.cpp:1271
#1 0x55936c1bea63 in Assimp_Info(char const* const*, unsigned int) /home/sgold/NetBeansProjects/ext/assimp/tools/assimp_cmd/Info.cpp:352
#2 0x55936c1b3d61 in main /home/sgold/NetBeansProjects/ext/assimp/tools/assimp_cmd/Main.cpp:222
#3 0x7f4fba322d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#4 0x7f4fba322e3f in __libc_start_main_impl ../csu/libc-start.c:392
#5 0x55936c18b564 in _start (/home/sgold/NetBeansProjects/ext/assimp/build/bin/assimpd+0x17564)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/sgold/NetBeansProjects/ext/assimp/code/Common/Importer.cpp:1271 in Assimp::Importer::GetMemoryRequirements(aiMemoryInfo&) const
==20768==ABORTING
$ bin/assimpd version
------------------------------------------------------
Open Asset Import Library ("Assimp", https://github.com/assimp/assimp)
-- Commandline toolchain --
------------------------------------------------------
Version 5.3 -debug -shared -st (GIT commit 3990ec80)
$
from assimp.
Perhaps the fix doesn't update mNumMaterials
correctly?
from assimp.
Related Issues (20)
- Bug: FBX Importer using wrong Angles in Animations HOT 14
- Bug: Assimp incorrectly places 3dface inserts HOT 3
- 如何编译静态库和使用arm的编译工具链编译 HOT 1
- How to compile static libraries and compile with arm's compilation toolchain HOT 3
- Bug: aiMaterial::Get requires 4 parameters but docs only use 2 HOT 2
- Bug: quaternion.h doesn't compile HOT 1
- Bug: SEGV when trying to access aiMaterial->mNumProperties HOT 2
- Bug: Doesn't compile with zlib-ng HOT 2
- Bug: IFC file import causes a crash
- Bug: FBX Blendshape Export cannot be imported into Unity HOT 1
- Bug: Repository tag version numbers don't match CMake project versions HOT 1
- Bug: FBX Blendshape Exporter exports double where binary FBX expects float
- Bug: Imported DXF do not assign color to inserts HOT 2
- Bug: DXF conversion assigns incorrect colors HOT 2
- Bug: FBX Export requires writing each mesh to a separate node.
- Bug: broken fbx animation HOT 1
- Bug: loading a obj format model has crashed(mingw gcc) HOT 5
- Bug: loading a obj format model's faces data crashed(OpenGL) HOT 7
- Bug: Identity matrix check problem HOT 1
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.