Follow-up Comment #6, bug #14372 (project mypaint):

I try to print x and y value before crashing. They are -1951604096.000000 and
 -1937074944.000000. And on every trial both are always -19xxxxxxxx (10
digit).

I think in brush.hpp
-----
    pressure = CLAMP(pressure, 0.0, 1.0);
    if (!isfinite(x) || !isfinite(y) ||
        (x > 1e10 || y > 1e10 || x < -1e10 || y < -1e10)) {
      // workaround attempt for https://gna.org/bugs/?14372
      g_print("Warning: ignoring brush::stroke_to with insane inputs (x = %f,
y = %f)\n", (double)x, (double)y);
      x = 0.0;
      y = 0.0;
      pressure = 0.0;
    }
    // the assertion below is better than out-of-memory later at save time
    assert(x < 1e8 && y < 1e8 && x > -1e8 && y > -1e8);
-----

It should be 1e9 instead of 1e10 isn't it?
I've test it and it works if it's 1e9


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14372>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to