Hi Peppe, Ede and the other developers,

I've tested on a Ubuntu 11.10 with OpenJDK and get the same problem. In 
summary I can say, that on all tested systems the problem exists :-( It 
did no matter what desktop (KDE, Gnome, Unity) or what JRE (Sun Java 
1.6/1.7 or OpenJDK) you are using.
In the last two weeks I've researched for a reason, because i now other 
Java software on linux with XOR painting that haven't any problem.

With a small testclass for a rectangle movement with xor painting there 
are no problems. But with only a LayerViewPanel in a JFrame without all 
the other OJ stuff such as menus, toolbars etc., i got the problem. Next 
I've debugged the computation of the coordinates and size of the Shape 
during painting, but no success. Than on my old home desktop with debian 
lenny and a nvidia graphics i got success with enabled OpenGL rendering 
(-Dsun.java2d.opengl=True)???. On all other linux boxes the opengl 
rendering on linux seems to be very buggy, because not even the GUI was 
correct painted.

And yesterday i found randomly the reason :-) In the 
AbstractCursorTool.getGraphics2D() which is called before every painting 
the RenderingHint for antialaising is set to ON. If i do not set this, 
every thing works fine :-) Small detail, big difference! Tested with my 
small testclass and antialaising switched on i cannot reproduce the 
problem. So i suspect, that this behaviour especially depends on other 
deeper rendering things in OJ. In principle  i mean that this is a 
special Linux JVM problem and i hope that this will be fixed in the 
future. So it makes at the moment no more sense for me to deeper search.
Finally I've commited a small workaround/fix. On linux platforms we 
don't switch on antialiasing. But only during paint operation of the 
Shape!!! This concerns no other paintings.

Regards

Matthias


> Hi Matthias,
>
> regarding only Sun JRE 1.6
> this bug seems to be connected only to Ubuntu Unity and not Gnome 
> classic shell.
> I tested on Ubuntu 11.10 / Unity and Ubuntu 11.10 / Classic Gnome.
> In the 1st case that bug is more evidente. The only way for user to 
> clean those black shades is to maximalized the window.
> If users turn back to old Gnome shell, everything seems to work fine.
> Regarding OSgeo DVD, this uses Xubuntu (Xfce) as shell and OpenJUMp, 
> in my past tests, had never had problems with Xfce
>
> Peppe
>
> ------------------------------------------------------------------------
> *Da:* Matthias Scholz <m...@jammerhund.de>
> *A:* OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
> *Inviato:* Sabato 7 Gennaio 2012 10:50
> *Oggetto:* Re: [JPP-Devel] OJ Linux GUI bug?
>
> Hi Ede,
>
> I've made some more tests on the following platforms:
>
> - Ubuntu 11.04 natty, amd64, 2.6.38-8-server, Unity(Gnome) Classic, SUN
> JDK 1.6.0_26-b03 + OJ 1.4.2 remote via XDMCP
> - Debian Etch, amd64, 2.6.18-6-amd64, KDE 3.5.5, SUN JDK 1.6.0_20-b02 +
> OJ 1.4.2
> - Ubuntu 11.04 natty, i386, 2.6.38-13-generic-pae, Unity(Gnome) Classic,
> SUN JDK 1.6.0_26-b03 + OJ 1.4.2 and SVN
> - Ubuntu 11.04 natty, i386, 2.6.38-13-generic-pae, Unity(Gnome) Classic,
> SUN JDK 1.7.0_02-b13 + OJ 1.4.2 and SVN
>
> I use only the Sun JDK, because at the moment some other apps I use too
> have problems with the openjdk.
> In all my tests I get the same result. If the OJ mainwindow not
> maximized and not "docked" to any site of the screen, i get the buggy
> view. But if the OJ windows is maximized there is no problem if you move
> a feature outside a side where is no taskbar or panel!!! On my Ubuntu
> there is only a problem if I move a feature outside on top or bottom,
> because there are my panels. If I hide all panels/taskbar on all the
> tested systems and the OJ windows is maximized, then there is NO problem.
> Ede and Peppe please can you check this with our systems? I do not
> really understand this at the moment.
>
> Matthias
>
> > if openjdk 1.7 solves this we should urge (although i am under the 
> impression osgeo already plans to) osgeo to include this version.
> >
> > michael: could you communicate this plus the fact that oj is 
> generally fit for openjdk?
> >
> > ede
> >
> >
> > On 02.01.2012 10:20, Giuseppe Aruta wrote:
> >> Hi all,
> >> this is my experience with OJ and JRE.
> >> Some months ago I tested the same bug with OpenJDK 1.6 which is 
> embedded in Ubuntu 11.04.
> >> This bug was always present with all tools that were involving 
> parts of the features "outside" the view, plus "Draw constrained 
> circle" tool.
> >> I did some tests with other JRE distro. This problem seems not to 
> be present also with JRE 1.6.20 (coming from Kosmo which has jre 
> embedded) from Sun Microsystem (previous Oracle "management").
> >> I did other tests with newer version of Oracle JRE/OpenJDK.
> >> The problem seems not to be with JRE 1.7 from Oracle neither with  
> OpenJDK 1.7.
> >> So I installed on my Ubuntu OpenJDK 1.7 and everything goes fine 
> right now.
> >> I ask Ede and Matthias to check wich version of JRE they use with 
> OpenJUMP
> >>
> >> Peppe
> >>
> >> *Da:* Stefan Steiniger<sst...@geo.uzh.ch <mailto:sst...@geo.uzh.ch>>
> >> *A:* OpenJump develop and 
> use<jump-pilot-devel@lists.sourceforge.net 
> <mailto:jump-pilot-devel@lists.sourceforge.net>>
> >> *Inviato:* Domenica 1 Gennaio 2012 22:30
> >> *Oggetto:* Re: [JPP-Devel] OJ Linux GUI bug?
> >>
> >> no problem on Mac here :)
> >>
> >> Am 01.01.12 22:24, schrieb Edgar Soldin:
> >>> On 01.01.2012 21:53, Matthias Scholz wrote:
> >>>> Hi,
> >>>>
> >>>> on Linux it seems to be, that we have a problem. It's possible, 
> that this is a JVM on Linux bug by Oracle. On Windows this problem 
> does not occurs. Please see the attached screenshots. This mistake 
> occurs, if you move a feature and some parts of the feature are 
> "outside" the OJ window(viewport). The first screenshot is taken after 
> move of the rectangle with pressed mousebutton and the second is taken 
> after release the left mouse button. Can anyone test this with Linux?
> >>>>
> >>> can you specify linux and jre version please? ..ede
> >>>
> >>> 
> ------------------------------------------------------------------------------
> >>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a 
> complex
> >>> infrastructure or vast IT resources to deliver seamless, secure 
> access to
> >>> virtual desktops. With this all-in-one solution, easily deploy virtual
> >>> desktops for less than the cost of PCs and save 60% on VDI 
> infrastructure
> >>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> >>> _______________________________________________
> >>> Jump-pilot-devel mailing list
> >>> Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net><mailto:Jump-pilot-devel@lists.sourceforge.net
>  
> <mailto:Jump-pilot-devel@lists.sourceforge.net>>
> >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >> 
> ------------------------------------------------------------------------------
> >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a 
> complex
> >> infrastructure or vast IT resources to deliver seamless, secure 
> access to
> >> virtual desktops. With this all-in-one solution, easily deploy virtual
> >> desktops for less than the cost of PCs and save 60% on VDI 
> infrastructure
> >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net><mailto:Jump-pilot-devel@lists.sourceforge.net
>  
> <mailto:Jump-pilot-devel@lists.sourceforge.net>>
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>
> >>
> >>
> >>
> >> 
> ------------------------------------------------------------------------------
> >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a 
> complex
> >> infrastructure or vast IT resources to deliver seamless, secure 
> access to
> >> virtual desktops. With this all-in-one solution, easily deploy virtual
> >> desktops for less than the cost of PCs and save 60% on VDI 
> infrastructure
> >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> >>
> >>
> >>
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > 
> ------------------------------------------------------------------------------
> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a 
> complex
> > infrastructure or vast IT resources to deliver seamless, secure 
> access to
> > virtual desktops. With this all-in-one solution, easily deploy virtual
> > desktops for less than the cost of PCs and save 60% on VDI 
> infrastructure
> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual 
> desktops for less than the cost of PCs and save 60% on VDI infrastructure 
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to