Skip to content

Attempt to decrement 0 reference count error when drawing thousands of pixels to Sketch stream #2170

@pamoroso

Description

@pamoroso

Describe the bug

Using DRAWPOINT to draw several thousand pixels to a Sketch stream crashes Medley and enters URaid with the error:

*Error* attempt to decrement 0 reference count
Enter the URaid
CL:NIL

To Reproduce

Steps to reproduce the behavior:

  1. launch Medley
  2. at an Interlisp Exec evaluate (FILESLOAD SKETCH SKETCH-STREAM)
  3. at an Interlisp Exec evaluate (SETQ S (OPENIMAGESTREAM 'TEST 'SKETCH))
  4. at an Interlisp Exec evaluate (FOR X FROM 0 TO 639 DO (FOR Y FROM 0 TO 479 DO (DRAWPOINT X Y NIL S)))

Expected behavior

The drawing operations to the Sketch stream complete with no errors.

Screenshots

The Medley session when URaid is entered:

Image

Context (please complete the following information):

  • Are you using online.interlisp.org? no
  • OS: Linux
  • OS Version: Mint 22.1 Cinnamon
  • Display/window system: X11
  • Host arch: x86_64 (System76 Merkaat)
  • Maiko version: 4994982
  • IL:MAKESYSDATE: 26-May-2025 12:50:11 (Maiko: master; Medley: master)

Additional context

I'm not sure whether this a bug or an expected consequence of the overhead of performing so many graphical operations on a Sketch stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions