Re: if, idle, stay open
Re: if, idle, stay open
- Subject: Re: if, idle, stay open
- From: Phi Sanders <email@hidden>
- Date: Fri, 5 Jan 2001 20:00:38 -0500
SemiColon,
That's very weird. My scripts use both "if-then" & "quit" inside the
"on idle()" handler so it would seem that either the two dozen or so
various Macs I'm actively scripting are impervious to this threat...
Or there is really something besides Plain Vanilla AppleScript causing
the problems reported.
I'm working with a pretty wide range of equipment : web servers, dns servers,
email servers, administrative machines, and regular workstations.
The only crash I've seen even close to this described phenomena, was when
a scripted sequence of file duplications leaked memory into the Finder
and crashed the whole machine
~150 folders containing ~75 files each <html & gif> : ~150MB total
Too many list copies I think, but I haven't re-tested yet.
I'll disconnect my cable modem @ home this weekend, and test with the
RA script you sent. I need to find out if there's an AppleScript issue
I've been lucky to escape before I add some further automation to our
system. It'd be real nasty to bring down the server on a weekend I was
out of town...
~Phi
--
Phi Sanders
"Phee, Phi, Pho, Phum..."
"And now, back to your regularly scheduled reality."
On 1/5/01, SemiColon {email@hidden} said the following :
>
At 4:08 PM -0500 1/5/01, Phi Sanders wrote:
>
>I REALLY need some empirical evidence of this, as ALL of my scripts
>
>with idle handlers have if statements and I've had exactly 1 crash
>
>that wasn't due to my own bad code.
>
>
>
>(I add tasks to a list and then idle through that list in order
>
>to allow the server to continue working while the script progresses)
>
>
>
>My experience makes me want to decry this as a rumor, but it's so
>
>persistently brought up I feel compelled to give it some credence...
>
>
>
>Is there a test case script out there that succintly demonstrates this
crash?
>
>
>
>Is there a timeframe over which these suppossed crashes do not occur?
>
>(As I'm not seeing it in the 2-12 hours runs I use...)
>
>
I only had one script with a idle handler (and an if) when I upgraded
>
8.6 to 9.04. I had crashing problems for a few weeks until I read
>
here about this bug. Removing that applet from use markedly reduced
>
the number of crashes I was having.
>
>
The handlers only use was to give me a few moments to decide if I
>
wanted to stay on line after getting mail. I would often quit the stay
>
open applet to remain on line - quitting is one of the actions that
>
reportedly invokes this crashing genie.
>
>
on idle
>
set RAStatus to RA status
>
if seconds connected of RAStatus is greater than 185 then
>
RA disconnect
>
tell me
>
activate
>
quit
>
end tell
>
end if
>
return 10
>
end idle
>
>
Crashes occurred usually within 1 hr. I dislike crashing, so I really
>
haven't done any further testing.
>
>
;