Pinta crash after layers uncheck and paste

Bug #1959598 reported by grofaty
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned

Bug Description

Pinta/master/github on Ubuntu 20.04.

1. Layers pad. Click on layer to uncheck the layer.
2. <Ctrl>+<Print Screen> actually Ubuntu shortcut to copy image into clipboard.
3. <Ctrl>+<Alt>+V to paste image from clipboard to new image in Pinta. PROBLEM: Crash appears with error:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at Pinta.Gui.Widgets.CanvasRenderer.Render(List`1 layers, ImageSurface dst, Point offset)
   at Pinta.Gui.Widgets.PintaCanvas.OnDrawn(Context context)
   at Gtk.Widget.Drawn_cb(IntPtr inst, IntPtr cr)

Revision history for this message
grofaty (grofaty) wrote :

Retested in Pinta 2.0.2 on Ubuntu 20.04 and crash already appears, so no regression in master.

Revision history for this message
Cameron White (cameronwhite91) wrote :

I could repro this, although my stack trace looked a bit different
Should be fixed by https://github.com/PintaProject/Pinta/commit/c9a4cb5b81aad1a6b53e4b68ad52f45e220d8df1

Changed in pinta:
milestone: none → 2.1
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Retested in today's Pinta/master/github and can confirm this problem is fixed. Thanks.

grofaty (grofaty)
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.