swarm-support
[Top][All Lists]
Advanced

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

probe crash. Tips?


From: Paul E Johnson
Subject: probe crash. Tips?
Date: Fri, 11 Jan 2002 16:21:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011014

With swarm-2002-01-07, I see a crash when I try to probe into an object that is shown in a raster. It crashes when I try to right click on the superclass name in the probe display window. I have not seen this crash before with this project, the old right click and work your way up the class hierarchy used to work.

I'm getting the probe with the usual thing, like heatbugs
 [opinionRaster setButton: ButtonRight
                 Client: [modelSwarm getPositionGrid]
                 Message: M(makeProbeAtX:Y:)];

The right click on the superclass causes the segfault, backtrace below.
I can supply the code if anybody wants. The object being probed is of class Citizen1, a subclass of Citizen. The IVARS in Citizen.h are:



@interface Citizen: SwarmObject
{
  id myUniformInt;   //a Swarm uniform distribution
  LataneGrid *opinionGrid;  //subclass of Discrete2d
  MultiGrid2d *positionGrid;    //subclass of Grid2d
  BOOL movement;
  int bolsteredMinority;
  int changedOpinion;
  int x, y;
  int xlag, ylag;
  int citizenType;
  int age;      
  int worldXSize, worldYSize;   
  int periodsOpinion;
  int opinion;
  int opinionlag1;
  double pressureHere;
  double persuas;
  double support;
}


Here's the trace.

Program received signal SIGSEGV, Segmentation fault.
__libc_free (mem=0x7f750be) at malloc.c:3136
3136    malloc.c: No such file or directory.
        in malloc.c
(gdb) bt
#0  __libc_free (mem=0x7f750be) at malloc.c:3136
#1  0x402855cb in xfree (buf=0x7f750be)
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/misc/x
malloc.c:136
#2  0x401fcbf1 in _i_Zone_c__free_ (self=0x80987a8, _cmd=0x40224458,
    aBlock=0x81a1b64)
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/defobj
/Zone.m:404
#3 0x401f215b in _i_Object_s__getDisplayName (self=0x81a1b50, _cmd=0x40186918) at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/defobj
/DefObject.m:900
#4  0x4017993c in string_convert (type=fcall_type_object, p=0x81e682c,
    floatFormat=0x0, precision=6, stringReturnType=0x80d5b70,
    buf=0xbfffc010 "MultiGrid2d")
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/object
base/probing.m:65
#5  0x4017754f in _i_VarProbe__probeAsString_Buffer_withFullPrecision_ (
    self=0x8375838, _cmd=0x40186348, anObject=0x81e682c,
    buf=0xbfffc010 "MultiGrid2d", fullPrecisionFlag=0)
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/object
base/VarProbe.m:813
#6  0x40176b48 in _i_VarProbe__probeAsString_Buffer_ (self=0x8375838,
    _cmd=0x4006eb60, anObject=0x81e6818, buf=0xbfffc010 "MultiGrid2d")
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/object
base/VarProbe.m:604
#7 0x40062ca4 in _i_VarProbeWidget__update (self=0x837d938, _cmd=0x4006eb18) at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/simtoo
lsgui/VarProbeWidget.m:115
#8 0x40062a4e in _i_VarProbeWidget__createEnd (self=0x837d938, _cmd=0x4006a6b0) at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/simtoo
lsgui/VarProbeWidget.m:74
#9  0x4005b02d in _i_ClassDisplayWidget__createEnd (self=0x835fe70,
    _cmd=0x4006af60)
at /home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.127.20020107/src/simtoo
lsgui/ClassDisplayWidget.m:167

--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700


                 ==================================
  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]