• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infinite loop between <choice> start_* attributes and mixed state aborted.


  • Subject: Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
  • From: Peter Bierman <email@hidden>
  • Date: Wed, 20 Sep 2006 14:11:31 -0700

Any suggestions for how I could phrase the warning more clearly?

-pmb


At 1:46 PM -0700 9/20/06, Sean P. Kane wrote:
I had vaguely come to that conclusion but your explanation definitely made
it all that clearer. I have re-arranged my packages in the distribution
package to allow me to make the necessary checks I need. Hopefully this will
work out.

Thanks,
Sean

--
Sean P. Kane
Macintosh Client Engineering Support | Nike, Inc.
Affiliated Computer Services | Beaverton, Oregon


From: Peter Bierman <email@hidden>
Date: Wed, 20 Sep 2006 11:41:39 -0700
To: "Kane, Sean (ACS-ETW)" <email@hidden>
Cc: <email@hidden>
Subject: Re: Infinite loop between <choice> start_* attributes and mixed state
aborted.


At 10:33 AM -0700 9/20/06, Kane, Sean (ACS-ETW) wrote:
 I am getting these errors in the install.log on a distribution
 package that I am trying to create:

 Package Authoring Error: Infinite loop between <choice> start_*
 attributes and mixed state aborted.

 They don't seem to affect anything, but I don't really understand
 what is causing them. I'm assuming my logic somewhere is broken. Can
 anyone out there explain these to me?


 Sure!

 The installer is evaluating the JavaScript code that you've attached
 to your various <choice> elements.

 The installer is also looking at the selected state of nested
 choices, and using those values to determine if a parent choice
 should show an "X" or a "-".

 If you override the 'selected' attribute of a choice that has other
 choices as children, you can get into a situation where you turn the
 parent 'off', but turn a child 'on', and then the installer can't
 figure out what state the parent should actually be in.

 Since the attribute engine works by evaluating choice attributes in a
 loop until they stop changing, this situation creates an infinite
 loop, which the installer detects and logs.


The solution is simple. Don't attach dynamic scripts to both parents and children choices. One or the other should suffice. Usually you want to control just the children and let the installer figure out the mixed state of the parents on it's own.

 -pmb


_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
      • From: "Sean P. Kane" <email@hidden>
References: 
 >Re: Infinite loop between <choice> start_* attributes and mixed state aborted. (From: "Sean P. Kane" <email@hidden>)

  • Prev by Date: Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
  • Next by Date: Testing for downgrade in Distribution Scripts
  • Previous by thread: Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
  • Next by thread: Re: Infinite loop between <choice> start_* attributes and mixed state aborted.
  • Index(es):
    • Date
    • Thread