Modify

Opened 3 years ago

Closed 3 years ago

Last modified 7 days ago

#11002 closed defect (othersoftware)

java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Reported by: mayorga Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report javabug java8 linux Cc: FilatovY.V@…

Description

What steps will reproduce the problem?

  1. Change OS screen resolution

What is the expected result?

What happens instead?

JOSM does not crash, but alerts me about an exception.

Please provide any additional information below. Attach a screenshot if possible.

I was using JOSM in a virtualized environment, running on java-1.8.0-openjdk, Fedora 21.

Revision: 7976
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Klumbumbus
Last Changed Date: 2015-01-21 00:25:39 +0100 (Wed, 21 Jan 2015)
Build-Date: 2015-01-21 02:36:31
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 7976

Identification: JOSM/1.5 (7976 es) Linux Fedora 21 (Twenty One)
Memory Usage: 222 MB / 365 MB (91 MB allocated, but free)
Java version: 1.8.0_25, Oracle Corporation, OpenJDK Server VM
Dataset consistency test: No problems found

Plugins:
- ColumbusCSV (30892)
- public_transport (30892)

Last errors/warnings:
- W: TMS - Failed downloading tile: Tile 22/1092146/1954498@Bing Aerial Maps
- W: TMS - Failed downloading tile: Tile 22/1092146/1954497@Bing Aerial Maps
- W: TMS - Failed downloading tile: Tile 21/546073/977247@Bing Aerial Maps
- W: TMS - Failed downloading tile: Tile 21/546072/977247@Bing Aerial Maps
- E: java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
	at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)
	at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)
	at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:967)
	at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:585)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1022)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:683)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5230)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1265)
	at javax.swing.JComponent.paint(JComponent.java:1039)
	at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
	at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
	at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
	at java.awt.Container.paint(Container.java:1973)
	at java.awt.Window.paint(Window.java:3901)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:835)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:807)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)
	at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Attachments (0)

Change History (37)

comment:1 Changed 3 years ago by Don-vip

Keywords: javabug java8 added
Resolution: othersoftware
Status: newclosed

Java 8 regression, yet unresolved: javabug:7172749. We cannot do anything but wait for the fix from Oracle.

comment:2 Changed 3 years ago by Don-vip

Keywords: linux added

comment:3 Changed 2 years ago by Don-vip

Ticket #11444 has been marked as a duplicate of this ticket.

comment:4 Changed 2 years ago by Don-vip

Ticket #11620 has been marked as a duplicate of this ticket.

comment:5 Changed 2 years ago by anonymous

I just get out second display from laptop and then saw this warning

comment:6 Changed 2 years ago by anonymous

So I have Debian 8 jessie and Java 1.8.0_51-b16.

comment:7 Changed 22 months ago by Don-vip

Ticket #12228 has been marked as a duplicate of this ticket.

comment:8 Changed 19 months ago by Don-vip

Ticket #12643 has been marked as a duplicate of this ticket.

comment:9 Changed 19 months ago by Don-vip

Ticket #12718 has been marked as a duplicate of this ticket.

comment:10 Changed 18 months ago by Don-vip

Ticket #12747 has been marked as a duplicate of this ticket.

comment:11 Changed 18 months ago by Don-vip

Ticket #12762 has been marked as a duplicate of this ticket.

comment:12 Changed 18 months ago by chtfn

Is it easy to go back to an earlier version of Java, as a workaround for the time being?

comment:13 Changed 17 months ago by Don-vip

Ticket #12845 has been marked as a duplicate of this ticket.

comment:14 Changed 17 months ago by Don-vip

In 10239/josm:

see #11002 - add some robustness against JDK bug

comment:15 Changed 14 months ago by Don-vip

Ticket #13410 has been marked as a duplicate of this ticket.

comment:16 Changed 14 months ago by Don-vip

Almost two years after, Oracle has finally fixed javabug:7172749.

It will be available soon (october 2016) in jdk 8u112.

Last edited 14 months ago by Don-vip (previous) (diff)

comment:17 Changed 14 months ago by Don-vip

Ticket #13418 has been marked as a duplicate of this ticket.

comment:18 Changed 13 months ago by skyper

Ticket #13628 has been marked as a duplicate of this ticket.

comment:19 Changed 13 months ago by skyper

Cc: FilatovY.V@… added

comment:20 Changed 13 months ago by Klumbumbus

Ticket #13721 has been marked as a duplicate of this ticket.

comment:21 Changed 13 months ago by simon04

Ticket #13758 has been marked as a duplicate of this ticket.

comment:22 Changed 12 months ago by simon04

Ticket #13791 has been marked as a duplicate of this ticket.

comment:23 Changed 12 months ago by bastiK

Ticket #13838 has been marked as a duplicate of this ticket.

comment:24 Changed 11 months ago by Don-vip

Ticket #14085 has been marked as a duplicate of this ticket.

comment:25 Changed 8 months ago by Don-vip

Ticket #14350 has been marked as a duplicate of this ticket.

comment:26 Changed 8 months ago by Don-vip

Last bug report seems to be javabug:8147542 only fixed in Java 9 atm.

comment:27 Changed 8 months ago by Don-vip

Ticket #14477 has been marked as a duplicate of this ticket.

comment:28 Changed 6 months ago by Don-vip

Ticket #14629 has been marked as a duplicate of this ticket.

comment:29 Changed 6 months ago by Don-vip

Ticket #14682 has been marked as a duplicate of this ticket.

comment:30 Changed 5 months ago by Don-vip

Ticket #14767 has been marked as a duplicate of this ticket.

comment:31 Changed 4 months ago by Don-vip

Ticket #14969 has been marked as a duplicate of this ticket.

comment:32 Changed 6 weeks ago by Don-vip

Ticket #15223 has been marked as a duplicate of this ticket.

comment:33 Changed 4 weeks ago by Don-vip

Ticket #15323 has been marked as a duplicate of this ticket.

comment:34 Changed 3 weeks ago by Don-vip

Ticket #15352 has been marked as a duplicate of this ticket.

comment:35 Changed 3 weeks ago by Don-vip

Ticket #15353 has been marked as a duplicate of this ticket.

comment:36 Changed 2 weeks ago by Don-vip

Ticket #15381 has been marked as a duplicate of this ticket.

comment:37 Changed 7 days ago by Don-vip

Ticket #15419 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.