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

errror : bad allocation #175

Open
BoyChan opened this issue Apr 10, 2020 · 3 comments
Open

errror : bad allocation #175

BoyChan opened this issue Apr 10, 2020 · 3 comments

Comments

@BoyChan
Copy link

BoyChan commented Apr 10, 2020

Hi,
I cannot load a big IFC file ( about 2.0GB) by SimpleViewerExampleQt, and send a message 'Error : bad allocation'. Do you know how to solve it ? Thanks :)

@ifcquery
Copy link
Owner

I did not encounter such a problem yet.
Since this is an open source project, you can also figure out a solution (google, implement, debug, etc), and open a pull request. Thanks :)

@BoyChan
Copy link
Author

BoyChan commented Apr 14, 2020

I did not encounter such a problem yet.
Since this is an open source project, you can also figure out a solution (google, implement, debug, etc), and open a pull request. Thanks :)

Thanks. I try to find the reason that the size of IFC file is out of the range(type:int).therefore, the datatype is modified to the datatype of size_t and can solve the little bug.

@Sydra7
Copy link

Sydra7 commented Apr 25, 2020

I have a similar issue in debug mode. I use this library in my project. If I read a big file first the program crashes. If I read a small file first it works, and if I read a large file after that it also works.
The crash comes from division by zero in CSG::classifyFaceGroupsEdge/processOneEdge/vector::normalized
So I get different nodes from the model in different scenarios. In the first scenario in many cases the edges have the same node on both ends. It looks like some memory related problem.
I hope it helps the investigation but maybe it's a different bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants