Bug #6834


kepler data can icon displayed incorrectly

Added by Daniel Crawl over 8 years ago. Updated over 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Spent time:


The "data can" icon used by DataTurbine and several other Kepler actors is displayed incorrectly. This appears to have been started with Ptolemy r73168 (r73163-73167 do not compile).


DataTurbineIconIncorrect_2015-09-09.png (10.2 KB) DataTurbineIconIncorrect_2015-09-09.png Incorrect DataTurbine Icon from 2015-09-09. The top and bottom are offset. Christopher Brooks, 09/09/2015 04:13 PM
DataTurbineIconCorrect_2015-08-17.png (10.4 KB) DataTurbineIconCorrect_2015-08-17.png Correct DataTurbine Icon from 2015-08-17. Christopher Brooks, 09/09/2015 04:14 PM
DataTurbineIncorrect_r71368.png (14.6 KB) DataTurbineIncorrect_r71368.png Incorrect DataTurbine Icon from r73168. Christopher Brooks, 09/09/2015 04:35 PM
Actions #1

Updated by Christopher Brooks over 8 years ago

To replicate this, build Kepler:

mkdir kepler.modules
cd kepler.modules
svn co
cd build-area
ant change-to -Dsuite=kepler
ant run

Then search for DataTurbine and drag the actor in. The icon is incorrect, the top and bottom are offset.

The problem does not occur in ptII r73162. To replicate:

cd ../ptolemy/src
svn update -r 73162
cd ../../gui/src
svn update -r '{2015-08-17}'
cd ../../build
ant clean

Then search for the DataTurbine icon and drag it in. The top and bottom are correct.

If I update to r73168, the the bottom of the cylinder is offset incorrectly. The error is different than what is at the head.

cd ../ptolemy/src
svn update -r 73168
cd ../../build-run
ant clean
ant run

Below are the changes betwee 73162 and 73168

2015-08-17 20:03 cxh

  • [r73168] /trunk/ptolemy/vergil/icon/ Summary:
    setRotation() angle arg must be final to avoid Java 1.7: "error:
    local variable angle is accessed from within inner class; needs
    to be declared final".

2015-08-17 18:28 eal

  • [r73167] /trunk/lib/diva.jar: Updated jar with fix to prevent
    double application of rotation

2015-08-17 18:13 eal

  • [r73166]
    Demo tuning

2015-08-17 18:13 eal

  • [r73165] /trunk/diva/canvas/toolbox/,
    /trunk/ptolemy/vergil/icon/ Fixed double
    application of rotation

2015-08-17 14:59 cxh

  • [r73164] /trunk/lib/diva.jar: Update diva.jar after r73163:
    Support rotation of basic figures.

2015-08-17 12:56 eal

  • [r73163] /trunk/diva/canvas/toolbox/,
    Support rotation of basic figures.

2015-08-17 12:56 eal

  • [r73162] /trunk/ptolemy/actor/lib/jjs/ Fixed bug
    where had been assuming StringParameter, but are now using string
    mode in an ordinary Parameter
Actions #2

Updated by Christopher Brooks over 8 years ago

  • % Done changed from 0 to 40

Edward had a look and wrote:

Ok, I finally got it so I could replicate this.
I've cc'd Daniel Crawl, because I'm not sure how many icons need to be fixed.

In, there are two lines that are incorrect:




These were resulting in a correct icon because of a bug in diva, which I have fixed.
So now the icons are incorrect. But the above code is incorrect.
If you look at the way the icon is constructed, the above lines should be:




which now results in a correct icon.

I'm amazed that the bug in diva went unnoticed for so long...

Actions #3

Updated by Daniel Crawl over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 40 to 100

Thanks, Edward. I updated and didn't find any other icons with this problem.


Also available in: Atom PDF