[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with EZBin in swarm-1.3.1 under linux using tcl/tk8.0p2,blt2.4f
From: |
Rick Riolo |
Subject: |
problem with EZBin in swarm-1.3.1 under linux using tcl/tk8.0p2,blt2.4f |
Date: |
Fri, 1 Jan 1999 11:16:32 -0500 (EST) |
I have found a problem, perhaps a bug, with EZBin crashing in an app made
with swarm-1.3.1, under Redhat 5.2, but using the tcl/tk8.0p2
and blt-2.4f. The crash happens as follows:
-----
address@hidden UM-HeatbugsPlus]$ ./heatbugsPlus
about to do unhappyBin createEnd...
(Tcl -eval:) unknown color name ""
(processing "-foreground" option)
invoked from within
".w0x81d26d8.w0x81d26a0 element configure 13 -foreground """
while evaluating: .w0x81d26d8.w0x81d26a0 element configure 13 -foreground ""
Segmentation fault (core dumped)
------
>From the following fragment of source:
------
// Create a EZBin widget for display of distribution of unhappiness
unhappyBin = [EZBin createBegin: globalZone];
[unhappyBin setGraphics: 1]; [unhappyBin setFileOutput: 0];
[unhappyBin setTitle: "unHappinessDistribution"];
SET_WINDOW_GEOMETRY_RECORD_NAME ( unhappyBin );
[unhappyBin setAxisLabelsX: "unHappiness" Y: "Count of Bugs"];
[unhappyBin setBinNum: numUnhappyBins];
[unhappyBin setLowerBound: 0.0];
[unhappyBin setUpperBound: 1.0];
[unhappyBin setCollection: [heatbugModelSwarm getHeatbugList]];
[unhappyBin setProbedSelector: M(getUnhappiness)];
fprintf(stderr,"about to do unhappyBin createEnd...\n");
unhappyBin = [unhappyBin createEnd];
fprintf(stderr,"Done with unhappyBin createEnd...\n");
-----------
When I added this line:
[unhappyBin setMonoColorBars: 1];
before that createEnd, it works fine.
Just fyi, a bt shows:
--------
Program received signal SIGSEGV, Segmentation fault.
0x40350b1e in _IO_vfprintf (s=0xbfff76b8,
format=0x40069000 "%s element configure %s -foreground \"%s\"",
ap=0xbffff750)
at vfprintf.c:1080
vfprintf.c:1080: No such file or directory.
(gdb) bt
#0 0x40350b1e in _IO_vfprintf (s=0xbfff76b8,
format=0x40069000 "%s element configure %s -foreground \"%s\"",
ap=0xbffff750)
at vfprintf.c:1080
#1 0x4035b083 in _IO_vsprintf (
string=0xbfff7730 ".w0x81d6740.w0x81d6d20 element configure 14 -foreground
\"\"",
format=0x40069000 "%s element configure %s -foreground \"%s\"",
args=0xbffff744)
at iovsprintf.c:48
#2 0x40079aa2 in _i_TclInterp__eval_ ()
#3 0x4005b5f1 in _i_Histogram__setColors_ ()
#4 0x40017f6a in _i_EZBin__createEnd ()
#5 0x805190c in _i_HeatbugObserverSwarm__buildObjectsArgC_ArgV_ ()
#6 0x804f7d0 in main ()
--------
Note also that this same app works fine *without* the setMonoColorBars: 1
when compiled under HPUX 10.20, using tcl8.0p2, tk8.0p2 and blt-2.4.
- r
Rick Riolo address@hidden
Program for Study of Complex Systems (PSCS)
4477 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 734 763 3323 Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
==================================
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.
- problem with EZBin in swarm-1.3.1 under linux using tcl/tk8.0p2,blt2.4f,
Rick Riolo <=