This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error with Java program with XFree


OK,
I try with the 4.2.0-6 package.
It works fine with -depth 8 (256 colors). Strangely, the colors
behavior is ok (my icons and X manager (CDE) are ok).
At least I can configure all of our Xfree to run in the mode
fullscreen and -depth 8.
I hope we will never need more than 8.
However, if we do need more than 8 for one particular program,
we can of course have two start scripts, one with -depth 8, another
one without any depth specified.

With a depth of 16, I get the followin error (this time the error
explicitely
says that 16-bit is unsupported, why ?):

Exception in thread "main" java.lang.NullPointerException:
NullPointerException
	at sun.awt.motif.MFramePeer.pSetIconImage(Native Method)
	at sun.awt.motif.MFramePeer.setIconImage(MFramePeer.java:217)
	at java.awt.Frame.setIconImage(Frame.java:342)
	at devmgr.dmv.MainScreen.main(MainScreen.java:386)
Exception occurred during event dispatching:
java.lang.InternalError: Unsupported 16-bit depth

	at sun.awt.motif.X11Graphics.X11LockViewResources(Native
Method)
	at sun.awt.motif.X11Graphics.getImageType(X11Graphics.java:885)

	at
sun.java2d.loops.LockableRaster.<init>(LockableRaster.java:102)
	at
	at
	at
sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2024)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1616)
	at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:632)
	at javax.swing.JComponent.paint(JComponent.java:629)
	at java.awt.Container.paint(Container.java:778)
	at
sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:277)
	at java.awt.Component.dispatchEventImpl(Component.java:2456)
	at java.awt.Container.dispatchEventImpl(Container.java:1040)
	at java.awt.Window.dispatchEventImpl(Window.java:764)
	at java.awt.Component.dispatchEvent(Component.java:2316)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:366)
	at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)

	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

And with the default (32), it doesn't work (same error as before).

For the number of users, we are a governemental administration
(french tax administration, so quite good for all french people
if we can cut down the price for our softwares).
We will probably be at least around 100 administrators to use XFree.
And perhaps more (around 1 000 users more, but not administrators).

The very last thing I need to do is something like the Ex...d manager
that
allows us to have a window with our usual servers to address.
I make it for the moment using a shell script.
I saw someone (Tim Thomson) that has done a graphical interface of such

tool ("a delphi app, which runs the XWin binary
with some options you can set on a preferences screen").
If someone gets the source or has something relative, of course
I am interested.

Frederic

================
Frederic,

> Does someone know how to fix it ?
> It looks like this is only a problem of XFree with a color of more
than
> 8 bit,
> but I don't understand why ?

Your problem may be caused by the RANDR and LAYER extensions that were
recently turned off (Server Test Series - Test 59) because they caused
KDE 3.0
icons with alpha channels to fail to display.

Please try Test 59, which can be installed via Cygwin's setup.exe by
selecting
the XFree86-xserv 4.2.0-6 package.  For more instructions and the
release
announcement, see:
http://cygwin.com/ml/cygwin-xfree-announce/2002-06/msg00008.html

Please reply to the mailing list with your results.  I'd be interested
to know
if this fixes your problem or not.


> This is for me the very last (I hope) thing that prevents me to
> change all of our Exc..d with Cygwin/Xfree (gov company).

On a side note: I wish that we had some idea how many users we have out
there.
 From what I've seen on the web there seem to be a lot of system
administrators that are installing Cygwin/XFree86 as a gateway to UNIX
or
Linux machines.  These installations might be 10 to 100 users, but we
have no
way of knowing because these users have no idea that they are using an
open
source project, so they never email the mailing list for support...

Regardless, I love seeing Cygwin/XFree86 saving governments or
government
contractors money.  We're putting money back in the peoples' pockets :)



Good luck,

Harold
sun.java2d.loops.RasterOutputManager$RenderImageCachedState.getDstLR(Ra
sterOutputManager.java:395)
sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.ja
va:506)


____________________________________________________________________
- http://www.WebMailSPro.com - >> 
VOTRE service d'email sans pub avec VOTRE nom de domaine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]