eth-igl / gp2024-Assignments

0 stars 0 forks source link

executable frequently crashes upon running without debugging #1

Open yuhanliu-tech opened 4 months ago

yuhanliu-tech commented 4 months ago

Hello,

I followed the instructions to build assignment1 (on Windows), but the program has been immediately crashing after I run the command line. It doesn't seem to crash when I run in Debug mode, so I haven't figured out a solution.

Do you know why this might be happening?

segaviv commented 4 months ago

Hi Yuhan,

There seems to be an issue with building libigl on Windows in 32bit (see the comment for Windows users here). To generate a 64bit build you can open the "x64 Native Tools Command Prompt for VS 2022" (instead of the 32bit version "Developer PowerShell for VS 2022"), and follow the instructions from the readme.

Let us know if there are still some issues on Windows with the 64bit build.

Best, Aviv

yuhanliu-tech commented 4 months ago

Hi Aviv,

I rebuilt using x64 but I still have the crashing issue -although less frequently. I'll try working through the assignment with this setup.

Thank you for your help! Yuhan

PeizhuoLi commented 4 months ago

Hi Yuhan,

Another possible solution is to use -DCMAKE_BUILD_TYPE=RelWithDebInfo. In our experiments, it offers a competitive performance with Release mode and never crashes. This also might be related to the exact environment (OS version, CPU, GPU driver, etc). We are trying to look for a better solution and please let us know if the crashing continues on your machine.

Best, Peizhuo