Debug Assertion Failed! Expression: __acrt_first_block == header when using libtorch debug build

I built libtorch 1.6 from source (with /MTd switch). Everything went smoothly!
but upon executing the test application it crashes with this error

you can see the whole source code so its just a simple hello world
Whats wrong here? Any help is greatly appreciated

note: I’m building using Visual Studio 2019

@Shisho_Sama
Hi, there is an issue here, not fully related, but you can take a look at the last post.
https://github.com/pytorch/pytorch/issues/46318
If it doesn’t work, please create an issue at ‘https://github.com/pytorch/pytorch/issues’, we will have build expert looking into this.

1 Like