Joined: Mar 13, 2019
Post Count: 2
Status:
Offline
Exception in thread "AWT-EventQueue-0"
hey guys.
i lost the 3d-view while editing my model. everything was fun but after adding a shelf the 3d-view got lost and now i only see a gray area and i have no idea how to step back to a working file.
i use ubuntu 16.04.6 with SH3D v6.1.2 (Java Version 1.8.0_202 - 64bit - 0,1/3,6 GB) and some libraries (BlendSwap-CC-0.sh3f Contributions.sh3f eTeksScopia.sh3t LucaPresidente.sh3f Scopia.sh3f BlendSwap-CC-BY.sh3f Contributions.sh3t KatorLegaz.sh3f Reallusion.sh3f Trees.sh3f)
this is the first time i got such a problem with SH3D! if i open my file (it has 14MB) i got the following output:
Exception in thread "AWT-EventQueue-0" javax.media.j3d.BadTransformException: TransformGroup: non-affine transform at javax.media.j3d.TransformGroup.setTransform(TransformGroup.java:133) at com.eteks.sweethome3d.swing.HomeComponent3D.updateViewPlatformTransform(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D.createUniverse(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D.access$400(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D$1.ancestorAdded(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D$1$1.componentResized(Unknown Source) at java.awt.AWTEventMulticaster.componentResized(AWTEventMulticaster.java:160) at java.awt.Component.processComponentEvent(Component.java:6365) at java.awt.Component.processEvent(Component.java:6319) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
to fix this problem i already tried the following (unfruitful) steps: - switching the view (CTRL+D ; CTRL+CAPS+D ; CTRL+D) - reboot and open again with v6.1.2 - increase memory (from -Xmx2g to -Xmx4g) - open the file with SH3D 5.7 - rename the ".eteks"-Folder in $HOME
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Exception in thread "AWT-EventQueue-0"
I already saw that problem in Sweet Home 3D. This is generally due to some objects placed at unknown coordinates (with NaN values) that prevents from computing a correct point of view. What I would like to know is how such values could happen...
Anyway, you should be able to fix it by yourself this way: - backup your SH3D file - edit the Home.xml file it contains with a text editor - in the Home.xml, remove the lines containing <observerCamera> or <camera> XML elements with some attributes equal to NaN - replace other NaN values by 0 - save the Home.xml file and reintegrate it in the SH3D file
If it doesn't work, or if you feel this is too much for you, just send me your file. I'll fix it for you.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Mar 13, 2019
Post Count: 2
Status:
Offline
Re: Exception in thread "AWT-EventQueue-0"
THIS IS SOLVED! omg. THANK YOU!!
yes, i lost the 3D-view while placing a shelf in a corner. but it snapped on a furniture nearby and the 3D-view was gone in exact this moment... here is what i done according your solution:
bash$ grep NaN Wohnung.sh3d ; echo $? Übereinstimmungen in Binärdatei Wohnung.sh3d 0 bash$ cp Wohnung.sh3d Wohnung.sh3d.bak bash$ unzip -qq Wohnung.sh3d -d foo bash$ grep -R NaN foo foo/Home.xml: <camera attribute='topCamera' lens='PINHOLE' x='NaN' y='NaN' z='NaN' yaw='18.87706' pitch='1.1807954' fieldOfView='1.0995575' time='1552132800000'/> bash$ cd foo/ bash$ sed -i 's!NaN!0!g' Home.xml bash$ grep -R NaN * ; echo $? 1 bash$ zip -rqq ../Wohnung_fixed.sh3d *
After opening the fixed file i got the 3D-view back! thank you. thank you. thank you.