Print at Dec 31, 2025, 9:16:05 AM

Posted by korner at Apr 7, 2017, 9:37:40 PM
Re: Sweet home not working anymore
Crash log in hs_err_pid*.log suggests this is a Direct3D issue:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.java2d.d3d.D3DGraphicsDevice.getDeviceCapsNative(I)I+0
j sun.java2d.d3d.D3DGraphicsDevice.access$000(I)I+1
j sun.java2d.d3d.D3DGraphicsDevice$1.run()V+8
v ~StubRoutines::call_stub
j sun.awt.windows.WToolkit.eventLoop()V+0
j sun.awt.windows.WToolkit.run()V+58
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub


So, according to http://docs.oracle.com/javase/7/docs/technotes/guides/2d/flags.html
we can switch to OpenGL.

- Create empty file SweetHome3D.l4j.ini near SweetHome3D.l4j.exe
- Add "-Dsun.java2d.opengl=true" into that file.

After these steps SH3D works for me at latest Windows 10 1703.