-
Notifications
You must be signed in to change notification settings - Fork 33
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
STL assert while doing union for two polys #45
Comments
How are you compiling the code above? I am not having any issue with this code - though I may have different build flags. https://github.com/mapbox/wagyu/blob/master/Makefile#L3 Are you using |
No, because this is GCC switch and I'm using both Visual Studio 2015 Compiler and Clang. |
I've finally found the time to sort it out. It produces "list iterator not incrementable" assert for the following code:
(\mapbox\geometry\wagyu\intersect_util.hpp, line 82) |
@enduguXL are you using the latest from master? What geometry/test is this failing on? |
Yes, I think so (my SVN path is https://github.com/mapbox/wagyu.git/trunk). |
@enduguXL I just pushed a new fix that hopefully will resolve that issue, can you confirm? |
Confirming.
mapbox\geometry\wagyu\active_bound_list.hpp, line 165 Looks like the problem is the same: you are incrementing iterators but not checking them for end() / NULL prior to this. |
@enduguXL I use clang, not sure why this isn't triggering on any of my builds... |
another fix pushed |
Are you really sure about clang? The makefile you've posted above is for GCC because compiler options there are in GCC format. For example, clang doesn't understand -std=c++11, it says "unknown argument ignored in clang-cl". Anyway, thanks for the fix, I'll check it later today when I return home. |
@enduguXL - definitely using clang and clang supports |
Looks like it's an STL assert in Microsoft's STL implementation. In Release configuration it works, producing no asserts. |
@enduguXL I am definitely supporting Microsoft Visual Studio, but I do not have a setup for this currently - so I would love to make sure that everything compiles properly! Microsoft's compilers are typically stricter, so this is often a very good thing! |
Sounds good! |
Creating a new pull request is the easiest way by far to contribute any changes to the code. Additionally we should look into getting wagyu to build on a windows test environment, much like we do with travis currently. |
I suspect that I'm doing something fundamentally wrong.
VS2015. LLVM-vs2014 toolset has the same effect.
`
`
The text was updated successfully, but these errors were encountered: