I am not able to render a image file (png/jpg).
Console gives
Exception in thread "pool-12-thread-1" java.lang.NegativeArraySizeException
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:467)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:324)
at com.eteks.sweethome3d.swing.PhotosPanel.computePhotos(Unknown Source)
at com.eteks.sweethome3d.swing.PhotosPanel.access$1500(Unknown Source)
at com.eteks.sweethome3d.swing.PhotosPanel$15.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Generating a video works.
I'm also not able to see the 3D Preview in a seperated window:
Exception in thread "AWT-EventQueue-0" javax.media.j3d.IllegalRenderingStateException: Can't create graphics environment for Canvas 3D
at com.eteks.sweethome3d.j3d.Component3DManager.getCanvas3D(Unknown Source)
at com.eteks.sweethome3d.j3d.Component3DManager.getOnscreenCanvas3D(Unknown Source)
at com.eteks.sweethome3d.swing.HomeComponent3D.createComponent3D(Unknown Source)
at com.eteks.sweethome3d.swing.HomeComponent3D.access$200(Unknown Source)
at com.eteks.sweethome3d.swing.HomeComponent3D$1.ancestorAdded(Unknown Source)
at javax.swing.AncestorNotifier.fireAncestorAdded(AncestorNotifier.java:86)
at javax.swing.AncestorNotifier.componentShown(AncestorNotifier.java:193)
at java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:180)
at java.awt.Component.processComponentEvent(Component.java:6371)
at java.awt.Component.processEvent(Component.java:6319)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Window.processEvent(Window.java:2025)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
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)
Tested on
Sweethome3d Version 6.4.2.
Java 3D Version 1.5.2
Manjaro Linux
Kernel 5.10.23-1
Thanks for you good work.
From the
NegativeArraySizeExceptionexception name, I would suggest to check the dimension of your image.That worked. Dimensions were set to bad values. Thanks for the quick help.
How did you succeed to enter a negative value?