confused Exception in thread "AWT-EventQueue-0"

This topic has been viewed 4485 times and has 3 replies
Thread status: Active
Still a problem with your graphic card? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Iun8teic
Posts: 2
Joined: Wed Mar 13, 2019 12:52 am

Exception in thread "AWT-EventQueue-0"

Post by Iun8teic »

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:

Code: Select all

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

Re: Exception in thread "AWT-EventQueue-0"

Post by Puybaret »

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 [font=courier new]<observerCamera>[/font] or [font=courier new]<camera>[/font] XML elements with some attributes equal to [font=courier new]NaN[/font]
- replace other [font=courier new]NaN[/font] 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 [url=mailto:[email protected]]me[/url] your file. I'll fix it for you.
Emmanuel Puybaret, Sweet Home 3D creator
Iun8teic
Posts: 2
Joined: Wed Mar 13, 2019 12:52 am

Re: Exception in thread "AWT-EventQueue-0"

Post by Iun8teic »

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:

Code: Select all

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.
User avatar
UbuntuBirdy
Posts: 421
Joined: Thu Aug 31, 2017 10:31 pm
Country: Switzerland
Contact:

Re: Exception in thread "AWT-EventQueue-0"

Post by UbuntuBirdy »

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

SH3D 6.6 / Ubuntu 22.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 5800x
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest