notjack
2017-11-5 09:42:47

Is it possible for two different Racket threads to use racket/gui on linux-y systems to talk to two different X servers? The only way I can think of how that would work is if the threads set the DISPLAY environment variable in the current-environment-variables parameter and that didn’t explode when GTK was called via FFI


zaomir
2017-11-5 12:54:49

@zaomir has joined the channel


samth
2017-11-5 13:01:01

@notjack that seems unlikely to be possible to me, but it’s more likely in racket than in other systems


eeide
2017-11-5 13:32:34

I will try that and get back to you.


mflatt
2017-11-5 15:38:59

@eeide Which version of macOS are you running? I’m still on 10.11 (El Capitan), and the current security update didn’t affect DrRacket for me, but maybe I need to be on [High] Sierra to see the problem.


eeide
2017-11-5 16:20:17

@mflatt I am running macOS 10.12.6 “Sierra.”


mflatt
2017-11-5 16:42:44

@eeide I updated a Sierra machine, and things still work for me. Maybe the output from Sam’s suggestion will help.


eeide
2017-11-5 16:43:16

I will try that when I get back to my house, later today.


slack1
2017-11-5 17:17:35

What do people here think of the idea of named partially applied functions?


mathias.garnier69000
2017-11-5 17:32:59

@mathias.garnier69000 has joined the channel


eeide
2017-11-5 19:43:57

@mflatt @samth Running bin/racket -l drracket seems to work without problem on my Mac.


eeide
2017-11-5 19:48:51

Doubling-clicking the DrRacket icon yields the same error that I reported earlier, in system.log: Nov 5 12:41:40 gris com.apple.xpc.launchd[1] (com.apple.xpc.launchd.oneshot.0x1000002f.DrRacket[3153]): Service exited with abnormal code: 1


eeide
2017-11-5 19:52:44

Sometimes (?) I see that a volume is mounted and then quickly unmounted around the time that I run DrRacket by double-clicking on it. The volume seems to be a random hex string, different each tim—a UUID? (The mounting and unmounting is reported to me by HardwareGrowler.)


eeide
2017-11-5 19:53:56

The mounting/unmounting does not happen when I run bin/racket -l drracket from the command line.


mflatt
2017-11-5 20:40:36

@eeide That behavior sounds like macOS trying to sandbox the application as untrusted. But the disk image that you used to install should have been signed, and so the application shouldn’t be tagged as needing a sandbox. Maybe something has gone wrong with signing, but I’d expect to have seen and heard about more problems in that case.


eeide
2017-11-5 20:53:37

FWIW, I downloaded the Racket 6.11 package from the Utah mirror.


eeide
2017-11-5 20:59:11

Just now, I downloaded the Racket 6.11 package again, from the Utah mirror, to another Mac running macOS 10.12.6. Double-clicking on DrRacket starts right up, no problem.


eeide
2017-11-5 21:00:20

My machine on which it works is “fairly new”: an iMac (Retina 5K, 27-inch, Late 2015) with a 4GHz Interl Core i7.


eeide
2017-11-5 21:02:06

My machine on which it does not work is “fairly old”: a MacBook Pro (15", Mid 2012) with a 2.6GHz Intel Core i7.


eeide
2017-11-5 21:03:40

Perhaps the biggest difference between the machines is the graphics systems. Notably, my MacBook Pro does not have a retina display.


mflatt
2017-11-5 21:09:49

I’ve been trying via VNC to a 2012 Mac mini, so I don’t think the vintage or display is the problem Does codesign -v racket-6.11-x86_64-macosx.dmg say anything? Or codesign -v /Applications/Racket\ v6.11/DrRacket.app (if you installed to “Applications”)?


eeide
2017-11-5 21:11:21

I ran both commands. Neither one produced any output.


mflatt
2017-11-5 21:17:34

That’s good in that no output means no detected signing problem, but it leaves me with no more guesses


eeide
2017-11-5 21:18:34

Well, if you think of another hypothesis, let me know. Thanks for pondering!


eeide
2017-11-5 21:18:41

:thinking_face:


gknauth
2017-11-5 21:30:09

@eeide Sometimes when I download a nightly build, when I run it (double-click on the icon), nothing happens, other than DrRacket seems to start to start and then quickly shuts down again. At some point in the past, someone told me (on MacOS) when this happens to drag the DrRacket icon/app out of the folder it’s in, to the folder above, and then to drag it back into the original folder and try double-clicking again. When I do that, the problem goes away and DrRacket starts normally from that point forward. I don’t know if this is related to the problem you saw, but I’m mentioning it in case it might be.


eeide
2017-11-5 21:40:28

@gknauth I tried that procedure on my MacBook Pro (where DrRacket was not working), and— the problem went away!


eeide
2017-11-5 21:40:35

Your trick worked!


eeide
2017-11-5 21:40:48

“Huh.”


eeide
2017-11-5 23:29:30

Thank you for your help, @gknauth!


notjack
2017-11-6 00:08:35

@samth @stamourv hopefully for the 6.12 release you’ll be able to watch the GUI tests from your friendly neighborhood web browser https://github.com/samth/docker-racket-build/pull/18


dustin
2017-11-6 02:05:02

@eeide I’m on macOS. Installing the new version was a breeze for me. Simply drag the old folder to the trash, and then the new (entire folder—after opening package) to Applications. After that, running sudo sh -c 'echo "/Applications/Racket v6.11/bin" >> /etc/paths' seems to work flawlessly. Here also is another guide for that http://beautifulracket.com/setting-the-mac-os-path.html\|beautifulracket.com/setting-the-mac-os-path.html


eeide
2017-11-6 03:36:01

Thanks for the help, @dustin!