-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_close crashes on windows 10 #188
Comments
Filed as internal issue #144797. |
Hi @helgemathee, we haven't seen this in any of our local testing here -- any chance you could send us a stack trace of the crash? Thanks! |
here's a minimalistic repro - you can use scons or just build the arch into a dll and the main into an exe - it crashes during execution. I'll dig a bit deeper today and will keep you posted - also with a stacktrace. |
so this was related to two runtimes fighting - linking with /MT on windows causes this issue. closing. |
Description of Issue
When running USD on windows 10 there is a crash in atomicOfStreamWrapper and possibly other places calling _close on a temporary file. the use of _sopen_s and _close seems to be causing crashes on Windows 10, Visual Studio 2015.
I've tested using GetTempFileName instead (see attached patch) and that works.
fileSystem.cpp.txt
Steps to Reproduce
System Information (OS, Hardware)
Windows 10, Visual Studio 2015
Package Versions
latest dev branch
Build Flags
The text was updated successfully, but these errors were encountered: