MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: spurious $Aborted messages. How to track down cause?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79550] Re: [mg79524] Re: spurious $Aborted messages. How to track down cause?
  • From: Brett Champion <brettc at wolfram.com>
  • Date: Sun, 29 Jul 2007 00:08:25 -0400 (EDT)
  • References: <f8cgnd$44d$1@smc.vnet.net> <200707280939.FAA00055@smc.vnet.net>

On Jul 28, 2007, at 4:39 AM , Nasser Abbasi wrote:

> On Jul 27, 3:17 am, Nasser Abbasi <n... at 12000.org> wrote:
>> Hello;
>>
>> One of the most annoying things I find is that sometimes I get an
>> $Aborted message from the kernel during long computation, but no idea
>> why and from where. There are no error messages in the 'message'
>> window either.
>>
>> This happens in this context: I use Manipulate, and in my code (which
>> Manipulate calls), I do long computation, then once in a while I see
>> an $Aborted message show up where the plot should show up.  This
>> happens when I set the length of computation to be larger. when  
>> 'n' is
>> small, this does not seem to happen.
>>
>> I do not think this is a memory problem.  The code runs correctly,  
>> but
>> once 'n' becomes large I see this message pop up, and it happens at
>> different stages.
>>
>> Any idea what could be going on? Could Manipulate have some timing
>> limitation on how long the kernel is kept busy while the interface is
>> waiting for the result back?
>>
>> I can put link to my notebook which shows the problem.
>>
>> thanks,
>> Nasser
>
> I think I know now what is going on.
>
> When doing
>
> Manipulate[ process[n], {n,1,100,1} ]
>
> It seems that Manipulate has time constrained set up on how long
> process[] takes to complete.
>
> This does not seem to be documented anywhere. In the above, when I
> make n large, the function process[n] was taking too long to complete,
> (since n makes the computation being done by process[] larger) and
> Manipulate would $Aborted.
>
> When I changed the above to the following
>
> Manipulate[ TimeConstrained[ process[n], 500],  {n,1,100,1} ]
>
> Now I no longer see these $Aborted messages any more!
>
> It is just a theory, but I see no other reason to explain this.  I
> think this is something that should be documented somewhere?
>

There are comments about it at

http://reference.wolfram.com/mathematica/tutorial/ 
AdvancedManipulateFunctionality.html

in the "Dealing with Slow Evaluations" section.

Brett Champion
Wolfram Research



  • Prev by Date: Re: Unbearably slow plotting (v6)
  • Next by Date: FindRoot[] with mixed complex and real variables?
  • Previous by thread: Re: spurious $Aborted messages. How to track down cause?
  • Next by thread: Unbearably slow plotting (v6)