Skip to content

[Grid] Crash trying to reference garbage collected variable #1978

@pedropaulosuzuki

Description

@pedropaulosuzuki

Description
I was just messing around with the Grid and saw Pinta crashing due to a garbage collected variable trying to be accessed.

To Reproduce
Not sure the optimal steps to reproduce, but I was able to do it twice by doing the following:

  1. Open Pinta
  2. Enable the Grid
  3. Enable the Axonometric Grid
  4. Disable the Grid
  5. Disable the Axonometric Grid
  6. Pick any tool (example: Clone Tool or Brush Tool) and try to draw on the canvas

Additional Info

Unhandled exception. System.Exception: Could not toggle reference to strong. It got garbage collected.
   at GObject.Internal.ToggleRef.ToggleReference(Boolean isLastRef)
   at GObject.Internal.InstanceCache.ToggleNotify(IntPtr data, IntPtr object, Int32 isLastRef)

Version
Latest git

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions