racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
444 stars 93 forks source link

write: cannot marshal value that is embedded in compiled value: (object:image% ... ...) #669

Closed shhyou closed 3 weeks ago

shhyou commented 2 months ago

What version of Racket are you using?

Welcome to DrRacket, version 8.12.0.12 [cs]. Language: htdp/isl+ [custom]; memory limit: 256 MB.

What program did you run?

The attachment, exercise_1.rkt Exercise 1.zip

What should have happened?

No error.

If you got an error message, please include it here.

  1. Select "No Debugging or Profiling" in DrRacket (i.e. no errortrace)
  2. Open the attachment.
  3. In the status bar, there is an error message write: cannot marshal value that is embedded in compiled value: (object:image% ... ...).

There's no error when running the code, however.

sorawee commented 2 months ago

A minimal program is any program (not limited to htdp/isl+ -- #lang racket has the same problem) with an image inserted via DrRacket.

shhyou commented 3 weeks ago

Looks like that fixes racket/racket#5008 as well?

rfindler commented 3 weeks ago

Ah cool!

I have been having second thoughts about the fix, actually. Maybe it would be better to catch the exception that write throws as it may be possible to make a macro that triggers the same problem.

Robby

On Thu, Jun 6, 2024 at 7:10 PM shuhung @.***> wrote:

Looks like that fixes racket/racket#5008 https://github.com/racket/racket/issues/5008 as well?

— Reply to this email directly, view it on GitHub https://github.com/racket/drracket/issues/669#issuecomment-2153611550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBNMEBTIJYFJY3J5YUDPTZGD26VAVCNFSM6AAAAABGV7E2GSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGYYTCNJVGA . You are receiving this because you modified the open/close state.Message ID: @.***>