Re: Problem with 2d display rendering on Mac

Hi Ken,

You've found a subtle bug in VisAD.  It looks like the new
OS X JVM has an implementation of the defaultRGB color map
that doesn't use integers.  I have modified VisAD to watch
out for this possibility.  Thank you for finding this.

The fix is in:

Please use it to replace the
file in your visad directory, and recompile, assuming that
you are compiling VisAD from source.

Please let me know if this does not fix your problem.
I'd also be interested to know if Test61 (volume
rendering) works on your OS X system, with the fixed


yetzer wrote:
> I have installed visad on a G3 Macintosh powerbook, running Mac OS X
> public beta.  I have a routine similiar to Test39 that displays some
> data using the 2D display, but runs as an applet.   When I run the
> routine using appletviewer the window pops up, the color widget shows up
> at the top and the white outline around the image shows up along with
> the axes (and the axes labels).  However, the Image itself does not show
> up and the following error is printed out in the terminal:
>           java.lang.ClassCastException:
> java.awt.image.MacGWorldDataBuffer
>             at
> visad.ShadowFunctionOrSetType.createImage(
>             at
> visad.ShadowFunctionOrSetType.doTransform(
>             at
> visad.java2d.ShadowFunctionOrSetTypeJ2D.doTransform(
>             at
> visad.java2d.DefaultRendererJ2D.doTransform(
>             at visad.java2d.RendererJ2D.doAction(
>             at visad.DisplayImpl.doAction(
>             at
> visad.java2d.DisplayImplJ2D.doAction(
>             at
>             at
> visad.util.ThreadPool$
> Could you possibly shed some light on why this error ir occurring and
> how I might fix it.  (P.S.  this routine works fine on a linux-based
> PC).   Thank you
> -Ken

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: