Closed amiltonwong closed 3 years ago
@amiltonwong how did you end up resolving this issue?
EDIT: seems like this issue was resolved here
I had the same issue and resolved it in the same way.
@mwmuni , you're right, I resolved it by rebuilding it using cmake -DCMAKE_BUILD_TYPE=Debug ..
Actually, after I updated to the latest mesa (through kisak) I didn't need the debug build anymore. (Now there's a new issue in which the project compiles clean and launches, but Polyscope doesn't get any mouse events so it's unusable, except it can zoom using the mousewheel...I really don't want to use JS because I'll need this code later, but dang it's frustrating that this doesn't quite work.)
Actually, after I updated to the latest mesa (through kisak) I didn't need the debug build anymore. (Now there's a new issue in which the project compiles clean and launches, but Polyscope doesn't get any mouse events so it's unusable, except it can zoom using the mousewheel...I really don't want to use JS because I'll need this code later, but dang it's frustrating that this doesn't quite work.)
It seems like some C++ optimisations are optimising out critical OpenGL code. Does anyone familiar with compilation optimisation know how to fix this without compiling in debug mode?
I had the exact same issue and fix with a separate project, so this issue is not isolated to this repo.
Well thank God I'm not crazy. NB I still see the no-mouse problem after compiling in debug mode. Do we need a new issue?
Well thank God I'm not crazy. Do we need a new issue?
Probably not. I would say that opening this issue again would be sufficient, since the solution of compiling in debug mode is inadequte.
After several hours, I isolated the issue to a default optimisation in the compiler at O1 and above.
Adding -fno-defer-pop
to the compilation flags resolves the issue for me.
Gj! not me though. Are you in Windows 11?
After several hours, I isolated the issue to a default optimisation in the compiler at O1 and above.
Adding -fno-defer-pop
to the compilation flags resolves the issue for me.
Gj! not me though. Are you in Windows 11?
WSL2 under Windows 11.
Hi, all,
I've built the project simplicial-complex-operators without error. However, when I run the main executable to display the mesh file. Error message such as
Polyscope OpenGL Error! Type: Invalid enum
appears. Any hints to solve this issue? THX!P.S. My system is ubuntu 16.04.7. gcc/g++ already upgraded to 7.5 version.