openframeworks / openframeworks/openFrameworks
I get nothing from aiImportFileExWithProperties()
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I tried to load 1000 obj models via ofxAssimpModelLoader::loadModel(string modelName, bool optimize), but as long as these models got bigger in the memory, this function started to have problems in:
scene = shared_ptr(aiImportFileExWithProperties(path.c_str(), flags, NULL, store.get()), aiReleaseImport)
The total size of 1000 objs is about 40G, which should be OK for my PC, but when the memory taken was more than 27G in this process (even if I have 300G more of my memory), the scene above would be null and I failed to load the scene, Can anyone tell me why ?
I tried this on serveral different computers, including Windows Server 2016 (384G memory), Windows 10 (64G memory)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at ofxAssimpModelLoader::loadModel(string modelName, bool optimize) and the aiImportFileExWithProperties(...) call shown in the report. Reproduce the failure with the large OBJ collection, determine why the returned scene becomes null near 27G of process memory, and define done as an identified cause with a verified fix or clear diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100