Am 16.02.2017 um 10:17 schrieb Michael Figiel:
If this works it implies that this code is called with nb == 0, meaning
a path with no nodes. Which is strange.
I've rebuilt darktable with the line patched and the problem went away,
the paths are usable. Thank you!
To be sure, I built dt without the modification, and it crashed so it
wasn't just the binary package.

As you can't reproduce the behaviour, maybe I can help with diagnostics?
Please don't ask for the core file - I'm on a very slow line, it would take 
ages...

I'm hesitating to just implement this quick fix as the case of a path with zero nodes looks fishy. I'd like to understand better how this happens. Maybe you can help me in two aspects. First thing I would like to learn is what you exactly do in order to produce the crash (you will need to revert the changes).

Then it would be great if you could go into path.c, early in function _path_find_self_intersection(). Just add print statements that show with what values for nb_corners and border_count this function gets called. Like:

printf("nb_corners %d, border_count %d\n", nb_corners, border_count);

For this to work you will need to put in my fix again.

Best wishes

Ulrich


___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to [email protected]

Reply via email to