You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using the g++ command to run my code, and when I do it seems to run fine, but when I try to use make with the release option for faster computation, I get completely different outputs.
When I run g++ src/main.cpp -I ext/eigen then ./a.out my code runs like expected.
When I run (within the build directory) cmake -DCMAKE_BUILD_TYPE=Release ../ then make then ./Assignment1_bin I get different errors each time I try. Sometimes I get:
I tried to run your code. The reason that it's different is that your executable is in a different location, and so the path of off isn't able to be found. So your function for readOFF fails and your subsequent operations produces a memory violation.
No, I don't think it's normal.
It's probably that there's an infinite loop in your program and takes
infinite time.
In order to debug, I suggest you to print more debug info when running the
program, so you can know where is taking significant time and track down
the potential bug. Also, I recommend to use `std::cerr` instead of
`std::cout` for debug printing purpose.
Best,
Zhongshi
On Thu, Oct 12, 2017 at 10:33 AM Radhika Mattoo ***@***.***> wrote:
Ok, that worked, it's running - thanks! I'm currently implementing a
single mesh for 1.4, just to see if my algorithm is correct, but it's
taking an *extremely* long time to run. I've set the CMAKE_BUILD_TYPE
flag set to Release, but it's still taking on the scale of several hours
- I started running it last night, and it is still not finished. Is this
normal?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<danielepanozzo/cg#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMKxFxAQeaLHCFjkC_pbaKAynKCE11Rtks5sriMqgaJpZM4P2RGa>
.
I've been using the g++ command to run my code, and when I do it seems to run fine, but when I try to use make with the release option for faster computation, I get completely different outputs.
When I run
g++ src/main.cpp -I ext/eigen
then./a.out
my code runs like expected.When I run (within the build directory)
cmake -DCMAKE_BUILD_TYPE=Release ../
thenmake
then./Assignment1_bin
I get different errors each time I try. Sometimes I get:Sometimes I just get:
Segmentation fault: 11
Other times my code runs, but doesn't detect any intersections at all and just outputs a black image.
Is there any way to stop this? Why am I getting different errors? My current code is in my repo.
The text was updated successfully, but these errors were encountered: