Menu

#269 Brush fill crash with large screen

v0.9.28
closed
None
1
2022-12-23
2022-12-21
No

Originaly reported on twitter: https://twitter.com/Miyagi_Andel/status/1605139280539557888

Andel reported that around 15 seconds of continuous use of the tool trigger this, but it had nothing to do with that.
I comfirmed the crash can be reproduceable always with following step not only on windows but also on Linux.

  • Start Tux Paint with large screen (ex 1600x960
  • Select brush fill tool
  • Drag to the top or bottm of the canvas

I remember quite similar issue:
https://sourceforge.net/p/tuxpaint/tuxpaint/ci/81fff34795d60208a4952193d5dba321326c66a1/

Discussion

  • Pere Pujal i Carabantes

    It doesn't crashes here in my box, Debian Sid, but valgrind claims about invalid reads in draw_brush_fill_single()
    The attached patch adds a barrier to only process if the pixel is within the limits, and valgrind stops complaining but I don't know if the patch fixes the crash.
    Please test.

    BTW, Valgrind also complains about invalid reads in draw_radial_gradient()...

     
    • Shin-ichi TOYAMA

      Thanks!

      It surely stopped the crash.
      Should we do something for another Valgrind's complaint ?

      If not, I will build 0.9.28-3 for Windows and ask Bill to release them.

       
    • William Kendrick

      Oh yikes, yeah that'd do it (cause a crash). Sorry about that :-/

      I'll test, and will look at the radial one, too. Thanks so much!

       
  • William Kendrick

    • status: open --> closed
     

Log in to post a comment.