racket / racket/htdp

dc<%> error for (make-circle 8675309)

Open
#24 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement teachpack
Dominant language
Racket
Stars
112
Forks
73
Avg merge
9h 41m
Merged PRs (30d)
1

Description

If I try to make a very large image with 2htdp/image, I get an error from the dc<%> interface.
I wish the error came from the 2htdp/imagefunction & told me the size limit for my machine.

Here's an example program. Your size for "too large" may vary -- I had a student with a Dell laptop that could draw this circle.

(require 2htdp/image)
(circle 20000 "solid" "HotPink")
;; erase in dc<%>: drawing context is not ok: (instantiate (class ...) ...)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the large-circle example through the 2htdp/image entry point and inspect where the dc<%> drawing-context error escapes. Identify the existing size-limit behavior for the machine, then make the reported error originate from 2htdp/image and include the applicable limit; verify it with the example program.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.