Bug 27118 - SkinnedButton colormap problem on the Nokia 770/Maemo
Summary: SkinnedButton colormap problem on the Nokia 770/Maemo
Status: NEW
Alias: None
Product: classpath
Classification: Unclassified
Component: awt (show other bugs)
Version: 0.90
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-11 13:33 UTC by philippe.laporte
Modified: 2006-07-26 02:32 UTC (History)
6 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-04-11 15:18:41


Attachments
reproducer (8.88 KB, application/octet-stream)
2006-04-11 13:33 UTC, philippe.laporte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description philippe.laporte 2006-04-11 13:33:04 UTC
With:
- jamvm-1.4.2 
- classpath-0.91-pre from http://builder.classpath.org/dist/classpath-latest.tar.gz on the 4th of April

all built from source

-in x86 target in scratchbox with the Maemo SDK rootstrap (Maemo_Dev_Platform_RS_v1.1_i386) and Xephyr from that package.

Do
1- start xephyr outside scratchbox
2- af-sb-init.sh start
3- run-standalone.sh jamvm klurfe.Main

The attached reproducer gets:

jamvm[20290]: GLIB WARNING ** Gdk - Using Xft rendering requires the drawable
argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
java.lang.InternalError: Gdk: Using Xft rendering requires the drawable
argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled (Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage (GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:230)
   at klurfe.SkinnedButton.paint (SkinnedButton.java:131)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent
(GtkComponentPeer.java:325)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl (Component.java:4968)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.EventQueue.dispatchEvent (EventQueue.java:474)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
jamvm[20290]: GLIB WARNING ** Gdk - gdkpixbuf-drawable.c:1249: Source drawable
has no colormap; either pass in a colormap, or set the colormap on the drawable
with gdk_drawable_set_colormap()
java.lang.InternalError: Gdk: gdkpixbuf-drawable.c:1249: Source drawable has no
colormap; either pass in a colormap, or set the colormap on the drawable with
gdk_drawable_set_colormap()
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled (Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage (GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:230)
   at klurfe.SkinnedButton.paint (SkinnedButton.java:131)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent
(GtkComponentPeer.java:325)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl (Component.java:4968)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.EventQueue.dispatchEvent (EventQueue.java:474)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)

our proprietary example gets:

 jamvm[15309]: GLIB WARNING ** Gdk - Using Xft rendering requires the drawable
argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
java.lang.InternalError: Gdk: Using Xft rendering requires the drawable
argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled (Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage (GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:230)
   at com.ubiserv.service.appmanager.SkinnedButton.paint
(SkinnedButton.java:302)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent
(GtkComponentPeer.java:325)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl (Component.java:4968)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.EventQueue.dispatchEvent (EventQueue.java:474)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
jamvm[15309]: GLIB WARNING ** Gdk - gdkpixbuf-drawable.c:1249: Source drawable
has no colormap; either pass in a colormap, or set the colormap on the drawable
with gdk_drawable_set_colormap()
java.lang.InternalError: Gdk: gdkpixbuf-drawable.c:1249: Source drawable has no
colormap; either pass in a colormap, or set the colormap on the drawable with
gdk_drawable_set_colormap()
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled (Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage (GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:230)
   at com.ubiserv.service.appmanager.SkinnedButton.paint
(SkinnedButton.java:302)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent
(GtkComponentPeer.java:325)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl (Component.java:4968)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.EventQueue.dispatchEvent (EventQueue.java:474)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)


and the frame goes away, whereas in the reproducer it stays.
Comment 1 philippe.laporte 2006-04-11 13:33:41 UTC
Created attachment 11242 [details]
reproducer
Comment 2 Lillian Angel 2006-04-20 16:46:35 UTC
Unfortunately, I am having trouble running this command:
run-standalone.sh jamvm klurfe.Main

It is complaining about jamvm. Any tips?
Comment 3 philippe.laporte 2006-04-21 08:52:03 UTC
What's the complaint? Had no complaint...

In the worst case you might try with SableVM, or gij?
Comment 4 Lillian Angel 2006-04-21 14:08:37 UTC
I can't get scratchbox reinstalled. After trying to reinstall it, I had major problems with my computer (had to reinstall FC5). I am going to try to fix this without using scratchbox.
Comment 5 philippe.laporte 2006-04-21 15:02:32 UTC
That's radical :-) What were your problems? Will you report them to the scratchbox list? anything to do with 
echo 0 > /proc/sys/kernel/vdso
? I'm just shooting in the dark...

Comment 6 Lillian Angel 2006-04-21 15:03:53 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

no. it causes problems because it is installing in the root dir. and
creating the user changes a lot of settings on my computer.

can you reproduce this without scratchbox?

On Fri, 2006-04-21 at 15:02 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #5 from philippe dot laporte at gatespacetelematics dot com  2006-04-21 15:02 -------
> That's radical :-) What were your problems? Will you report them to the
> scratchbox list? anything to do with 
> echo 0 > /proc/sys/kernel/vdso
> ? I'm just shooting in the dark...
> 
> 

Comment 7 Lillian Angel 2006-04-21 15:11:50 UTC
I cannot reproduce this with
Xnest -ac :1 & DISPLAY=:1 matchbox-window-manager & DISPLAY=:1 jamvm klurfe.Main
In 256 color mode. 

Maybe this is no longer a bug. Can you retest this with CVS HEAD?
Comment 8 philippe.laporte 2006-04-21 15:23:15 UTC
Granted, scratchbox requires some time getting used to. I'll check it out with CVS HEAD on Monday.
Comment 9 Lillian Angel 2006-04-21 15:36:36 UTC
I have looked into it a bit more. It is possible that this is a gtk bug.
Let me know what happens when you re-test it.
Comment 10 philippe.laporte 2006-04-25 13:03:30 UTC
I confirm problem is still there with the latest CVS of Classpath. I can give clear and fail-proof  :-) instructions for scratchbox etc set up if needed.
Comment 11 Lillian Angel 2006-04-25 13:17:12 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

sure, but is there any way to reproduce this bug without scratchbox? Can
I install scratchbox without putting anything in /?

I still believe this may be a gtk issue. There has been similar problems
reported in the past in gtk's bugzilla. I can look into this further if
you give me more information about the problem.



On Tue, 2006-04-25 at 13:03 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #10 from philippe dot laporte at gatespacetelematics dot com  2006-04-25 13:03 -------
> I confirm problem is still there with the latest CVS of Classpath. I can give
> clear and fail-proof  :-) instructions for scratchbox etc set up if needed.
> 
> 

Comment 12 philippe.laporte 2006-04-25 14:20:20 UTC
Are you confident enough to follow the GTK problem hypothesis? Do you or someone close know their way inside GTK? 

Do you think this is related to the issue recently discussed on the Kaffe list?

I'm not a scratchbox expert, for some reason they only mention installing in /.

I'll try out stuff and report later. In theory, scratchbox is not needed, especially for x86 development, but setting up the proper environment may be lengthy.

It would be nice if we could isolate this as a GTK bug
Comment 13 Lillian Angel 2006-04-25 14:22:31 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

I am confident enough to look if it is a gtk issue. I need more
information on where the bug is occurring in the native code. Are you
able to determine that? It would be a lot of help... or else I will need
to work on getting scratchbox set up before looking into that.



On Tue, 2006-04-25 at 14:20 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #12 from philippe dot laporte at gatespacetelematics dot com  2006-04-25 14:20 -------
> Are you confident enough to follow the GTK problem hypothesis? Do you or
> someone close know their way inside GTK? 
> 
> Do you think this is related to the issue recently discussed on the Kaffe list?
> 
> I'm not a scratchbox expert, for some reason they only mention installing in /.
> 
> I'll try out stuff and report later. In theory, scratchbox is not needed,
> especially for x86 development, but setting up the proper environment may be
> lengthy.
> 
> It would be nice if we could isolate this as a GTK bug
> 
> 

Comment 14 philippe.laporte 2006-04-25 15:49:35 UTC
it seems not possible to install scratchbox elsewhere than /

If you follow the instructions at http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Installation

and use the same scratchbox version etc, it should be fine

Note for bugzilla: there is activity going on in seperate emails.
Comment 15 Lillian Angel 2006-04-25 15:52:07 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo


Let me know what you find out when running the demo, and if you figure
out where this error is occuring in the native code.
I  will look into gtk more.

On Tue, 2006-04-25 at 15:49 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #14 from philippe dot laporte at gatespacetelematics dot com  2006-04-25 15:49 -------
> it seems not possible to install scratchbox elsewhere than /
> 
> If you follow the instructions at
> http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Installation
> 
> and use the same scratchbox version etc, it should be fine
> 
> Note for bugzilla: there is activity going on in seperate emails.
> 
> 

Comment 16 philippe.laporte 2006-04-26 14:23:12 UTC
I can reporduce the Swing Demo problem with JamVM and classpath-latest from Monday
Comment 17 philippe.laporte 2006-04-26 14:25:29 UTC
some traces:

 run-standalone.sh jamvm gnu.classpath.examples.swing.Demo
jamvm[21719]: GLIB WARNING ** Gdk - Using Xft rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
java.lang.InternalError: Gdk: Using Xft rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled(Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage(GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:230)
   at javax.swing.ImageIcon.paintIcon(ImageIcon.java:417)
   at javax.swing.plaf.basic.BasicButtonUI.paintIcon(BasicButtonUI.java:390)
   at javax.swing.plaf.basic.BasicButtonUI.paint(BasicButtonUI.java:346)
   at javax.swing.plaf.metal.MetalButtonUI.update(MetalButtonUI.java:248)
   at javax.swing.JComponent.paintComponent(JComponent.java:2092)
   at javax.swing.JComponent.paint(JComponent.java:1763)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2183)
   at javax.swing.JComponent.paintImmediately2(JComponent.java:2158)
   at javax.swing.JComponent.paintImmediately(JComponent.java:2144)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:590)
   at javax.swing.RepaintManager$RepaintWorker.run(RepaintManager.java:125)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:465)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:75)
jamvm[21719]: GLIB WARNING ** Gdk - gdkpixbuf-drawable.c:1249: Source drawable has no colormap; either pass in a colormap, or set the colormap on the drawable with gdk_drawable_set_colormap()
java.lang.InternalError: Gdk: gdkpixbuf-drawable.c:1249: Source drawable has no colormap; either pass in a colormap, or set the colormap on the drawable with gdk_drawable_set_colormap()
   at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled(Native Method)
   at gnu.java.awt.peer.gtk.GtkImage.drawImage(GtkImage.java:625)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:239)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:223)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawImage(GdkGraphics.java:230)
   at javax.swing.ImageIcon.paintIcon(ImageIcon.java:417)
   at javax.swing.plaf.basic.BasicButtonUI.paintIcon(BasicButtonUI.java:390)
   at javax.swing.plaf.basic.BasicButtonUI.paint(BasicButtonUI.java:346)
   at javax.swing.plaf.metal.MetalButtonUI.update(MetalButtonUI.java:248)
   at javax.swing.JComponent.paintComponent(JComponent.java:2092)
 at javax.swing.JComponent.paint(JComponent.java:1763)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2183)
   at javax.swing.JComponent.paintImmediately2(JComponent.java:2158)
   at javax.swing.JComponent.paintImmediately(JComponent.java:2144)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:590)
   at javax.swing.RepaintManager$RepaintWorker.run(RepaintManager.java:125)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:465)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:75)
jamvm[21719]: GLIB WARNING ** Gdk - Using Xft rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
java.lang.InternalError: Gdk: Using Xft rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
   at gnu.java.awt.peer.gtk.GdkGraphics.drawString(Native Method)
   at gnu.java.awt.peer.gtk.GdkGraphics.drawString(GdkGraphics.java:304)
   at javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt(BasicGraphicsUtils.java:469)
   at javax.swing.plaf.basic.BasicMenuItemUI.paintText(BasicMenuItemUI.java:830)
   at javax.swing.plaf.basic.BasicMenuItemUI.paintMenuItem(BasicMenuItemUI.java:733)
   at javax.swing.plaf.basic.BasicMenuItemUI.paint(BasicMenuItemUI.java:610)
   at javax.swing.plaf.basic.BasicMenuItemUI.update(BasicMenuItemUI.java:922)
   at javax.swing.JComponent.paintComponent(JComponent.java:2092)
   at javax.swing.JComponent.paint(JComponent.java:1763)
   at javax.swing.JComponent.paintChildrenOptimized(JComponent.java:2060)
   at javax.swing.JComponent.paintChildren(JComponent.java:1831)
   at javax.swing.JComponent.paint(JComponent.java:1765)
   at javax.swing.JComponent.paintChildrenOptimized(JComponent.java:2060)
   at javax.swing.JComponent.paintChildren(JComponent.java:1831)
   at javax.swing.JComponent.paint(JComponent.java:1765)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:648)
   at javax.swing.JComponent.paintChildrenOptimized(JComponent.java:2060)
   at javax.swing.JComponent.paintChildren(JComponent.java:1831)
   at javax.swing.JComponent.paint(JComponent.java:1765)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2183)
   at javax.swing.JComponent.paint(JComponent.java:1739)
   at java.awt.Container$GfxPaintVisitor.visit(Container.java:1906)
   at java.awt.Container.visitChild(Container.java:1721)
   at java.awt.Container.visitChildren(Container.java:1692)
   at java.awt.Container.paint(Container.java:766)
at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent(GtkComponentPeer.java:325)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl(Component.java:5061)
   at java.awt.Container.dispatchEventImpl(Container.java:1741)
   at java.awt.Window.dispatchEventImpl(Window.java:642)
   at java.awt.Component.dispatchEvent(Component.java:2322)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:474)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:75)
/usr/bin/run-standalone.sh: line 16: 21719 Segmentation fault      (core dumped) $*
Comment 18 Lillian Angel 2006-04-26 14:25:41 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

It would be useful if you stated how.

On Wed, 2006-04-26 at 14:23 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #16 from philippe dot laporte at gatespacetelematics dot com  2006-04-26 14:23 -------
> I can reporduce the Swing Demo problem with JamVM and classpath-latest from
> Monday
> 
> 

Comment 19 philippe.laporte 2006-04-26 14:46:16 UTC
Steps to reproduce:

1- install scratchbox and maemo following the instructions at
http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Installation

2- nano /etc/apt/sources.list

   add

   deb     ftp://ftp.fi.debian.org/debian/ stable main
   deb-src ftp://ftp.fi.debian.org/debian/ stable main

3- apt-get update
4- fakeroot apt-get install jikes
5- build jamvm from source
6- build classpath with
./configure --with-jikes --enable-jni --enable-examples
7- start xephyr outside scratchbox, then af-sb-init.sh start
8- run-standalone.sh jamvm gnu.classpath.examples.swing.Demo
Comment 20 Lillian Angel 2006-04-26 17:42:12 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo


Is there any way you provide a gdb stack trace?


On Wed, 2006-04-26 at 14:46 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #19 from philippe dot laporte at gatespacetelematics dot com  2006-04-26 14:46 -------
> Steps to reproduce:
> 
> 1- install scratchbox and maemo following the instructions at
> http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Installation
> 
> 2- nano /etc/apt/sources.list
> 
>    add
> 
>    deb     ftp://ftp.fi.debian.org/debian/ stable main
>    deb-src ftp://ftp.fi.debian.org/debian/ stable main
> 
> 3- apt-get update
> 4- fakeroot apt-get install jikes
> 5- build jamvm from source
> 6- build classpath with
> ./configure --with-jikes --enable-jni --enable-examples
> 7- start xephyr outside scratchbox, then af-sb-init.sh start
> 8- run-standalone.sh jamvm gnu.classpath.examples.swing.Demo
> 
> 

Comment 21 philippe.laporte 2006-05-10 09:49:17 UTC
Input from Movial:


Regarding the comment 7 in the bug:

>> I cannot reproduce this with
>> Xnest -ac :1 & DISPLAY=:1 matchbox-window-manager & DISPLAY=:1 jamvm
>> klurfe.Main
>> In 256 color mode. 

Xnest proxies the X stuff to your desktop X server whereas Maemo uses
Tiny-X configuration of the X server (i.e. "another" X server) with
limited set of extensions. In Maemo SDK Xephyr can be used to have
the correct X server and extensions. This is the first difference.

Second is that the Maemo X server runs in 16-bit, the sapwood Pixmap
based theme-engine supports only 16-bit, and I've understood[1]
that the bit-depth and what is used in requesting the "default" bitdepth
are somehow related to this bug.

There is a dirty trick you can try:
s/sapwood/pixmap/ on gtkrc file and delete the gtkrc.cache

Or then just symlink /usr/lib/gtk-2.0/2.4.0/engines/libpixmap.so to
libsapwood.so a trick we tried with Maemo+Gazpacho

If this helps, then we will know for sure that it is about the
bitdepth. 

[1] I dimly remember seeing something about that in the Maemo bugzilla
Comment 22 Lillian Angel 2006-06-02 16:22:14 UTC
There have been a lot of changes to the Graphics backend. Can you please retest this bug?
Comment 23 philippe.laporte 2006-06-05 02:09:17 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

Hi,
   We'll look into it this week.

Mark has not replied to my mail about the bugzilla problems. Who's the
next go-to person?

Thanks
-- 
Philippe Laporte
Technical Director
Embedded Java and OMA DM 

Gatespace Telematics
Första Långgatan 18
41328 Göteborg
Sweden
Phone: +46 702 04 35 11
Fax:   +46 31 24 16 50
Email: philippe.laporte@gatespacetelematics.com


On Fri, 2006-06-02 at 16:22 +0000, langel at redhat dot com wrote:
> 
> ------- Comment #22 from langel at redhat dot com  2006-06-02 16:22 -------
> There have been a lot of changes to the Graphics backend. Can you please retest
> this bug?
> 
> 


Comment 24 philippe.laporte 2006-06-06 07:39:20 UTC
We'll look into it within a few days
Comment 25 philippe.laporte 2006-06-07 06:39:36 UTC
With JamVM 1.4.3 and Classapth 0.91 the problem remains. 

I didn't exactly follow where the big changes came in (I will follow more and more closely the Classpath life as time goes on, promised :-), but with classpath latest from 666 :-) (classpath-0.92-pre), I can't configure successfully because of the new GTK 2.8 requirement.

I'm not familiar enough with the current state of Maemo to tell how to properly replace the gtk support to preserve the overall environment.

Are the Movial comments helpful?

If you can comment on whether the changes that you think might improve the situation are in 0.91 or not I can then seek more info on upgrading to GTK 2.8


Comment 26 Lillian Angel 2006-06-07 13:30:14 UTC
Subject: Re:  SkinnedButton colormap problem on the Nokia
	770/Maemo

You will need to upgrade to GTK 2.8 to use Classpath.

On Wed, 2006-06-07 at 06:39 +0000, philippe dot laporte at
gatespacetelematics dot com wrote:
> 
> ------- Comment #25 from philippe dot laporte at gatespacetelematics dot com  2006-06-07 06:39 -------
> With JamVM 1.4.3 and Classapth 0.91 the problem remains. 
> 
> I didn't exactly follow where the big changes came in (I will follow more and
> more closely the Classpath life as time goes on, promised :-), but with
> classpath latest from 666 :-) (classpath-0.92-pre), I can't configure
> successfully because of the new GTK 2.8 requirement.
> 
> I'm not familiar enough with the current state of Maemo to tell how to properly
> replace the gtk support to preserve the overall environment.
> 
> Are the Movial comments helpful?
> 
> If you can comment on whether the changes that you think might improve the
> situation are in 0.91 or not I can then seek more info on upgrading to GTK 2.8
> 
> 

Comment 27 Lillian Angel 2006-06-15 18:40:02 UTC
Philippe, 

What is the status of this bug? Have you tested it with the new graphics backend?

Thanks,
Lillian
Comment 28 philippe.laporte 2006-06-22 01:42:57 UTC
It turns out that the new GTK 2.8 dependency is a major blocker.

About Cairo on the 770: Movial says: "Using Cairo for drawing everything (as antialiased etc) slows down things quite a lot and with the 226 screen DPI antialiasing isn't really needed"

As Cairo is also not the only large change in GTK internals, merging the new GTK to produce a Hildon GTK will require a lot of efforts, and there is no plan to do it right now.

So a Classpath-AWT/GTK 2.8 on the 770 would only be available to hackers.