Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
At Mon, 22 Feb 2016 18:55:59 -0500, George Neuner wrote: > If you suspect App Nap, have you tried disabling it for DrRacket? That's worth a try, but App Nap should be disabled automatically by the `racket/gui` library that DrRacket uses. The library calls the `setActivationPolicy:` method of the `NSApplication` object with `NSApplicationActivationPolicyAccessory`. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
There has been improvement since 6.1.1, I believe. Robby On Mon, Feb 22, 2016 at 5:55 PM, George Neunerwrote: > On 2/22/2016 3:04 PM, 'John Clements' via Racket Users wrote: >> >> I have several students who are observing truly impressive UI delays in >> using DrRacket. Specifically, it often happens when they type a double-quote >> (“) with “automatic parentheses” enabled, and after typing the key, it will >> take more than 16 seconds for the screen to update and for the quotes to >> appear. The delay seems to be shortened significantly by clicking or hitting >> the arrow keys, and I suspect this may be related to OS X’s “app nap” >> feature, that will shut down an application when it thinks that it doesn’t >> need foreground processing. >> >> Any ideas? >> >> John > > > Possibly this is a stupid question [ I don't have an OSX machine handy ] ... > > If you suspect App Nap, have you tried disabling it for DrRacket? > http://osxdaily.com/2013/10/29/disable-app-nap-per-application-mac-os-x/ > I know this might be a logistics nightmare in a class or lab. > > > FWIW, I also have observed some randomly impressive delays. In my case they > seem to happen when DrRacket has been running for a long time with multiple > windows. The condition (whatever it is) just seems to clear itself after > the freeze - sometimes a console window with an error pops up but DrRacket > keeps running. > > I tend to restart DrRacket if the error pops up, but in any case it may be > hours or days before it happens again. However, I'm still on an older > version (6.1.1) so it might be fixed in more recent versions, and so far it > has only been a minor annoyance. > > George > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
On 2/22/2016 3:04 PM, 'John Clements' via Racket Users wrote: I have several students who are observing truly impressive UI delays in using DrRacket. Specifically, it often happens when they type a double-quote (“) with “automatic parentheses” enabled, and after typing the key, it will take more than 16 seconds for the screen to update and for the quotes to appear. The delay seems to be shortened significantly by clicking or hitting the arrow keys, and I suspect this may be related to OS X’s “app nap” feature, that will shut down an application when it thinks that it doesn’t need foreground processing. Any ideas? John Possibly this is a stupid question [ I don't have an OSX machine handy ] ... If you suspect App Nap, have you tried disabling it for DrRacket? http://osxdaily.com/2013/10/29/disable-app-nap-per-application-mac-os-x/ I know this might be a logistics nightmare in a class or lab. FWIW, I also have observed some randomly impressive delays. In my case they seem to happen when DrRacket has been running for a long time with multiple windows. The condition (whatever it is) just seems to clear itself after the freeze - sometimes a console window with an error pops up but DrRacket keeps running. I tend to restart DrRacket if the error pops up, but in any case it may be hours or days before it happens again. However, I'm still on an older version (6.1.1) so it might be fixed in more recent versions, and so far it has only been a minor annoyance. George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
One thing that might help is if, during the pause, you open up a terminal, figure out the pid for the drracket's misbehaving and then do "kill -SIGINT " you might get a message with a stack in it. I'm not completely sure about this, but if you start up from the shell (not using "open" but by running something like "/Applications/Racket\ v6.4/bin/drracket ") and then do control-c in the shell you should see a message there. That should be the same as SIGINT, I think. The stack trace from the break exn will be a helpful clue in figuring out what is going on here. Robby On Mon, Feb 22, 2016 at 2:04 PM, 'John Clements' via Racket Userswrote: > I have several students who are observing truly impressive UI delays in using > DrRacket. Specifically, it often happens when they type a double-quote (“) > with “automatic parentheses” enabled, and after typing the key, it will take > more than 16 seconds for the screen to update and for the quotes to appear. > The delay seems to be shortened significantly by clicking or hitting the > arrow keys, and I suspect this may be related to OS X’s “app nap” feature, > that will shut down an application when it thinks that it doesn’t need > foreground processing. > > Any ideas? > > John > > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
I gave that file a try with background expansion on and didn't seem to be able to trigger the issue. Background expansion doesn't really interact with the GUI itself unless the little colored bubble in the corner is the lighter purple color (the dark blue and the darker purple both correspond to phases of that computation that happen entirely in a separate place) and that phase appears to be pretty fast in that file, too, fwiw. Robby On Mon, Feb 22, 2016 at 3:44 PM, Jens Axel Søgaardwrote: > I don't see for that file. > > If I remember correctly it happened in this file: > https://github.com/soegaard/urlang/blob/master/urlang.rkt > I can't reproduce it now though (which btw is the reason I didn't report a > bug). > Hmm. Maybe it went away when I disabled background expansion? > That file is very macro heavy. > > 2016-02-22 22:30 GMT+01:00 Robby Findler : >> >> That sounds like something that is fixable and it would be helpful to >> have a file that exhibits particularly bad problems in order to make >> sure it really is fixed. >> >> I tried opening drracket/private/unit (using "Open Require Path...") >> and wasn't able to provoke the bad behavior. >> >> Do you (or Jens Axel) see it for that file? >> >> Robby >> >> On Mon, Feb 22, 2016 at 2:04 PM, 'John Clements' via Racket Users >> wrote: >> > I have several students who are observing truly impressive UI delays in >> > using DrRacket. Specifically, it often happens when they type a >> > double-quote >> > (“) with “automatic parentheses” enabled, and after typing the key, it will >> > take more than 16 seconds for the screen to update and for the quotes to >> > appear. The delay seems to be shortened significantly by clicking or >> > hitting >> > the arrow keys, and I suspect this may be related to OS X’s “app nap” >> > feature, that will shut down an application when it thinks that it doesn’t >> > need foreground processing. >> > >> > Any ideas? >> > >> > John >> > >> > >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Racket Users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an email to racket-users+unsubscr...@googlegroups.com. >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Racket Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to racket-users+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > > > -- > -- > Jens Axel Søgaard > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
I don't see for that file. If I remember correctly it happened in this file: https://github.com/soegaard/urlang/blob/master/urlang.rkt I can't reproduce it now though (which btw is the reason I didn't report a bug). Hmm. Maybe it went away when I disabled background expansion? That file is very macro heavy. 2016-02-22 22:30 GMT+01:00 Robby Findler: > That sounds like something that is fixable and it would be helpful to > have a file that exhibits particularly bad problems in order to make > sure it really is fixed. > > I tried opening drracket/private/unit (using "Open Require Path...") > and wasn't able to provoke the bad behavior. > > Do you (or Jens Axel) see it for that file? > > Robby > > On Mon, Feb 22, 2016 at 2:04 PM, 'John Clements' via Racket Users > wrote: > > I have several students who are observing truly impressive UI delays in > using DrRacket. Specifically, it often happens when they type a > double-quote (“) with “automatic parentheses” enabled, and after typing the > key, it will take more than 16 seconds for the screen to update and for the > quotes to appear. The delay seems to be shortened significantly by clicking > or hitting the arrow keys, and I suspect this may be related to OS X’s “app > nap” feature, that will shut down an application when it thinks that it > doesn’t need foreground processing. > > > > Any ideas? > > > > John > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to racket-users+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
That sounds like something that is fixable and it would be helpful to have a file that exhibits particularly bad problems in order to make sure it really is fixed. I tried opening drracket/private/unit (using "Open Require Path...") and wasn't able to provoke the bad behavior. Do you (or Jens Axel) see it for that file? Robby On Mon, Feb 22, 2016 at 2:04 PM, 'John Clements' via Racket Userswrote: > I have several students who are observing truly impressive UI delays in using > DrRacket. Specifically, it often happens when they type a double-quote (“) > with “automatic parentheses” enabled, and after typing the key, it will take > more than 16 seconds for the screen to update and for the quotes to appear. > The delay seems to be shortened significantly by clicking or hitting the > arrow keys, and I suspect this may be related to OS X’s “app nap” feature, > that will shut down an application when it thinks that it doesn’t need > foreground processing. > > Any ideas? > > John > > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
FWIW I may have seen the same thing. I am not using "automatic parentheses" though. I have seen it at occasion when typing a " in longish files (>1500 lines). This was on version 6.3 (or earlier?). 2016-02-22 21:04 GMT+01:00 'John Clements' via Racket Users < racket-users@googlegroups.com>: > I have several students who are observing truly impressive UI delays in > using DrRacket. Specifically, it often happens when they type a > double-quote (“) with “automatic parentheses” enabled, and after typing the > key, it will take more than 16 seconds for the screen to update and for the > quotes to appear. The delay seems to be shortened significantly by clicking > or hitting the arrow keys, and I suspect this may be related to OS X’s “app > nap” feature, that will shut down an application when it thinks that it > doesn’t need foreground processing. > > Any ideas? > > John > > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?
I have several students who are observing truly impressive UI delays in using DrRacket. Specifically, it often happens when they type a double-quote (“) with “automatic parentheses” enabled, and after typing the key, it will take more than 16 seconds for the screen to update and for the quotes to appear. The delay seems to be shortened significantly by clicking or hitting the arrow keys, and I suspect this may be related to OS X’s “app nap” feature, that will shut down an application when it thinks that it doesn’t need foreground processing. Any ideas? John -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.