Print at Dec 20, 2025, 5:55:32 AM
Posted by WhiteVanMan at Jul 16, 2015, 1:17:07 PM
Crash on clicking preferences
Hi

I am using sweethome 3d on an Arch Linux system. Every time I click on preferences the program shuts down instantly and I have to restart it.

Thanks

Posted by hansmex at Jul 16, 2015, 7:00:20 PM
Re: Crash on clicking preferences
Read the FAQ for solutions.

H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by WhiteVanMan at Jul 16, 2015, 9:44:40 PM
Re: Crash on clicking preferences
Hi
Thanks for the reply. I found the relevant part in the FAQ after posting. It works if I download the webstart file but I would rather use the sweethome3d from the arch linux repositories, its tidier and looks after the updating. I cannot find the .sf file to amend with -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false arch must have a different method of organising its files. Do you know where it is, is it in a .jar file?

Posted by hansmex at Jul 16, 2015, 10:06:38 PM
Re: Crash on clicking preferences
I don't know. I use Ubuntu in combination with the installed version, which I download from the website. Installation is no more than extracting the zipped file into a directory.
If you use the web star version, make sure you have Java 6 installed on your system. Other java versions cause problems.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by WhiteVanMan at Jul 16, 2015, 11:30:03 PM
Re: Crash on clicking preferences
Many thanks

Posted by infozhab at Aug 1, 2015, 3:40:27 AM
Re: Crash on clicking preferences
Erm, same here on Fedora 22, including the inability to fix as per FAQ recommends. Appending offscreen-false won't do the trick.
Actually, I only need metric measures enabled - is it possible to do it manually?

Posted by goetz at Nov 19, 2015, 1:52:46 AM
Re: Crash on clicking preferences
I also need to only change the measurements system to metric (the international). How to do it? Editing some config file?

java -jar /usr/share/java/sweethome3d.jar -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false

Doesn't work.

Arch Linux, jre8-openjdk 8.u66, sweethome3d 5.1

Posted by goetz at Nov 19, 2015, 2:25:19 AM
Re: Crash on clicking preferences
The web method worked.
I installed icedtea-web 1.6.1, which provides javaws, then using the jnlp file http://www.sweethome3d.com/SweetHome3D-NoOffscreen.jnlp from the FAQ:

javaws SweetHome3D-NoOffscreen.jnlp


Or to just to change the measurement unit, edit ~/.eteks/sweethome3d/preferences.xml to a sane value:
<entry key="extensibleUnit">METER</entry>
or
<entry key="extensibleUnit">CENTIMETER</entry>

Posted by Puybaret at Nov 19, 2015, 7:34:01 PM
Re: Crash on clicking preferences
java -jar /usr/share/java/sweethome3d.jar -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false

Doesn't work.
Are you sure that the .jar file you tried in the command is the Jar executable file available at the end of Download page?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by goetz at Nov 19, 2015, 8:23:33 PM
Re: Crash on clicking preferences
Are you sure that the .jar file you tried in the command is the Jar executable file available at the end of Download page?


In Arch Linux, the script used to build the installable package, downloads the "Sweet Home 3D executable jar (25.7 MB, same size)" and renames it from SweetHome3D-5.1.jar to sweethome3d.jar in the /usr/share/java/ path. So it should be the same file.

Posted by Puybaret at Nov 20, 2015, 9:38:28 PM
Re: Crash on clicking preferences
Ok, then what did you mean by "it doesn't work"?
I also wonder if the -D... option should rather be placed before -jar option. Can you try?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by goetz at Nov 21, 2015, 4:42:59 PM
Re: Crash on clicking preferences
This is odd, it did only show the splash screen. Today that command starts the whole application but crashed when opening Preferences.

Changing the arguments order as you said, makes Preferences work, thanks!

java -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false -jar /usr/share/java/sweethome3d.jar


Posted by wood at Jan 4, 2016, 3:32:54 PM
Re: Crash on clicking preferences
Hi,
same problem (crash on preferences) on Linux Debian (BunsenLab). Sorry but I did not understand how did you solved, I installed the Debian package and then I tried the version on SourgeForge.
The fact is that Java is out of my knowledge and probably is just me that do not understand what you are talkking about.

Posted by goetz at Jan 7, 2016, 1:11:04 AM
Re: Crash on clicking preferences
Just go to the download page http://www.sweethome3d.com/download.jsp download the Web Starter http://www.sweethome3d.com/SweetHome3D.jnlp and open it with javaws

Posted by Puybaret at Jan 7, 2016, 9:14:49 AM
Re: Crash on clicking preferences
goetz, the JNLP file you referenced won't solve wood's problem.
It should rather be http://www.sweethome3d.com/SweetHome3D-NoOffscreen.jnlp
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by wood at Jan 9, 2016, 4:23:42 PM
Re: Crash on clicking preferences
Thanks for replay. I am not using Sweet Home 3D with Java Web Start (do not have Java 6 installed, should I?). So I guess goetz answer did not fit my problem. And the file indicated by Puybaret is a .jnlp, so (for what I understood) is suppose to be used by a Java Web Starter (same story I guess).

Posted by goetz at Jan 9, 2016, 7:50:52 PM
Re: Crash on clicking preferences
Puybaret, you are right!

wood, just add the checkOffScreenSupport option when invoking sweethome3d. Your path may defer. dpkg -L sweethome3d will show you where the sweethome3d.jar file is. It maybe:


java -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false -jar /usr/share/sweethome3d/sweethome3d.jar


Posted by Puybaret at Jan 9, 2016, 8:15:44 PM
Re: Crash on clicking preferences
wood, the only other solution is to add the option:
-Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false
after the word "java" in the SweetHome3D script available in the downloadable installer.

Then, the last line of the script
exec "$PROGRAM_DIR"/jre1.6.0_45/bin/java -Xmx1024m ...
should become:
exec "$PROGRAM_DIR"/jre1.6.0_45/bin/java -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false -Xmx1024m ...
(be sure to add no line returns)
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by wood at Jan 12, 2016, 10:09:42 PM
Re: Crash on clicking preferences
Thanks again. It works (of course) now. Sorry if I was a little slow understending.

Posted by bert.struik at Jan 21, 2016, 6:14:31 AM
Re: Crash on clicking preferences
Had this problem with version 5.1 on Ubuntu 14.04. Used the suggested java fix line from the FAQ. Then I could change preferences. A side effect was that I could not longer delete walls. Removed the java line and then I could delete a wall again.