Java version up to date

This topic has been viewed 10923 times and has 5 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Java version up to date

Post by dorin »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Java version up to date

Post by Puybaret »

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! [:(]
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Java version up to date

Post by Puybaret »

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
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Java version up to date

Post by dorin »

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
Miker777
Posts: 426
Joined: Sun May 08, 2016 7:30 pm
Country: UK

Re: Java version up to date

Post by Miker777 »

Hi
I have updated pc to java version 8 update 111 and have not noticed any issues with the new version of sh3d
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Java version up to date

Post by dorin »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest