Re: Java version up to date

by Puybaret » Thu Jul 16, 2015 5:02 pm

I wanted to update Sweet Home 3D to Java 8 too, and made some tests. Unfortunately, as soon as you set a texture on a room, the plan don't get repainted anymore and the Java console displays the following exception:

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.InternalError: Surface not cachable
	at sun.java2d.xr.XRPaints$XRTexture.getAccSrcSurface(XRPaints.java:211)
	at sun.java2d.xr.XRPaints$XRTexture.isPaintValid(XRPaints.java:224)
	at sun.java2d.xr.XRPaints.isValid(XRPaints.java:75)
	at sun.java2d.xr.XRSurfaceData.getMaskFill(XRSurfaceData.java:205)
	at sun.java2d.SurfaceData.validatePipe(SurfaceData.java:631)
	at sun.java2d.xr.XRSurfaceData.validatePipe(XRSurfaceData.java:123)
	at sun.java2d.SunGraphics2D.validatePipe(SunGraphics2D.java:446)
	at sun.java2d.pipe.ValidatePipe.validate(ValidatePipe.java:55)
	at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:159)
	at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2527)
	at com.eteks.sweethome3d.swing.PlanComponent.fillShape(PlanComponent.java:2876)
	at com.eteks.sweethome3d.swing.PlanComponent.paintRooms(PlanComponent.java:2834)
	at com.eteks.sweethome3d.swing.PlanComponent.paintHomeItems(PlanComponent.java:2641)
	at com.eteks.sweethome3d.swing.PlanComponent.paintContent(PlanComponent.java:2531)
	at com.eteks.sweethome3d.swing.PlanComponent.paintComponent(PlanComponent.java:1873)
	at javax.swing.JComponent.paint(JComponent.java:1056)
Hansmex reported to me that he encountered a similar problem which actually seems to match the following bug. As Oracle closed it because they couldn't reproduce it, I fear it's going to take a long time before Sweet Home 3D get delivered with a newer Java version under Linux! [:(]