Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: glb file not importing in debug mode #5497

Open
emrekaya413 opened this issue Mar 15, 2024 · 5 comments
Open

Bug: glb file not importing in debug mode #5497

emrekaya413 opened this issue Mar 15, 2024 · 5 comments
Labels
Bug Global flag to mark a deviation from expected behaviour

Comments

@emrekaya413
Copy link

emrekaya413 commented Mar 15, 2024

edit : i uploaded video : https://youtu.be/seFX3W9KKAY
i am using c++
ide : codeblocks
compiler : mingw64
version : x86_64-13.2.0-release-mcf-seh-ucrt-rt_v11-rev1
debugger name : gdb
assimp version : mingw-w64-x86_64-assimp-5.3.1-1

First of all fbx files working without any problems. (normal run and in debug mode no problem)

glb files working normally but in debug mode stopping and pointing readfile function

i am importing glb file like this :

string fileName = "cube.glb";
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(fileName, aiProcess_Triangulate | aiProcess_FlipUVs | aiProcess_CalcTangentSpace);

and no problem i can compile and run. When i try debug mode stopping and pointing this line (inside Import.hpp)

AI_FORCE_INLINE const aiScene *Importer::ReadFile(const std::string &pFile, unsigned int pFlags) {
return ReadFile(pFile.c_str(), pFlags);
}

this return ReadFile(pFile.c_str(), pFlags); line stopping.

And i tried same glb file with assimp_viewer again no problem.

Sorry if I made any mistakes, I'm a newbie

@emrekaya413 emrekaya413 added the Bug Global flag to mark a deviation from expected behaviour label Mar 15, 2024
@JulianKnodt
Copy link
Contributor

JulianKnodt commented Mar 15, 2024

Is it crashing or is it just slow? What do you mean by stopping exactly?
(and does it work in release?)

@emrekaya413
Copy link
Author

debug mode (gdb.exe) crashing
release mean ? compile and run yes working

@emrekaya413
Copy link
Author

i uploaded video : https://youtu.be/seFX3W9KKAY

@JulianKnodt
Copy link
Contributor

thank you, I think we can figure it out from that!

@emrekaya413
Copy link
Author

i was using msys2 pre build mingw64 assimp. Today i tried to build myself and i made with default cmake list settings and my build libassimp-5.dll was 15 mb instead of msys2 8mb. But unfortunately still same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour
Projects
None yet
Development

No branches or pull requests

2 participants