Print at Dec 16, 2025, 2:40:58 PM View all posts in this thread on one page
Posted by lybin at Aug 26, 2024, 7:10:19 AM
Artifacts on imported models in plan view
Hello.
Previously, imported models displayed without errors. I don't know if it's related, but after importing this pool, all imported models started showing artifacts.

https://www.sweethome3d.com/models/scopia/swimming-pool.zip



I cleared the following directories, but nothing helped:
~/.eteks
~/.java/.userPrefs/com

7.4 and 7.5 versions as well

OpenJDK version 1.8.0_422 - 64bit - 0.1 / 0.9 GB
provided by Arch Linux Java 3D version 1.5.2 - NATIVE_OGL PDF

Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-zen1-1-zen (64-bit) (linux-lts 6.6.47-1 the same)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Graphics Processor: AMD Radeon 780M

Posted by Puybaret at Aug 26, 2024, 5:27:51 PM
Re: Artifacts on imported models in plan view
Sometimes the icon created at the end of furniture import wizard isn't correct.
As it's actually a screenshot, ensure that the wizard is at screen during the last step and don't click on Finish button too fast.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by lybin at Aug 27, 2024, 6:26:42 AM
Re: Artifacts on imported models in plan view
Hello, Emmanuel. Thank you for the answer.
I've tried 2 times as you said and no luck.

https://drive.google.com/file/d/18-4L_LTHEuEM...jvfFnmXg/view?usp=sharing

Posted by Puybaret at Aug 27, 2024, 7:46:14 AM
Re: Artifacts on imported models in plan view
Could you try with the official release of Sweet Home 3D (try SweetHome3D and SweetHome3D-Java3D-1_5_2 included scripts)?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by lybin at Aug 27, 2024, 9:11:15 AM
Re: Artifacts on imported models in plan view
the same behavior



Posted by Puybaret at Aug 27, 2024, 10:07:17 AM
Re: Artifacts on imported models in plan view
Not sure I can do better.
But you could at least select Top view option in preferences to get nicer drawing in the plan. If the option is greyed, run the other command to launch Sweet Home 3D.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by lybin at Aug 28, 2024, 5:52:47 AM
Re: Artifacts on imported models in plan view
I've install newer jre-openjdk 22, it was 8.



On the first try the app requires sharing screen and stucks. If to kill and try import again it success.


lev@lybin ~ $ sweethome3d
WARNING: package com.apple.eawt not in java.desktop
WARNING: package com.apple.eio not in java.desktop
Java 3D: implicit antialiasing enabled
Exception in thread "AWT-EventQueue-0" java.lang.SecurityException: Screen Capture in the selected area was not allowed
at java.desktop/sun.awt.screencast.ScreencastHelper.checkReturnValue(Unknown Source)
at java.desktop/sun.awt.screencast.ScreencastHelper.getRGBPixels(Unknown Source)
at java.desktop/sun.awt.X11.XRobotPeer.getRGBPixels(Unknown Source)
at java.desktop/java.awt.Robot.createCompatibleImage(Unknown Source)
at java.desktop/java.awt.Robot.createScreenCapture(Unknown Source)
at com.eteks.sweethome3d.swing.ModelPreviewComponent.getIconImage(Unknown Source)
at com.eteks.sweethome3d.swing.ModelPreviewComponent.getIcon(Unknown Source)
at com.eteks.sweethome3d.swing.ImportedFurnitureWizardStepsPanel.getIcon(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ImportedFurnitureWizardController.getIcon(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ImportedFurnitureWizardController.finish(Unknown Source)
at com.eteks.sweethome3d.swing.WizardPane$7.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at com.eteks.sweethome3d.swing.WizardPane.displayView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.WizardController.displayView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.FurnitureCatalogController.importFurniture(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController.importFurniture(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.eteks.sweethome3d.swing.ControllerAction.actionPerformed(Unknown Source)
at com.eteks.sweethome3d.swing.ResourceAction$AbstractDecoratedAction.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.SecurityException: Screen Capture in the selected area was not allowed
at java.desktop/sun.awt.screencast.ScreencastHelper.checkReturnValue(Unknown Source)
at java.desktop/sun.awt.screencast.ScreencastHelper.getRGBPixels(Unknown Source)
at java.desktop/sun.awt.X11.XRobotPeer.getRGBPixels(Unknown Source)
at java.desktop/java.awt.Robot.createCompatibleImage(Unknown Source)
at java.desktop/java.awt.Robot.createScreenCapture(Unknown Source)
at com.eteks.sweethome3d.swing.ModelPreviewComponent.getIconImage(Unknown Source)
at com.eteks.sweethome3d.swing.ModelPreviewComponent.getIcon(Unknown Source)
at com.eteks.sweethome3d.swing.ImportedFurnitureWizardStepsPanel.getIcon(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ImportedFurnitureWizardController.getIcon(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ImportedFurnitureWizardController.finish(Unknown Source)
at com.eteks.sweethome3d.swing.WizardPane$7.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at com.eteks.sweethome3d.swing.WizardPane.displayView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.WizardController.displayView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.FurnitureCatalogController.importFurniture(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController.importFurniture(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.eteks.sweethome3d.swing.ControllerAction.actionPerformed(Unknown Source)
at com.eteks.sweethome3d.swing.ResourceAction$AbstractDecoratedAction.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
*** pw_stream_disconnect called from wrong context, check thread and locking: Operation not permitted
*** impl_ext_end_proxy called from wrong context, check thread and locking: Operation not permitted
'this->recurse > 0' failed at ../pipewire/src/pipewire/thread-loop.c:62 do_unlock()
lev@lybin ~ $ sweethome3d
WARNING: package com.apple.eawt not in java.desktop
WARNING: package com.apple.eio not in java.desktop
Java 3D: implicit antialiasing enabled
'this->recurse > 0' failed at ../pipewire/src/pipewire/thread-loop.c:62 do_unlock()
*** pw_stream_disconnect called from wrong context, check thread and locking: Operation not permitted
*** impl_ext_end_proxy called from wrong context, check thread and locking: Operation not permitted
'this->recurse > 0' failed at ../pipewire/src/pipewire/thread-loop.c:62 do_unlock()



Maybe it's related to Wayland?
What the Java version is preferred? I can adjust the package in Archlinux.

Posted by Puybaret at Aug 28, 2024, 8:19:12 AM
Re: Artifacts on imported models in plan view
You don't need to install any Java version. The official release comes with its own copy of Java runtime.

It's normal that the system ask you to authorize sharing screen in Sweet Home 3D because the icon created for an imported furniture is actually a screenshot, as said before. Generating this icon from an offscren 3D image would be nicer, but there are some cases when offscreen imaging is not available.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by lybin at Aug 28, 2024, 9:23:22 AM
Re: Artifacts on imported models in plan view
Got it thanks, but the official release doesn't work for me.

> It's normal that the system ask you to authorize sharing screen
I think this bug is really related to Wayland, because there're a changes about screen sharing in it. Don't know why it worked earlier.