-
Notifications
You must be signed in to change notification settings - Fork 94
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
Assertion internal->numsites == 1 occasionally triggers on valid input. #38
Comments
Thanks for the repro case! |
The latest version in the dev branch fixes both issues for the specific test cases I supplied and appears to have made the problems arise less frequency (especially for smaller systems) but I'm still seeing the same errors. Here (assert_failure.bin.zip) is an array of 9216 points that trips the assertion, and here ( |
Hi, I'm also seeing this happen. It's really rare but it definitely happens. I'm attaching a testcase of 4595 points required inside a 2048 * 2048 rectangle (0..2048, 0..2048), which triggers this assert. |
@kentdobias Thanks again for the report. I wasn't able to reproduce the assert on macOS. What platform are you on? Any special compile flags? In the case of invalid tesselation, I can reproduce that though, so I'll continue investigate that. |
@lundmark Thanks for the test data, but I wasn't able to reproduce a crash with it (macOS) |
Huh, the test file now works for me, too! Both my compilers were updated in the meantime—maybe something was fixed? |
We have also updated compilers, so maybe it's not an issue for us anymore either. I'll try to reproduce it as soon as I have time! Thanks! |
Ok, closing for now, but feel free to reopen if the issue comes back! |
Unfortunately I also get the same assertion error: jcv_boxshape_fillgaps: Assertion `allocator->numsites == 1' failed. This takes place for both version 0.7 and 0.9. The bounding box is {min = {x = -10, y = -10}, max = {x = 7009, y = 3509}} gcc (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1) I'm looking forward to continuing this discussion. |
There is a bug in this library that occasionally causes the assertion at line 1134 (internal->numsites == 1) to fail. I do not know what the issue is, but I have attached a test program and data file that faithfully reproduce the error. Apologies for the size of the data file—this is an extremely infrequent error, and I've only been able to trigger it with sets this large.
Test file: mem.bin.zip
Test code:
Example use:
The text was updated successfully, but these errors were encountered: