Bug#987896: GUI drawing error due to Dsun.java2d.opengl=true

Markus Koschany apo at debian.org
Sat May 1 19:05:59 BST 2021


Control: severity -1 normal

Hello,


On Sat, 1 May 2021 17:14:57 +0000 (UTC) Alexis PM <miscelaneanatural at yahoo.es>
wrote:
> Package: sweethome3d
> Version: 6.1.2+dfsg-2
> Severity: grave
> Justification: package unusable
> 
> Widespread GUI drawing errors (entire sections of the window appear black
when interacting with GUI elements hovering the mouse, clicking on buttons,
pulling down menus,...) make sweethome3d unusable. This happens both on my
laptop and inside a QEMU virtual machine on another computer.
> 
> The simple solution is delete
> -Dsun.java2d.opengl=true
> in
> /usr/share/sweethome3d/sweethome3d.sh
> 
> If you want to keep the "-Dsun.java2d.opengl" option with value "true" for
those computers where this option is not problematic (I don't know how to
identify it) then a "if" conditional is necessary for JAVA_ARGS in
/usr/share/sweethome3d/sweethome3d.sh. If in doubt, it is best to delete it
from the file.

This is not a fundamental flaw which makes sweethome3d unusable on all systems
hence I set the severity to normal.

You can override this setting by executing

	export _JAVA_OPTIONS='-Dsun.java2d.opengl=false'

I recommend to use sweethome3d with hardware acceleration otherwise the
performance may be rather poor, especially if you use the 3D features. The
change to activate and set sun.java2d.opengl to true was intentional. See also 

https://bugs.debian.org/854030

I believe this setting is useful for most users of sweethome3d and should be
true by default. At the moment I don't know how the script can be improved to
detect corner cases like your system. Please send patches to this bug report if
you find a solution that works best for all users.

Regards,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210501/ee8cfd12/attachment.sig>


More information about the pkg-java-maintainers mailing list