[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] crash at odd timestep
From: |
paul box |
Subject: |
Re: [Swarm-Support] crash at odd timestep |
Date: |
Fri, 8 Feb 2008 07:49:33 +0930 |
Hi Corinne
I get that message when I'm referencing a member of a list that
doesn't exist: for example member 39 of a 38 member list.
To find where that's happening, the best way may be to use gdb. If
you've never used it before, you can get a simple idea of your problem
by looking at a backtrace:
at your prompt, assuming your application is called "bug":
> gdb bug
.... you get the crash error, 'offset out of range' etc.
> bt
... a bunch of lines comes up; two or three lines down, you will see
references to various swarm and objc objects, and a couple of lines
below that, you will see the call to the object that didn't exist.
You will recognize it because it will be a call of something that you
wrote in your program. That will be the instruction that's
responsible for the crash.
If you need a more detailed example, I'm happy to post one, but this
is the quick answer.
Paul
On Feb 8, 2008 7:31 AM, Corinne Coen <address@hidden> wrote:
>
>
>
>
> Dear Swarm folk
>
>
>
> I am an unsophisticated user of swarm. I have a model I built several years
> ago (it uses swarm-2.2). Although I recall that it worked fine when I built
> it, now, when I run it in BatchSwarm mode, it crashes at timestep=55. When
> stopT is equal to any number from 1 through 55, it stops at the indicated
> timestep. When stopT is set at 56 or above it crashes after timestep 55.
> In contrast, in GUI it also crashes but at timestep 166. Again with stopT
> set anywhere from 1-165, it stops at the desired step. With stopT=166 or
> higher, it crashes. I get the following error message:
>
>
>
> *** event raised for error: OffsetOutOfRange
>
> *** function: indexAtOffset(), file:
> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/src/collections/Collection.m,
> line: 119
>
> *** execution terminating due to error
>
> /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/src/defobj/Symbol.m:187
> -[Error(c) _raiseEvent:] Aborted
>
>
>
> Can you help me figure out the cause of the crashes?
>
> Best,
>
> Corinne
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
>
>
--
//////////////////////////
// Paul Box
// Alice Springs, NT Australia
//