xrender pipeline creates graphics corruption

Bug #1101348 reported by Matthias Bläsing
38
This bug affects 15 people
Affects Status Importance Assigned to Milestone
OpenJDK
Fix Released
Medium
openjdk-7 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Activating the XRender-Pipeline in openjdk-7 for usage with netbeans creates graphics corruption when scrolling.

For details please see the post on the xrender-dev mailinglist:

http://mail.openjdk.java.net/pipermail/xrender-dev/2013-January/000049.html

The corruption can be seen in this screenshot:

http://mail.openjdk.java.net/pipermail/xrender-dev/attachments/20130108/3d37aeb9/Screenshot-0001.png

Clemens Eisserer created a patch for openjdk-8, which he kindly pointed me to. I took that patch and applied it to the openjdk-7 package and it works in openjdk-7.

Currently I rebuild the openjdk Package on each new release and replace the rt.jar - it would be nice if the patch could be integrated into the build process.

I'll attach the patch I created (this is just a minor change from the original version of Clemens Eisserer).

Ubuntu version:

Description: Ubuntu 12.10
Release: 12.10

Tags: patch
Revision history for this message
Matthias Bläsing (mblaesing) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Proposed patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-7 (Ubuntu):
status: New → Confirmed
Matthias Klose (doko)
Changed in openjdk-7 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-7 - 7u60-2.5.0-2ubuntu1

---------------
openjdk-7 (7u60-2.5.0-2ubuntu1) utopic; urgency=medium

  * Merge with Debian; remaining changes:
    - Build using a different .orig.tar.gz.
    - Add the IcedTea Sound tarball as an uuencoded file.
    - debian/generate-debian-orig.sh: Rename the debian checkout.

openjdk-7 (7u60-2.5.0-2) unstable; urgency=high

  * Refresh KFreeBSD patches (Steven Chamberlain). Closes: #754214.
  * Backport S7179339, xrender pipeline creates graphics corruption.
    (Matthias Bläsing). LP: #1101348.
  * Configure with --disable-infinality. Closes: #754343. LP: #1338897.
 -- Matthias Klose <email address hidden> Thu, 10 Jul 2014 18:04:57 +0200

Changed in openjdk-7 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
In , Tiago Stürmer Daitx (tdaitx) wrote :

Created attachment 1398
fix openjdk-7 xrender graphics corruption

As reported in
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1101348
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1032936

Original issue report and fix for OpenJDK 8 at https://bugs.openjdk.java.net/browse/JDK-7105461

Ubuntu has been using this patch since 10 Jul 2014.

Please advise on whether this patch is acceptable for IcedTea 2.5/2.6 or not.

From LP: #1101348
=================
Activating the XRender-Pipeline in openjdk-7 for usage with netbeans creates graphics corruption when scrolling.

For details please see the post on the xrender-dev mailinglist:

http://mail.openjdk.java.net/pipermail/xrender-dev/2013-January/000049.html

The corruption can be seen in this screenshot:

http://mail.openjdk.java.net/pipermail/xrender-dev/attachments/20130108/3d37aeb9/Screenshot-0001.png

Clemens Eisserer created a patch for openjdk-8, which he kindly pointed me to. I took that patch and applied it to the openjdk-7 package and it works in openjdk-7.

Currently I rebuild the openjdk Package on each new release and replace the rt.jar - it would be nice if the patch could be integrated into the build process.

I'll attach the patch I created (this is just a minor change from the original version of Clemens Eisserer).

Ubuntu version:

Description: Ubuntu 12.10
Release: 12.10

Changed in openjdk:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Andrew John Hughes (ahughes) wrote :

We'll include the backport in the next minor release in October, all being well.

Changed in openjdk:
status: Confirmed → In Progress
Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//hg/icedtea7-forest/jdk?cmd=changeset;node=b0194003cf27
author: ceisserer
date: Mon Apr 09 15:49:33 2012 -0700

 7150134, PR2571: JCK api/java_awt/Graphics/index.html#DrawLine fails with OOM for jdk8 with XRender pipeline
 Reviewed-by: prr

Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//hg/icedtea7-forest/jdk?cmd=changeset;node=96b5c3822ce9
author: ceisserer
date: Tue Nov 13 16:12:10 2012 -0800

 7105461, PR2571: Large JTables are not rendered correctly with Xrender pipeline
 Reviewed-by: flar, prr

Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//hg/icedtea7?cmd=changeset;node=55e6b27c9e62
author: Andrew John Hughes <email address hidden>
date: Sun Oct 04 01:34:28 2015 +0100

 Bump to icedtea-2.7.0pre02.

 2015-10-03 Andrew John Hughes <email address hidden>

  * Makefile.am:
  (CORBA_CHANGESET): Update to icedtea-2.7.0pre02.
  (JAXP_CHANGESET): Likewise.
  (JAXWS_CHANGESET): Likewise.
  (JDK_CHANGESET): Likewise.
  (LANGTOOLS_CHANGESET): Likewise.
  (OPENJDK_CHANGESET): Likewise.
  (CORBA_SHA256SUM): Likewise.
  (JAXP_SHA256SUM): Likewise.
  (JAXWS_SHA256SUM): Likewise.
  (JDK_SHA256SUM): Likewise.
  (LANGTOOLS_SHA256SUM): Likewise.
  (OPENJDK_SHA256SUM): Likewise.
  * NEWS: Updated.
  * configure.ac: Bump to 2.7.0pre02.
  * hotspot.map.in: Update to icedtea-2.7.0pre02.

 Upstream changes:
   - Bump to icedtea-2.7.0pre02
   - PR2512: Reset success following calls in LayoutManager.cpp
   - S7105461, PR2571: Large JTables are not rendered correctly with Xrender pipeline
   - S7150134, PR2571: JCK api/java_awt/Graphics/index.html#DrawLine fails with OOM for jdk8 with XRender pipeline
   - S8011709, PR2509: [parfait] False positive: memory leak in jdk/src/share/native/sun/font/layout/CanonShaping.cpp
   - S8023052, PR2509: JVM crash in native layout
   - S8042855, PR2509: [parfait] Potential null pointer dereference in IndicLayoutEngine.cpp
   - S8056122, PR1896: Upgrade JDK to use LittleCMS 2.6
   - S8057934, PR1896: Upgrade to LittleCMS 2.6 breaks AIX build
   - S8078331, PR1896: Upgrade JDK to use LittleCMS 2.7
   - S8081756, PR1896: Mastering Matrix Manipulations
   - S8087120, RH1206656, PR2553: [GCC5] java.lang.StackOverflowError on Zero JVM initialization on non x86 platforms.

Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//hg/release/icedtea7-forest-2.6/jdk?cmd=changeset;node=71619ffff972
author: ceisserer
date: Mon Apr 09 15:49:33 2012 -0700

 7150134, PR2571: JCK api/java_awt/Graphics/index.html#DrawLine fails with OOM for jdk8 with XRender pipeline
 Reviewed-by: prr

Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//hg/release/icedtea7-forest-2.6/jdk?cmd=changeset;node=4a4982b866b6
author: ceisserer
date: Tue Nov 13 16:12:10 2012 -0800

 7105461, PR2571: Large JTables are not rendered correctly with Xrender pipeline
 Reviewed-by: flar, prr

Revision history for this message
In , Mercurial (mercurial) wrote :
Download full text (8.9 KiB)

details: http://icedtea.classpath.org//hg/release/icedtea7-2.6?cmd=changeset;node=723ef630c332
author: Andrew John Hughes <email address hidden>
date: Tue Oct 20 04:30:23 2015 +0100

 Bump to icedtea-2.6.2pre02.

 Upstream changes:
   - Bump to icedtea-2.6.2pre01
   - Bump to icedtea-2.6.2pre02
   - PR2512: Reset success following calls in LayoutManager.cpp
   - PR2568: openjdk causes a full desktop crash on RHEL 6 i586
   - S6880559, PR2674: Enable PKCS11 64-bit windows builds
   - S6904403, PR2674: assert(f == k-&gt;has_finalizer(),&quot;inconsistent has_finalizer&quot;) with debug VM
   - S7011441, PR2674: jndi/ldap/Connection.java needs to avoid spurious wakeup
   - S7059542, PR2674: JNDI name operations should be locale independent
   - S7105461, PR2571: Large JTables are not rendered correctly with Xrender pipeline
   - S7105883, PR2560: JDWP: agent crash if there exists a ThreadGroup with null name
   - S7107611, PR2674: sun.security.pkcs11.SessionManager is scalability blocker
   - S7127066, PR2674: Class verifier accepts an invalid class file
   - S7150092, PR2674: NTLM authentication fail if user specified a different realm
   - S7150134, PR2571: JCK api/java_awt/Graphics/index.html#DrawLine fails with OOM for jdk8 with XRender pipeline
   - S7152582, PR2674: PKCS11 tests should use the NSS libraries available in the OS
   - S7156085, PR2674: ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
   - S7177045, PR2674: Rework the TestProviderLeak.java regression test, it is too fragile to low memory errors.
   - S7190945, PR2674: pkcs11 problem loading NSS libs on Ubuntu
   - S8005226, PR2674: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently
   - S8009438, PR2674: sun/security/pkcs11/Secmod tests failing on Ubuntu 12.04
   - S8011709, PR2509: [parfait] False positive: memory leak in jdk/src/share/native/sun/font/layout/CanonShaping.cpp
   - S8012971, PR2674: PKCS11Test hiding exception failures
   - S8016105, PR2560: Add complementary RETURN_NULL allocation macros in allocation.hpp
   - S8020424, PR2674: The NSS version should be detected before running crypto tests
   - S8020443, PR2674: Frame is not created on the specified GraphicsDevice with two monitors
   - S8021897, PR2560: EXCEPTION_ACCESS_VIOLATION on debugging String.contentEquals()
   - S8022683, PR2560: JNI GetStringUTFChars should return NULL on allocation failure not abort the VM
   - S8023052, PR2509: JVM crash in native layout
   - S8025922, PR2560: JNI access to Strings need to check if the value field is non-null
   - S8027058: sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh Failed to initialize connector
   - S8027624, PR2674: com/sun/crypto/provider/KeyFactory/TestProviderLeak.java unstable again
   - S8033069, PR2674: mouse wheel scroll closes combobox popup
   - S8035150, PR2674: ShouldNotReachHere() in ConstantPool::copy_entry_to
   - S8039212, PR2674: SecretKeyBasic.sh needs to avoid NSS libnss3 and libsoftokn3 version mismatches
   - S8042855, PR2509: [parfait] Potential null pointer dereference in IndicLayoutEngine.cpp
   - S8044364, PR2674: runtime/RedefineFinalizer test fails on windows
   - ...

Read more...

Changed in openjdk:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.