Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | 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: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1173 times and has 3 replies Next Thread
Iun8teic
Newbie




Joined: Mar 13, 2019
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
confused 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

can someone help?
[Mar 13, 2019 1:22:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 6590
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Mar 13, 2019 9:24:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [Link] Report threatening or abusive post: please login first  Go to top 
Iun8teic
Newbie




Joined: Mar 13, 2019
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Mar 13, 2019 4:57:22 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
UbuntuBirdy
Advanced Member
Member's Avatar

Switzerland
Joined: Aug 31, 2017
Post Count: 229
Status: Offline
Reply to this Post  Reply with Quote 
Re: Exception in thread "AWT-EventQueue-0"

Hey, and upgrade to Ubuntu 18.04. Many problems with SH3D are avoided.
----------------------------------------
Pascal

SH3D 6.1.2 / Ubuntu 18.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 1800x
[Mar 13, 2019 6:06:32 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-2019 eTeks - All rights reserved