-
Notifications
You must be signed in to change notification settings - Fork 49
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
Kokopelli crashes on svg export #12
Comments
I've reproduced this bug and am working on tracking it down. |
Alright, this is a messy bug related to how we contour objects. It looks like your model's expression has zeros on the borders of the spatial partitioning scheme, which breaks multi-scale contouring in subtle ways. Unfortunately, I haven't touched this code since May of last year, and the code is full of comments like
This requires a pretty involved fix that I'm unlikely to get to anytime soon. If you're interested in fixing it yourself, take a look at contour.c. I can give you a more detailed explanation of the failure but no easy solution. Otherwise, try exporting your model at a slightly different scale (i.e. 10.01) or tweaking the parameters by a fraction of a percent; anything that gets the equation's zero points off of the boundaries will solve the crashing. |
Ok, thanks Mat. I may have a dig around myself. If there’s nothing obvious I’ll probably just tinker fractionally with the scale. James Fletcher On 27 Mar 2014, at 01:15, Matt Keeter [email protected] wrote:
|
The file below reliably causes kokopelli to crash when you try to export to sag. I've downloaded and built the most recent sources on my Mac (Mac OS 10.9.2) and I get the following error:
python(81590,0x11bcc9000) malloc: *** error for object 0x7fe1aac86ef0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
This is a reduced version of the file narrowing down the error. Removing the final 'slot' (slotl2) in the file below or adjusting the width of the 'slot' makes the export work.
============ .ko file ==============
The text was updated successfully, but these errors were encountered: