loryhndol / LowpolyBuildings

Implementation of Low-poly mesh generation for building models
24 stars 4 forks source link

run crash in "glGenVertexArrays(vaoSize, VAO.data())" #3

Closed klxqlehua closed 1 year ago

klxqlehua commented 1 year ago

hello, I build this project on Mac. when I run it, it always crash on the code of "glGenVertexArrays(vaoSize, VAO.data())" which is in the function of "OpenGLRenderer::snapshot".

image

The Exception is "EXC_BAD_ACCESS(code=1, address=0x0)" Do you know why the address is 0x0? Could you solve this problem? thanks.

loryhndol commented 1 year ago

It seems like that the VAO.data() is a null pointer. Could you please check whether the model is loaded successfully?

klxqlehua commented 1 year ago

I use glew replace glad and set glewExperimental = GL_TRUE; and then glewInit(); At last this crash solved.

klxqlehua commented 1 year ago

My workmate came across the same problem on linux, so I suspect you can run success on windows? Can you please describe the dependencies that consist of versions in detail in README.md? Thanks.

loryhndol commented 1 year ago

My workmate came across the same problem on linux, so I suspect you can run success on windows? Can you please describe the dependencies that consist of versions in detail in README.md? Thanks.

Thanks for your suggestions . I have updated the README

klxqlehua commented 1 year ago

Ok, thank you.