-
Notifications
You must be signed in to change notification settings - Fork 152
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
Crashes when changing view properties with certain data #53
Comments
fwiw, turning down the resolution then scaling up the model in code (after increasing the bounds to make room) also causes Crash 2, so it does seem like it has to do with trying to render that function at a certain amount of detail, rather than just something about the literal resolution value itself. |
OK, I've found a couple of new situations that will crash Ao, one of which might not be related to this thread but I'll include it anyway since I have a feeling it'll still be useful -- and the other of which is DEFINITELY related, and is the simplest test case yet, and doesn't do anything to "cheat" the distance function, which should rule that out as a possible cause... CRASH 3: In the line: CRASH 4: Change the negative end of the Z axis of the bounding box from |
I added The issue here is that during meshing, two evaluations of the same point give slightly different values (?!). The first evaluation gives There's something strange going on with Eigen: if I disable vectorization with Anyways, 5f89d8a should work around the issue by not doing the second evaluation (so there's no room to disagree). This fixes all the tests cases above on my machine; can you pull and test it out? |
That fixes all four for me :) Thanks so much! |
I'm not sure if I should list these two crashes as two separate issues, but they have similar triggers and use the same data, so I'll just list them together here for now.
I'm working on a model, and I've wound up in a position where if I make certain changes to the bounding box, or if I turn the resolution up past a certain amount, Ao crashes (either instantly, or after several seconds).
I'm on macOS 10.12.6, and I'm using the latest files on github as of this posting (the Oct 16 commits).
I've stripped down my file to as small as it can get while still triggering the bug. I've attached it here (zipped so github will accept it): idol_CRASHDEMO.zip
CRASH 1: Open the view options menu, and change the bounds for the X dimension to -1.5 and 1.5
In a previous build, it would crash as soon as the first number was changed; after updating to the latest build it seems like it only crashes as soon as you try to change the second number.
CRASH 2: Open the view options menu, and change the resolution to anything above 64, then wait a few seconds.
I'm pretty sure some of my operations aren't exactly distance-preserving, but it's always seemed to work out fine until now; could the crash be caused by the 'impossible' distance fields becoming a problem when the resolution gets precise enough?
The text was updated successfully, but these errors were encountered: