Giter VIP home page Giter VIP logo

Comments (10)

kimkulling avatar kimkulling commented on June 1, 2024

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.

kimkulling avatar kimkulling commented on June 1, 2024

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.

kimkulling avatar kimkulling commented on June 1, 2024

This is just a validation message from the model validation and from ym point of view this is correct.

from assimp.

stephengold avatar stephengold commented on June 1, 2024

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.

kimkulling avatar kimkulling commented on June 1, 2024

Which behavior would you expect?

from assimp.

stephengold avatar stephengold commented on June 1, 2024

For a model with zero meshes, I expect that RRM post-processing should result in a model with zero materials.

from assimp.

kimkulling avatar kimkulling commented on June 1, 2024

Good point, fix is on its way.

from assimp.

stephengold avatar stephengold commented on June 1, 2024

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.

stephengold avatar stephengold commented on June 1, 2024

Perhaps the fix doesn't update mNumMaterials correctly?

from assimp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.