Occasionally crashes when drawing (freehand or contour-fill)
|Reported by:||finticemo||Owned by:||yrizoud|
I'm really not sure how to describe this. I know that the crash occurs when drawing a few pixels, with freehand or contour-fill drawing tools. Often it's on a small (32x32) image. It's also frequently near (but not on) the edge of the image.
GrafX2 can go hours without crashing this way, but OTOH today it's crashed in this way 3 times within an hour.
Thanks to gdb I have some more detail:
Error number 0 occured in file buttons.c, line 3484, function Save_picture. Program received signal SIGSEGV, Segmentation fault. 0x00005555555af50c in Pixel_double (x=<optimized out>, y=<optimized out>, color=234 '\352') at pxdouble.c:41 41 *(Screen_pixels + x * ZOOMX + y*ZOOMY * VIDEO_LINE_WIDTH)=color; (gdb) bt #0 0x00005555555af50c in Pixel_double (x=<optimized out>, y=<optimized out>, color=234 '\352') at pxdouble.c:41 #1 0x0000555555575ce0 in Horizontal_grid_line (x_pos=x_pos@entry=251, y_pos=y_pos@entry=2687, width=width@entry=384) at graph.c:2887 #2 0x0000555555575e1d in Redraw_grid (x=251, y=12, w=384, h=65512) at graph.c:2908 #3 0x0000555555576226 in Update_part_of_screen (x=x@entry=0, y=1, y@entry=0, width=<optimized out>, height=<optimized out>) at graph.c:201 #4 0x000055555557782a in Polyfill_general (vertices=vertices@entry=2, points=points@entry=0x555555d54240, color=<optimized out>) at graph.c:2536 #5 0x0000555555578419 in Polyfill (vertices=2, points=0x555555d54240, color=<optimized out>) at graph.c:2556 #6 0x00005555555933da in Filled_contour_0_8 () at operatio.c:2752 #7 0x00005555555a1664 in Main_handler () at engine.c:1559 #8 0x000055555556b19f in main (argc=<optimized out>, argv=<optimized out>) at main.c:985
I would guess that this is the typical case for contour-fill crash -- only a few vertices in the shape.
I can provide the image I was working on at the time of the latest crash, but AFAICS it is unremarkable (32x32, 1 layer)
Thankfully no work is lost, usually.. crash recovery works very well.