Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 679 times and has 1 reply Next Thread
Belvedere2022
Newbie



Italy
Joined: Dec 3, 2022
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Furniture .obj import crash and workaround (SH3D 7.1)

I ran into the known bug that crashes SH3D on some systems while trying to import a furniture .obj

Trying the workaround of manually running the SH3D .jar - either via the GUI or from the console did not work for me. I tried this on both java versions that are installed on my system. Console output below:

administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-8-oracle/bin/java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-8-oracle/bin/java -jar SweetHome3D.jar
Error: Invalid or corrupt jarfile SweetHome3D.jar

administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -version
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu120.04.1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu120.04.1, mixed mode, sharing)
administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar SweetHome3D.jar
Error: Invalid or corrupt jarfile SweetHome3D.jar


However, with the java-11-openjdk-amd64 version, I was able to run the furniture library editor from the console, successfully import the .obj and save it as a new library. I can now import the library in the main program. Note that this does NOT work when using the GUI.

administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar FurnitureLibraryEditor-1.31.jar


Using java-8-oracle gives me a segfault:

administrator@kallisti:/usr/local/src/SweetHome3D-7.1/lib$ /usr/lib/jvm/java-8-oracle/bin/java -jar FurnitureLibraryEditor-1.31.jar
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f71752fc028, pid=373764, tid=0x00007f7137a65700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libawt_xawt.so+0x42028] ReadRegionsInList+0x3b8
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/local/src/SweetHome3D-7.1/lib/hs_err_pid373764.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)


I can provide the logfile in a DM if needed.
[Apr 7, 2023, 12:21:17 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Belvedere2022
Newbie



Italy
Joined: Dec 3, 2022
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Furniture .obj import crash and workaround (SH3D 7.1)

Using this desktop entry (replace with your java and .jar locations) also worked for me:

[Desktop Entry]
X-AppInstall-Package=sweethome3d-furniture-editor
X-AppInstall-Popcon=13
X-AppInstall-Section=universe

Version=1.0
Name=Sweet Home 3D Furniture Library Editor
GenericName=Sweet Home 3D Furniture Library Editor
Comment=Create your own SweetHome3D furniture libraries
Exec=/usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar /usr/local/src/SweetHome3D-7.1/lib/FurnitureLibraryEditor-1.31.jar
Icon=/usr/local/src/SweetHome3D-7.1/SweetHome3DIcon.png
StartupNotify=true
StartupWMClass=com-eteks-furniturelibraryeditor-FurnitureLibraryEditorBootstrap
Terminal=false
Type=Application
Categories=Graphics;2DGraphics;3DGraphics;
Keywords=interior;design;2D;3D;home;house;furniture;java;editor;

X-Ubuntu-Gettext-Domain=app-install-data

[Apr 7, 2023, 12:41:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved