
plot/pict
rebinds plot
to use plot-pict
or plot-file
based on some extra extra options. (and same for plot3d
). It works for me with the current branch of plot (but i’m using Racket8.0 [bc]) As for the error, the last change to the plot
library introduced an (internal) plot-pict
that is a structure instead of the function. So maybe somewhere this got messed up. But I can’t immediately find what.

FWIW:
My plot is at c4126001f2c609e36c (Update plot functions to return information about the plot)
My Racket is at dfbb7040aafcf0b5c0199 (improve support for layered and tethered installations)

fwiw on my machine (tm) with a released racket 8.1 it doesn´t crash; don´t know whether this matters at all

That seems like a bug, given the specification of parameter-procedure=?

@sorawee It doesn’t crash for me, either. The SIGKILL part sounds like maybe the OS is killing Racket (i.e., Racket would not terminate itself with SIGKILL, not even in response to some error). Maybe it ends up trying to load a shared library on your installation that isn’t signed or that the OS has marked as tainted?

Here is the single-file version: #lang racket
(module a-typed typed/racket
(provide param)
(: param (Parameterof Integer))
(define param (make-parameter 3)))
(module b-untyped racket
(require (submod ".." a-typed))
(provide param2)
(define param2 param))
(require (prefix-in at: 'a-typed)
(prefix-in bu: 'b-untyped))
(parameter-procedure=? at:param bu:param2)

Update: I git pull
+ make
to make sure my workspace is clean, and it still has the problem.
Actually, even (require plot)
and running it causes the error.
The problem seems to be at run-time. A program with (require plot) ... (plot ...)
can display a binding arrow in DrRacket without any problem.

Any advice on how to debug this?

are you on linux or MacOS? On linux your dmesg might tell you why the OS tried killing your process

I don’t know whether (rather where) MacOS logs these things

MacOS (M1)

Oh, I also tried (require plot)
in a non-build-from-source Racket. It works just fine.


It’s working now.

Does anyone know where in the DrRacket code the bottom bar of the UI is defined? The one with the GC and Running indicators? I’d like to copy some of the UI ideas from there for my own project.

Framework library has a lot of it

I want to create a animated button with a popup-menu when clicked. frame.rkt seems like a good place to start but I don’t see what i’m looking for in there.


Thanks. I didn’t know about Mrlib. So I’ll look into that. I probably should just pull the source so i can grep it more easily. Might not be hard to find what I need then.

You can regex search from within drracket

drracket code is not included in the main racket distro by default, correct?

Yes it is all there

And there is a menu item to search for files too

oh, ok. thanks! i see it now. i i missed that when I was looking for it.

‘Search in files’

Did you mean the little running man

I think I found the main thing I was looking for in gui-lib, the click-pref-panel%. I want to do something similar. The running man is also interesting for the animation part.

In general, DrRacket is doing a lot with its GUI and I thought it would be a good place to look for examples.

@jjsimpso You might like this blog https://alex-hhh.github.io/tags/racket-4.html\|https://alex-hhh.github.io/tags/racket-4.html

Yes, thanks. A wealth of information there!

Aha! Seems like a problem with libmpfr.4.dylib
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x000000012005c000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
...
Application Specific Information:
dyld: in dlopen()
/Users/sorawee/projects/racket/racket/lib/libmpfr.4.dylib

OK, I overwrote /Users/sorawee/projects/racket/racket/lib/libmpfr.4.dylib with https://github.com/racket/libs/blob/master/math-aarch64-macosx/math/libmpfr.4.dylib and everything works fine now…