Open YQGong opened 3 weeks ago
After replace _mktemp( fileName );
with an auto-increment integer string, the problem fixed. So I'm pretty sure the problem is the same as this one: https://github.com/mkazhdan/PoissonRecon/issues/101
I was recently informed that switching the code: _mktemp( fileName ); fp = fopen( fileName , "w+b" ); if( !fp ) ERROR_OUT( "Failed to open file: " , fileName );
with: errno_t err = tmpfile_s(&fp); if (err != 0) { std::cerr << "tmpfile_s failed with error: " << err << std::endl; ERROR_OUT("Failed to create a unique temporary file."); }
resolves the problem. I have not had a chance to try it out yet (but I am also not generating the error). Not sure why this is issue has started surfacing recently.
The program runs perfectly until I switch to a new computer with a 32-threads cpu(i9-13900HX) and windows10(version 19044.1288).
The command and the verbose error message looks like:
I found an old issue here but I'm not sure if this issue is relevant to mine: https://github.com/mkazhdan/PoissonRecon/issues/101
PS: I have tried 16.01 and 16.04 version PoissonRecon.exe. Adding a
--threads 1
has no effect to this problem.