Romania
Joined: Apr 24, 2014
Post Count: 630
Status:
Offline
Java version up to date
According to java.com they offer now version 8. I've tested SH3D v4.6 & v5.0beta with java 6,7 and 8. Empty or new plan are open correctly with jre1.8u45, but the previously created especially large one (>5M or >6M) don't show the menu, plan window, furniture window etc. The 3D window are showed instantly and correct. I think You can consider to switch to java v8 wile they don't offer support for older versions. For me (under debian) is not necessarily a problem but for others.
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Java version up to date
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:
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!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Java version up to date
This issue should be fixed in the version 5.3. Meanwhile, you can test the correction with the version 5.3 beta 7 available here.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Romania
Joined: Apr 24, 2014
Post Count: 630
Status:
Offline
Re: Java version up to date
I've tested the 5.3 beta 7 and work. I observe some latency in move items in 3D and in 2D. I modify some things like memory, default furniture and some menu text but that not affect the general way of run. I tray to have a "fresh" install: -rename /home/[user]/.eteks/sweethome3d to sweethome3d-j7 -restart SweetHome3D-j8_112 -open a file which was previously open and save as Apartment-j8 -set the Preferences --on 2D the texture of rooms not show but in 3D appear correctly -close the program -add all set of furniture, textures and plugins -reopen the same file but no change, no texture for rooms in 2D -revert to /home/[user]/.eteks/sweethome3d used with j7 -run SweetHome3D-j8_112 and Apartment-j8.sh3d -> All's OK . In sweethome3d folder I have the work folder with about 44 temp files and about 49 Furniture-3-----.pref files. I'm not very clear but hope You understand. Dorin
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
Romania
Joined: Apr 24, 2014
Post Count: 630
Status:
Offline
Re: Java version up to date
You're right! It was my fault. I forgot to set in preferences how to show the rooms. Now it's all OK
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law