bedeke
2021-5-21 10:08:33

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.


sorawee
2021-5-21 10:25:20

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)


markus.pfeiffer
2021-5-21 11:36:14

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


samth
2021-5-21 13:55:07

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


mflatt
2021-5-21 15:25:43

@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?


samth
2021-5-21 15:39:15

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)


sorawee
2021-5-21 16:25:47

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.


sorawee
2021-5-21 16:25:54

Any advice on how to debug this?


markus.pfeiffer
2021-5-21 16:28:12

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


markus.pfeiffer
2021-5-21 16:28:31

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


sorawee
2021-5-21 16:39:18

MacOS (M1)


sorawee
2021-5-21 16:41:17

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


samdphillips
2021-5-21 18:33:51

samdphillips
2021-5-21 19:39:29

It’s working now.


jjsimpso
2021-5-21 20:45:36

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.


spdegabrielle
2021-5-21 20:49:12

Framework library has a lot of it


jjsimpso
2021-5-21 20:49:28

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.



jjsimpso
2021-5-21 20:53:44

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.


spdegabrielle
2021-5-21 20:55:41

You can regex search from within drracket


jjsimpso
2021-5-21 20:57:01

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


spdegabrielle
2021-5-21 20:57:29

Yes it is all there


spdegabrielle
2021-5-21 20:58:00

And there is a menu item to search for files too


jjsimpso
2021-5-21 20:58:58

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


spdegabrielle
2021-5-21 21:00:18

‘Search in files’


spdegabrielle
2021-5-21 21:01:42

Did you mean the little running man


jjsimpso
2021-5-21 21:10:25

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.


jjsimpso
2021-5-21 21:11:10

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


spdegabrielle
2021-5-22 00:07:39

jjsimpso
2021-5-22 02:26:30

Yes, thanks. A wealth of information there!


sorawee
2021-5-22 02:39:03

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


sorawee
2021-5-22 03:32:44

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…