-
Notifications
You must be signed in to change notification settings - Fork 403
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
Error in test for xarray_adaptor.xiterator on MSVC x64 #1659
Comments
Can you enable xtensor asserts? This is done by defining |
Sorry, I should have mentioned my build flags. I build latest xtensor from 1hr ago (2288e86) with build instructions (leaving out irrelevant details like install paths):
|
Does it work if you build in Release mode? I'm afraid this error is due to additional non standard checks of iterators by Microsoft, even if they're not dereferenced. You can also compile in debug with |
The test works fine in release mode. This is interesting, I did not know Microsoft has more "extensive" checks. Now I'm a bit lost what that means: it would be a bit unfortunate if parts of xtensor do work in debug mode. Is that the implied meaning of this error, or is the problem just with this specific test code (outside of xtensor)? |
So this error is the combination of two things:
I usually strongly encourage to disable these checks, they are most of the time totally useless, and may lead to build errors such as "'__iTERATOR8DEBUG_LEVEL': value '2' doesn't match value '0' in XXX" where XXX is an external dependency that is available in Release mode only. |
I will do as you suggest and disable the checks. Is it possible for me to add this hint do the documentation (either FAQ or the build flags page)? A tiny comment: I'm still on VS2017 Service Pack 4, so the problem seems to affect earlier versions of Visual Studio than VS2019 too. |
Indeed, adding this hint in the build flags page of the documentation would be a good idea. My bad regarding the version of VS, indeed the error started with VS2017. |
I'm running the test suite for xtensor on Microsoft Windows 7 x64 for a build with Visual Studio 2017 command line tools. The tests fail with the following message on the command line:
When run manually from the user interface, the attached popup message is shown that seems to indicate a vector out of bounds access.
Is this a problem on my side? anything I can do to help debug this issue? I can not easily run GUI applications on MSVC and I don't have Visual Studio GUI installed, so my debugging capabilities are quite limited.
The text was updated successfully, but these errors were encountered: