Hi Sarah,
first of all, which jdk version are you using (please provide the
output of java -version)?
On Thu, Nov 07, 2002 at 04:36:0p -0700, Sarah Kreidler wrote:
> Hi all,
>
> I am currently working on a medical imaging application with the following
> hardware setup:
>
> Sun Blade 2000 workstation (running Solaris 8)
> 1 Xvr500 video card displaying on a color monitor (1280x1024)
> 1 DOME R5/PCI card displaying to 2 grayscale high resolution monitors
> (2048x2650)
Could you please describe your configuration a bit more?
So your setup actually has three screens, is that correct?
Or does the Dome board appear as one screen?
I assume you don't use Xinerama?
> We are running a swing application which uses JAI, and are encountering some
> repaint issues. We suspect that the clipping region is getting corrupted by
> drawing to multiple graphics configurations, but that's just a theory at
> present.
>
> Here some of the nasty behaviors we've encountered. Any
> insights/suggestions much appreciated!
>
> 1. Once an image is displayed on the high res monitors (via
> drawRenderedImage), ImageIcons no longer refresh properly on the main
> screen.
Is this reproducible with other Java applications, like the
demos shipped with the sdk, SwingSet2 and such?
Starting with j2sdk1.4, SwingSet2 allows to create frames
on each screen.
> 2. After an image displays on the high res monitors, if we try to display an
> image on the main monitor, the JVM crashes with the following info:
Could you please clarify this?
So what you're doing is
- render the image to the window on one screen
- render the same image to the window on another screen
That's when the application crashes
Is that right?
How do you create an image?
So you aren't moving windows from one scren to another (I don't
think it's possible with your setup, but just in case)
Would it be possible to create a standalone simplified testcase
which reproduces the problem? It'd be of great help.
Have you tried running your app with any of the debug flags?
Try these
1 set the following env. variable: NO_J2D_DGA=true
prior to running your app
2 or run your app with the following runtime parameter:
java -Dsun.java.pmoffscreen=false YourApp
3 or set J2D_PIXMAPS=server
4 or set J2D_PIXMAPS=shared
And see if any of this helps.
You can find more about java2d debug flags in this article:
http://java.sun.com/products/java-media/2D/perf_graphics.html
Thank you,
Dmitri
>
> An Unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x393B83E0
> Function=[Unknown. Nearest: Java_sun_java2d_loops_MaskFill_MaskFill+0x222EC]
> Library=/usr/j2sdk1.4.1/jre/lib/sparc/libawt.so
>
> Current Java thread:
> at sun.java2d.loops.Blit.Blit(Native Method)
> at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:658)
> at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:386)
> at
> sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:364)
> at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:66)
> at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:765)
> at sun.java2d.SunGraphics2D.copyImage(SunGraphics2D.java:2740)
> at
> sun.java2d.SunGraphics2D.drawTranslatedRenderedImage(SunGraphics2D.java:2538
> )
> at
> sun.java2d.SunGraphics2D.drawRenderedImage(SunGraphics2D.java:2379)
> at
> com.fischerimaging.image.view.ImageView.paintComponent(ImageView.java:675)
> at
> com.fischerimaging.image.view.AnnotatedImagePanel.paintComponent(AnnotatedIm
> agePanel.java:755)
> at javax.swing.JComponent.paint(JComponent.java:808)
> at javax.swing.JComponent.paintChildren(JComponent.java:647)
> - locked <4f574788> (a java.awt.Component$AWTTreeLock)
> at javax.swing.JComponent.paint(JComponent.java:817)
> at javax.swing.JComponent.paintChildren(JComponent.java:647)
> - locked <4f574788> (a java.awt.Component$AWTTreeLock)
> at
> javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4778)
> at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
> at javax.swing.JComponent._paintImmediately(JComponent.java:4668)
> at javax.swing.JComponent.paintImmediately(JComponent.java:4477)
> at
> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
> at
> javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQu
> eueUtilities.java:117)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
> at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
> va:197)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
> :150)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
>
> Dynamic libraries:
> 0x10000 java
> 0xff350000 /usr/lib/libthread.so.1
> 0xff390000 /usr/lib/libdl.so.1
> 0xff200000 /usr/lib/libc.so.1
> 0xff340000 /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
> 0xfe000000 /usr/j2sdk1.4.1/jre/lib/sparc/client/libjvm.so
> 0xff2e0000 /usr/lib/libCrun.so.1
> 0xff1e0000 /usr/lib/libsocket.so.1
> 0xff100000 /usr/lib/libnsl.so.1
> 0xff0d0000 /usr/lib/libm.so.1
> 0xff310000 /usr/lib/libw.so.1
> 0xff0b0000 /usr/lib/libmp.so.2
> 0xff080000 /usr/j2sdk1.4.1/jre/lib/sparc/native_threads/libhpi.so
> 0xff050000 /usr/j2sdk1.4.1/jre/lib/sparc/libverify.so
> 0xfe7c0000 /usr/j2sdk1.4.1/jre/lib/sparc/libjava.so
> 0xff030000 /usr/j2sdk1.4.1/jre/lib/sparc/libzip.so
> 0xfe6a0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
> 0x39380000 /usr/j2sdk1.4.1/jre/lib/sparc/libawt.so
> 0xfe440000 /usr/j2sdk1.4.1/jre/lib/sparc/libmlib_image.so
> 0xfdf90000 /usr/j2sdk1.4.1/jre/lib/sparc/motif21/libmawt.so
> 0x39100000 /usr/dt/lib/libXm.so.4
> 0xfc490000 /usr/openwin/lib/libXt.so.4
> 0xfc7d0000 /usr/openwin/lib/libXext.so.0
> 0xfdee0000 /usr/openwin/lib/libXtst.so.1
> 0x39000000 /usr/openwin/lib/libX11.so.4
> 0xfc430000 /usr/openwin/lib/libdps.so.5
> 0xfc410000 /usr/openwin/lib/libSM.so.6
> 0xfa3d0000 /usr/openwin/lib/libICE.so.6
> 0xfa390000 /usr/openwin/lib/libdga.so.1
> 0x38d80000 /usr/j2sdk1.4.1/jre/lib/sparc/libfontmanager.so
> 0xfa190000 /usr/openwin/lib/locale/common/xlibi18n.so.2
> 0x3a7e0000 /usr/openwin/lib/locale/iso8859-1/xomEuro.so.2
> 0x3a7c0000 /usr/lib//liblayout.so
> 0x3a6c0000 /usr/openwin/lib/locale/common/ximlocal.so.2
> 0x3a670000 /usr/j2sdk1.4.1/jre/lib/sparc/libcmm.so
> 0x3a620000 /usr/j2sdk1.4.1/jre/lib/sparc/libjpeg.so
> 0x39fd0000 /usr/j2sdk1.4.1/jre/lib/sparc/libnet.so
> 0x39ec0000 /usr/j2sdk1.4.1/jre/lib/sparc/libdcpr.so
> 0x39fb0000 /usr/j2sdk1.4.1/jre/lib/sparc/librmi.so
> 0x39f90000 /usr/j2sdk1.4.1/jre/lib/sparc/libnio.so
> 0x39de0000 /usr/lib/librt.so.1
> 0x39dc0000 /usr/lib/libaio.so.1
> 0x37000000 /usr/j2sdk1.4.1/jre/lib/sparc/libmlib_jai_vis.so
>
> Local Time = Wed Nov 6 09:59:12 2002
> Elapsed Time = 8946
> #
> # The exception above was detected in native code outside the VM
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
> #
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".