Bug#885383: sweethome3d: crashes during start with Cursor exception

2017-12-26 Thread Nagy Attila

On 12/26/2017 07:43 PM, Markus Koschany wrote:

Hi,

the line find_java_runtime java6 is basically correct. It is the minimum
requirement for running Sweethome3d. Nowadays it should be java7 though
because java6 is no longer supported in Debian.

Actually making the Oracle JDK the preferred JDK via the alternative
mechanism:

update-alternatives --config java

should resolve your issue. If not, then we have a bug in java-wrappers.
It seems this is the case. I've done this right after the installation 
of Oracle 8u152.
After reading a little bit about the find_java_runtime function, it 
seems that it only uses the alternatives list if it gets no parameter.



If two java8 JRE are installed on the same system, java-wrappers should
detect and use the one which is the preferred JRE based on the
update-alternative mechanism.

If you are really sure that the Oracle JRE is already the preferred one,
please report back and I'm going to reassign this bug report to
java-wrappers. The real issue is in openjdk though but this will be
fixed eventually.
Yes, I'm absolutely sure I've set the default. At one point I even tried 
to set the /usr/lib/jvm/default-java symlink to point to the newly 
installed directory but this got ignored as well.


So please reassign this bug.
As a side note the documentation of find_java_runtime doesn't really 
mention the role of the parameter (it's the minimum version or the 
wanted version), so maybe this should be fixed as well.


Best regards,
Tylla

__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#885383: sweethome3d: crashes during start with Cursor exception

2017-12-26 Thread Markus Koschany
Am 26.12.2017 um 17:26 schrieb Nagy Attila:
[...]
> As it turned out the main point is:
> java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero
> occurred while creating cursor CopyDrop.32x32
> 
> which is a known Java bug: see 
> https://bugs.openjdk.java.net/browse/JDK-8173853
> 
> fixed in Java 8u152 and 9 (see https://bugs.launchpad.net/ubuntu/+source/xorg-
> server/+bug/1232471).
> 
> But updating Java (actually installing Oracle JVM as OpenJDK 8u152 is still
> unavailable) did not solved the problem even after changing the alternatives.
> 
> As it turned out /usr/share/sweethome3d/sweethome3d.sh contains a line:
> find_java_runtime java6
> 
> If I change this to:
> find_java_runtime
> 
> the program starts and works as expected. (the used java-wrappers script takes
> care of using the alternatives version if no specific version is given as a
> parameter).
> 
> I don't know if this change causes some problems under other circumstances or
> the java6 version limitation is needed at all but I think maybe this change
> could be included.

Hi,

the line find_java_runtime java6 is basically correct. It is the minimum
requirement for running Sweethome3d. Nowadays it should be java7 though
because java6 is no longer supported in Debian.

Actually making the Oracle JDK the preferred JDK via the alternative
mechanism:

update-alternatives --config java

should resolve your issue. If not, then we have a bug in java-wrappers.
If two java8 JRE are installed on the same system, java-wrappers should
detect and use the one which is the preferred JRE based on the
update-alternative mechanism.

If you are really sure that the Oracle JRE is already the preferred one,
please report back and I'm going to reassign this bug report to
java-wrappers. The real issue is in openjdk though but this will be
fixed eventually.

Regards,

Markus




signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#885383: sweethome3d: crashes during start with Cursor exception

2017-12-26 Thread tony mancill
On Tue, Dec 26, 2017 at 05:26:07PM +0100, Nagy Attila wrote:
> Package: sweethome3d
> Version: 5.6+dfsg-1
> Severity: important
> Tags: patch
> 
> After installing the latest version (5.6+dfsg-1 from buster) of Sweethome3D on
> my laptop (Lenovo X201) I came across the problem that I could not start the
> program.
> ---> (to cut short the explanation there is a worksforme solution at the end)
(snip)
> ---
> 
> As it turned out the main point is:
> java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero
> occurred while creating cursor CopyDrop.32x32
> 
> which is a known Java bug: see 
> https://bugs.openjdk.java.net/browse/JDK-8173853
> 
> fixed in Java 8u152 and 9 (see https://bugs.launchpad.net/ubuntu/+source/xorg-
> server/+bug/1232471).
> 
> But updating Java (actually installing Oracle JVM as OpenJDK 8u152 is still
> unavailable) did not solved the problem even after changing the alternatives.
> 
> As it turned out /usr/share/sweethome3d/sweethome3d.sh contains a line:
> find_java_runtime java6
> 
> If I change this to:
> find_java_runtime
> 
> the program starts and works as expected. (the used java-wrappers script takes
> care of using the alternatives version if no specific version is given as a
> parameter).
> 
> I don't know if this change causes some problems under other circumstances or
> the java6 version limitation is needed at all but I think maybe this change
> could be included.

Yes, I am certain that the "java6" was added to prefer the java6 runtime
on systems where java5 was also installed, but now it seems to be having
an undesired effect.  So it sounds like we have a bug in the
"javahelper" package as well.

Also, thank you for the information about the cursor CopyDrop.32x32
issue.

Cheers,
tony

__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#885383: sweethome3d: crashes during start with Cursor exception

2017-12-26 Thread Nagy Attila
Package: sweethome3d
Version: 5.6+dfsg-1
Severity: important
Tags: patch

After installing the latest version (5.6+dfsg-1 from buster) of Sweethome3D on
my laptop (Lenovo X201) I came across the problem that I could not start the
program.
---> (to cut short the explanation there is a worksforme solution at the end)
Trying to start it from the console revealed that it crashed with an exception:


java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541)
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803)
at java.awt.dnd.DragSource.load(DragSource.java:131)
at java.awt.dnd.DragSource.(DragSource.java:148)
at com.eteks.sweethome3d.swing.PlanComponent.(Unknown Source)
at com.eteks.sweethome3d.swing.PlanComponent.(Unknown Source)
at
com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createPlanComponent(Unknown
Source)
at
com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createComponents(Unknown
Source)
at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.(Unknown
Source)
at com.eteks.sweethome3d.swing.SwingViewFactory.createPlanView(Unknown
Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.getView(Unknown
Source)
at
com.eteks.sweethome3d.viewcontroller.PlanController$SelectionState.enter(Unknown
Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.setState(Unknown
Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.(Unknown
Source)
at
com.eteks.sweethome3d.viewcontroller.HomeController.getPlanController(Unknown
Source)
at com.eteks.sweethome3d.swing.HomePane.createActions(Unknown Source)
at com.eteks.sweethome3d.swing.HomePane.(Unknown Source)
at com.eteks.sweethome3d.swing.SwingViewFactory.createHomeView(Unknown
Source)
at com.eteks.sweethome3d.viewcontroller.HomeController.getView(Unknown
Source)
at com.eteks.sweethome3d.HomeFramePane.(Unknown Source)
at com.eteks.sweethome3d.HomeFrameController.getView(Unknown Source)
at com.eteks.sweethome3d.HomeFrameController.displayView(Unknown
Source)
at com.eteks.sweethome3d.SweetHome3D$4.collectionChanged(Unknown
Source)
at
com.eteks.sweethome3d.model.CollectionChangeSupport.fireCollectionChanged(Unknown
Source)
at com.eteks.sweethome3d.model.HomeApplication.addHome(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.showDefaultHomeFrame(Unknown
Source)
at com.eteks.sweethome3d.SweetHome3D.start(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D$5.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at
org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:700)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
Caused by: java.awt.AWTException: Exception: class
java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero
occurred while creating cursor CopyDrop.32x32
at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363)
at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539)
... 42 more
Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
at com.eteks.sweethome3d.swing.PlanComponent.(Unknown Source)
at com.eteks.sweethome3d.swing.PlanComponent.(Unknown Source)
at
com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createPlanComponent(Unknown
Source)
at
com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createComponents(Unknown
Source)
at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.(Unknown
Source)
at com.eteks.sweethome3d.swing.SwingViewFactory.createPlanView(Unknown
Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.getView(Unknown
Source)
at
com.eteks.sweethome3d.viewcontroller.PlanController$SelectionState.enter(Unknown
Source)