swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] crash when running: *** event raised for error: Inv


From: phillip paul lucs
Subject: Re: [Swarm-Support] crash when running: *** event raised for error: InvalidArgument *** function: nil_method()
Date: Tue, 5 Oct 2004 21:59:12 +1000 (EST)
User-agent: SquirrelMail/1.5.0

hi rick,

you were spot on. thank you.

phillip

>
>>From a quick scan of it:
>
> The key things to notice are
>
>> The message `drop' was sent to nil.
>
> and then a little farther down:
>
> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/internal.m:651
> #6  0x0804a89f in -[Forager die] (self=0x81c5890, _cmd=0x805dcb0) at
> Forager.m:273
> #7  0x0804a62e in -[Forager predatorAttack] (self=0x81c5890,
> _cmd=0x805dcc0) at Forager.m:243
>
> The program is sending a drop message to some object in the
> Forager.m die method -- at that line number (273), called from the
> predatorAttack method.
>
> So you need to look at Forager.m 273, and following the calls that get
> you there, figure out why the program is trying to send 'drop'
> to nil, i.e., trying to send it to  nil (0 address) stored
> in some variable, list, etc.
>
> In general, work from the top of such a trace to find the
> ultimate crash message (message sent to nil in this case), then
> work down and find references to things in your program
> (vs in the swarm libs).
>
> - r
>
> Rick Riolo                           address@hidden
> Center for the Study of Complex Systems (CSCS)
> 4477 Randall Lab
> University of Michigan         Ann Arbor MI 48109-1120
> Phone: 734 763 3323                  Fax: 734 763 9267
> http://cscs.umich.edu/~rlr
>
> On Tue, 5 Oct 2004, phillip paul lucs wrote:
>
>> Date: Tue, 5 Oct 2004 19:04:02 +1000 (EST)
>> From: phillip paul lucs <address@hidden>
>> Reply-To: Swarm Support <address@hidden>
>> To: address@hidden
>> Subject: [Swarm-Support] crash when running: *** event raised for error:
>>     InvalidArgument *** function: nil_method()
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> hi,
>>
>> i installed swarm as follows,
>>
>> http://www.philliplucs.net/docs/swarmhowto.html
>>
>> i then compiled the source code provided by Pepper and Smuts (99), The
>> evolution of cooperation in an ecological context: An agent-based model
>> as
>> follows:
>>
>> http://www.philliplucs.net/docs/peppersmuts99howto.html
>>
>> i'm finding when a forager is called by a predator the simulation
>> crashes.
>> i've used gdb to do a backtrace to try and make some sense of it.
>>
>> (gdb) run
>> Starting program: /usr/local/src/assign/eco
>>   numPlants = 256
>>   worldSize = 36
>> *** event raised for error: InvalidArgument
>> *** function: nil_method(), file:
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/internal.m,
>> line: 651
>> The message `drop' was sent to nil.
>> *** execution terminating due to error
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/Symbol.m:187
>> - -[Error(c) _raiseEvent:]
>>
>> Program received signal SIGABRT, Aborted.
>> 0x406e7741 in kill () from /lib/libc.so.6
>> (gdb) backtrace
>> #0  0x406e7741 in kill () from /lib/libc.so.6
>> #1  0x406e74c5 in raise () from /lib/libc.so.6
>> #2  0x406e8a08 in abort () from /lib/libc.so.6
>> #3  0x40280f0b in debugabort (
>>     filename=0x40212940
>> "/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/Symbol.m",
>>     lineno=187, function=0x40212b1a "-[Error(c) _raiseEvent:]")
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/misc/debugabort.c:9
>> #4  0x401f621d in -[Error(c) _raiseEvent:] (self=0x8099570,
>> _cmd=0x40222250, eventData=0x4020b5bf)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/Symbol.m:187
>> #5  0x401fd714 in nil_method (receiver=0x0, op=0x805dd60)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/internal.m:651
>> #6  0x0804a89f in -[Forager die] (self=0x81c5890, _cmd=0x805dcb0) at
>> Forager.m:273
>> #7  0x0804a62e in -[Forager predatorAttack] (self=0x81c5890,
>> _cmd=0x805dcc0) at Forager.m:243
>> #8  0x08049b14 in -[Forager step] (self=0x81c5890, _cmd=0x805ef00) at
>> Forager.m:60
>> #9  0x4001bddb in L10 () from /usr/lib/swarm/libswarm.so.0
>> #10 0x081c5890 in ?? ()
>> #11 0x0805ef00 in _OBJC_SELECTOR_TABLE ()
>> #12 0x081e4480 in ?? ()
>> #13 0x401b2e84 in __DTOR_END__ () from /usr/lib/swarm/libactivity.so.5
>> #14 0x00000002 in ?? ()
>> #15 0x081e5128 in ?? ()
>> #16 0xbffff568 in ?? ()
>> #17 0x40198a5a in -[ActionGroup(c) __performPlan:] (self=0x81f1fb0,
>> _cmd=0x401abf78)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/CompoundAction.m:176
>> #18 0x40209120 in objc_call (fa=0x81f1b00)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/_fcall.m:199
>> #19 0x401f8712 in -[FCall(c) _performCall] (self=0x81569c8,
>> _cmd=0x401abf90)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/defobj/FCall.m:749
>> #20 0x40197156 in -[ActionTo(c) __performAction::] (self=0x81564f8,
>> _cmd=0x401b0fb8, anActivity=0x8156450)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/Action.m:329
>> #21 0x401a164b in -[Activity(c) __run:] (self=0x8156450,
>> _cmd=0x401b0f90)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:257
>> #22 0x401a14fc in -[Activity(c) __run:] (self=0x8155a30,
>> _cmd=0x401b0f90)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:207
>> #23 0x401a14fc in -[Activity(c) __run:] (self=0x81f0b90,
>> _cmd=0x401b0f90)
>> - ---Type <return> to continue, or q <return> to quit---
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:207
>> #24 0x401a14fc in -[Activity(c) __run:] (self=0x81f0970,
>> _cmd=0x401b0f90)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:207
>> #25 0x401a14fc in -[Activity(c) __run:] (self=0x81f0e00,
>> _cmd=0x401b0f90)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:207
>> #26 0x401a14fc in -[Activity(c) __run:] (self=0x81ef908,
>> _cmd=0x401b0f18)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:207
>> #27 0x401a127c in -[Activity(c) _run] (self=0x81ef908, _cmd=0x4006a098)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/activity/XActivity.m:93
>> #28 0x4005b99a in -[ControlPanel startInActivity:] (self=0x81549d0,
>> _cmd=0x4006a8e0, activityID=0x81ef908)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/simtoolsgui/ControlPanel.m:94
>> #29 0x4005c444 in -[GUISwarm go] (self=0x814fb00, _cmd=0x805d7e8)
>>     at
>> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.140.20020514/src/simtoolsgui/GUISwarm.m:70
>> #30 0x0804976b in main (argc=1, argv=0x805d7b8) at main.m:32
>>
>> i'm lost to say the very least on fixing this.
>>
>> regards,
>> phillip lucs
>>
>>
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.5 (GNU/Linux)
>>
>> iD8DBQFBYmOBIz1XfOolnxURAv6lAJ99lxcLjnYxXg1LErJc/RVUJ0yoSwCcDLkI
>> VCRwKX3cXUIPsVhTJiczHII=
>> =oqDv
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> Support mailing list
>> address@hidden
>> http://www.swarm.org/mailman/listinfo/support
>>
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
>





reply via email to

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