swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runtime error


From: Benedikt Stefansson
Subject: Re: Runtime error
Date: Fri, 23 Jan 1998 15:11:59 -0800

Walfredo,

>From the backtrace you sent out it seems that the schedule calls an object 
>called
Facilty, which then calls the first object of a collection. From these lines of 
the
bt you can see that the collection is empty, thus doesn't have a first  member 
and
this causes a runtime error:

_i_Collection_any__atOffset_(0x2429d8,0x1c6cec,0x0,0x401a0,0x0,0xef595624)
+ 58
_i_Collection_any__getFirst(0x2429d8,0x1bfe5c,0x40518,0x81b3c,0xc,0x242f70)
+ 24
_i_Facility__update(0x23b258,0x1c0128,0x0,0x0,0x28,0x242f70) + 54

You have to put some code into Facility that prompts the collection for number 
of
members [collection count] and doesn't do the getFirst call if it count is 0.

-Benedikt

Walfredo Cirne Filho wrote:

> Hi Everybody!
>
> I'm developing my first Swarm application. I got stuck in a runtime error
> that happens when my simulation is about to start. The message I got is:
>
> % laundry -batchmode
> *** event raised for error: OffsetOutOfRange
> *** function: indexAtOffset(), file: Collection.m, line: 71
> *** execution terminating due to error
> Abort - core dumped
>
> The stack is:
>
> % adb laundry
> core file = core -- program ``laundry'' on platform SUNW,Ultra-2
> SIGABRT: Abort
> $c
> kill(?) + 8
> __clz_tab(0x27,0x27,0x164a59,0x1649f0,0xefffeb44,0x1) + 102d0
> _i_Error_c__raiseEvent_(0x0,0x1c6cb4,0x0,0x1fd400,0x47,0x0) + d8
> _i_Collection_any__atOffset_(0x2429d8,0x1c6cec,0x0,0x401a0,0x0,0xef595624)
> + 58
> _i_Collection_any__getFirst(0x2429d8,0x1bfe5c,0x40518,0x81b3c,0xc,0x242f70)
> + 24
> _i_Facility__update(0x23b258,0x1c0128,0x0,0x0,0x28,0x242f70) + 54
> _i_Object_s__perform_(0x23b258,0x1c112c,0x1c0128,0x468e4,0x2d2bc,0x24e8c8)
> + 68
> _i_ActionTo_0___performAction__(0x242f70,0x1d9400,0x24ede0,0x2bac0,0x2d2bc,0x0)
> + 28
> _i_Activity_c___run_(0x24ede0,0x1d93e8,0x7f99c,0x2bcfc,0x0,0x0) + 210
> _i_Activity_c___run_(0x1d93e8,0x1d93e8,0x7f99c,0xefffee80,0x0,0x0) + 108
> _i_Activity_c___run_(0x1d93e8,0x1d93e8,0x7f99c,0x763e8,0x27,0x0) + 108
> _i_Activity_c___run_(0x1d93e8,0x1d93e8,0x7f99c,0x763e8,0x27,0x0) + 108
> _i_Activity_c___run_(0x1d93e8,0x1d93d0,0x7f99c,0x15a8b9,0x15a8b9,0x0) + 108
> _i_Activity_c__run(0x24d438,0x1c031c,0x80298,0xeffff0e0,0x1c02e4,0x27) + 40
> _i_LaundryBatchSwarm__go(0x23f620,0x1c03dc,0x29d54,0x29ca0,0x0,0x0) + 50
> main(0x2,0xeffff1e4,0xeffff1f0,0x1fd4e0,0x1,0x0) + 104
>
> Does it mean my schedule has problems? I basically adapted the Heatbugs'
> schedule. Actually, mine is even simpler.
>
> Thanks a lot,
>    Walfredo
>    {:-)
>
> -------------------------------------------------
> Walfredo Cirne Filho         address@hidden
> http://www-cse.ucsd.edu/users/walfredo
> Computer Science PhD Student
> UCSD - University of California San Diego
> -------------------------------------------------
>
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================



--
----------------
Benedikt Stefansson                 address@hidden
Department of Economics, UCLA       Fax. (310) 825-9528
Los Angeles, CA 90095-1477          Tel. (310) 825-4126



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]