Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-11-14 Thread Felix Natter
Hi Ben,
Hi Emmanuel,

very soon freeplane 1.7.2 will be released,
with full openjdk 11 support (I hope Sunday).

Cheers and Best Regards
Felix



> Am 14.11.2018 um 12:56 schrieb Emmanuel Bourg :
> 
> Hi Ben,
> 
> Could you try again with OpenJDK 11 please? This is the new default Java
> runtime now.
> 
> Emmanuel Bourg
> 
> 
> On Sun, 6 May 2018 11:03:42 +1200 Ben Caradoc-Davies 
> wrote:
>> On 05/05/18 20:01, Felix Natter wrote:
>>> Freeplane upstream has made me aware that this is an OpenJDK issue:
>>> https://bugs.openjdk.java.net/browse/JDK-8202580
>>> This very well fits your logs:
>>>   at
>>>   sun.java2d.pipe.ShapeSpanIterator.lineTo(java.desktop@10.0.1/Native
>>>   Method)
>>> So I think we can close this bug since it's not something fixable in
>>> Freeplane? Please use OpenJDK-9 meanwhile.
>> 
>> Thanks, Felix. That looks convincing. I agree that this is an OpenJDK 
>> issue, so I will reassign this to openjdk-10 and set forwarded to the 
>> OpenJDK issue. I will test again when OpenJDK 10 is fixed. Until then I 
>> am using a wrapper script to set OpenJDK 8.
>> 
>> Kind regards,
>> 
>> -- 
>> Ben Caradoc-Davies 
>> Director
>> Transient Software Limited 
>> New Zealand
>> 
>> 
> 
> -- 
> To unsubscribe, send mail to 897566-unsubscr...@bugs.debian.org.



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-11-14 Thread Emmanuel Bourg
Hi Ben,

Could you try again with OpenJDK 11 please? This is the new default Java
runtime now.

Emmanuel Bourg


On Sun, 6 May 2018 11:03:42 +1200 Ben Caradoc-Davies 
wrote:
> On 05/05/18 20:01, Felix Natter wrote:
> > Freeplane upstream has made me aware that this is an OpenJDK issue:
> > https://bugs.openjdk.java.net/browse/JDK-8202580
> > This very well fits your logs:
> >at
> >sun.java2d.pipe.ShapeSpanIterator.lineTo(java.desktop@10.0.1/Native
> >Method)
> > So I think we can close this bug since it's not something fixable in
> > Freeplane? Please use OpenJDK-9 meanwhile.
> 
> Thanks, Felix. That looks convincing. I agree that this is an OpenJDK 
> issue, so I will reassign this to openjdk-10 and set forwarded to the 
> OpenJDK issue. I will test again when OpenJDK 10 is fixed. Until then I 
> am using a wrapper script to set OpenJDK 8.
> 
> Kind regards,
> 
> -- 
> Ben Caradoc-Davies 
> Director
> Transient Software Limited 
> New Zealand
> 
> 



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-05 Thread Ben Caradoc-Davies

On 05/05/18 20:01, Felix Natter wrote:

Freeplane upstream has made me aware that this is an OpenJDK issue:
https://bugs.openjdk.java.net/browse/JDK-8202580
This very well fits your logs:
   at
   sun.java2d.pipe.ShapeSpanIterator.lineTo(java.desktop@10.0.1/Native
   Method)
So I think we can close this bug since it's not something fixable in
Freeplane? Please use OpenJDK-9 meanwhile.


Thanks, Felix. That looks convincing. I agree that this is an OpenJDK 
issue, so I will reassign this to openjdk-10 and set forwarded to the 
OpenJDK issue. I will test again when OpenJDK 10 is fixed. Until then I 
am using a wrapper script to set OpenJDK 8.


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-05 Thread Felix Natter
Ben Caradoc-Davies  writes:

> On 04/05/18 06:09, Felix Natter wrote:
>> hello Ben,
>> thank you for the report. Could you please provide a sample map (without
>> confidential information ;-)) and instructions for reproducing (insert
>> child anywhere + type two letters?)
>> Also, is there anything suspicious in the log
>> (~/.config/freeplane/1.6.x/logs/log.0 or start from console)?
>> Thanks and Best Regards,
>
> Felix,

Hi Ben,

> please find attached a sample map test.mm. To reproduce, hover over the
> smaller (blue) Test node, press Insert to insert a new node, and start
> typing "Test". With OpenJDK 10, Freeplane hangs most of the time after
> typing "Te".

many thanks for the logs, very much appreciated!

> I have also attached the console and log.0 logs, and an OpenJDK 8 console
> log for comparison (but I did not see any substantive differences).

Freeplane upstream has made me aware that this is an OpenJDK issue:
https://bugs.openjdk.java.net/browse/JDK-8202580

This very well fits your logs:
  at
  sun.java2d.pipe.ShapeSpanIterator.lineTo(java.desktop@10.0.1/Native
  Method)

So I think we can close this bug since it's not something fixable in
Freeplane? Please use OpenJDK-9 meanwhile.

Cheers and Best Regards,
-- 
Felix Natter
debian/rules!



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-04 Thread Ben Caradoc-Davies

Felix,

the Freeplane process consumes 100% CPU while frozen. I have attached 
five successive jstack dumps of a single frozen process. Diffing these 
shows a lot of activity in marlin:



$ diff jstack.3.log jstack.4.log
1c1
< 2018-05-05 11:41:41
---
> 2018-05-05 11:42:14
134,140c134,140
< 	at 
sun.java2d.pipe.ShapeSpanIterator.closePath(java.desktop@10.0.1/Native 
Method)
< 	at 
sun.java2d.marlin.DRendererContext$PathConsumer2DAdapter.closePath(java.desktop@10.0.1/DRendererContext.java:240)
< 	at 
sun.java2d.marlin.DStroker.emitClose(java.desktop@10.0.1/DStroker.java:731)
< 	at 
sun.java2d.marlin.DStroker.finish(java.desktop@10.0.1/DStroker.java:667)
< 	at 
sun.java2d.marlin.DStroker.moveTo(java.desktop@10.0.1/DStroker.java:505)
< 	at 
sun.java2d.marlin.DStroker.moveTo(java.desktop@10.0.1/DStroker.java:481)

 	at 
sun.java2d.pipe.ShapeSpanIterator.lineTo(java.desktop@10.0.1/Native Method)
> 	at 
sun.java2d.marlin.DRendererContext$PathConsumer2DAdapter.lineTo(java.desktop@10.0.1/DRendererContext.java:235)
> 	at 
sun.java2d.marlin.DStroker.emitLineTo(java.desktop@10.0.1/DStroker.java:675)
> 	at 
sun.java2d.marlin.DStroker.lineTo(java.desktop@10.0.1/DStroker.java:548)
> 	at 
sun.java2d.marlin.DStroker.lineTo(java.desktop@10.0.1/DStroker.java:517)
> 	at 
sun.java2d.marlin.DDasher.emitSeg(java.desktop@10.0.1/DDasher.java:233)

>at sun.java2d.marlin.DDasher.goTo(java.desktop@10.0.1/DDasher.java:272)


$ diff jstack.4.log jstack.5.log
1c1
< 2018-05-05 11:42:14
---
> 2018-05-05 11:43:02
136,140c136,141
< 	at 
sun.java2d.marlin.DStroker.emitLineTo(java.desktop@10.0.1/DStroker.java:675)
< 	at 
sun.java2d.marlin.DStroker.lineTo(java.desktop@10.0.1/DStroker.java:548)
< 	at 
sun.java2d.marlin.DStroker.lineTo(java.desktop@10.0.1/DStroker.java:517)
< 	at 
sun.java2d.marlin.DDasher.emitSeg(java.desktop@10.0.1/DDasher.java:233)

 	at 
sun.java2d.marlin.DHelpers$PolyStack.popAll(java.desktop@10.0.1/DHelpers.java:650)
> 	at 
sun.java2d.marlin.DStroker.emitReverse(java.desktop@10.0.1/DStroker.java:615)
> 	at 
sun.java2d.marlin.DStroker.finish(java.desktop@10.0.1/DStroker.java:649)
> 	at 
sun.java2d.marlin.DStroker.moveTo(java.desktop@10.0.1/DStroker.java:505)
> 	at 
sun.java2d.marlin.DStroker.moveTo(java.desktop@10.0.1/DStroker.java:481)

>at sun.java2d.marlin.DDasher.goTo(java.desktop@10.0.1/DDasher.java:270)


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand
2018-05-05 11:38:53
Full thread dump OpenJDK 64-Bit Server VM (10.0.1+10-Debian-3 mixed mode):

Threads class SMR info:
_java_thread_list=0x7f391c000b20, length=24, elements={
0x7f39f4012000, 0x7f39f41bc000, 0x7f39f41be000, 0x7f39f41c7000,
0x7f39f41d1800, 0x7f39f41d3800, 0x7f39f41d5800, 0x7f39f41d7800,
0x7f39f41d9800, 0x7f39f4286000, 0x7f39f4295000, 0x7f39f4474800,
0x7f39f4478000, 0x7f39f451e800, 0x7f39f45ba000, 0x7f393005e800,
0x7f39305ac800, 0x7f39305ad800, 0x7f3930617000, 0x7f3930651800,
0x7f39307a2800, 0x7f39042fb800, 0x7f390402, 0x7f3978001000
}

"main" #1 prio=5 os_prio=0 tid=0x7f39f4012000 nid=0x4d6f in Object.wait()  [0x7f39fd3ea000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(java.base@10.0.1/Native Method)
	- waiting on 
	at org.knopflerfish.framework.SystemBundle.waitForStop(SystemBundle.java:252)
	- waiting to re-lock in wait() <0xe028> (a java.lang.Object)
	at org.knopflerfish.framework.Main.handleArgs(Main.java:731)
	at org.knopflerfish.framework.Main.start(Main.java:224)
	at org.knopflerfish.framework.Main.main(Main.java:156)
	at org.freeplane.launcher.Launcher.run(Launcher.java:127)
	at org.freeplane.launcher.Launcher.launch(Launcher.java:80)
	at org.freeplane.launcher.Launcher.main(Launcher.java:67)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x7f39f41bc000 nid=0x4d85 waiting on condition  [0x7f39a2f78000]
   java.lang.Thread.State: RUNNABLE
	at java.lang.ref.Reference.waitForReferencePendingList(java.base@10.0.1/Native Method)
	at java.lang.ref.Reference.processPendingReferences(java.base@10.0.1/Reference.java:174)
	at java.lang.ref.Reference.access$000(java.base@10.0.1/Reference.java:44)
	at java.lang.ref.Reference$ReferenceHandler.run(java.base@10.0.1/Reference.java:138)

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x7f39f41be000 nid=0x4d86 in Object.wait()  [0x7f39a2e77000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(java.base@10.0.1/Native Method)
	- waiting on 
	at java.lang.ref.ReferenceQueue.remove(java.base@10.0.1/ReferenceQueue.java:151)
	- waiting to re-lock in wait() <0xe02d12b0> (a java.lang.ref.ReferenceQueue$Lock)
	at 

Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-04 Thread Ben Caradoc-Davies

On 04/05/18 06:09, Felix Natter wrote:

hello Ben,
thank you for the report. Could you please provide a sample map (without
confidential information ;-)) and instructions for reproducing (insert
child anywhere + type two letters?)
Also, is there anything suspicious in the log
(~/.config/freeplane/1.6.x/logs/log.0 or start from console)?
Thanks and Best Regards,


Felix,

please find attached a sample map test.mm. To reproduce, hover over the 
smaller (blue) Test node, press Insert to insert a new node, and start 
typing "Test". With OpenJDK 10, Freeplane hangs most of the time after 
typing "Te".


I have also attached the console and log.0 logs, and an OpenJDK 8 
console log for comparison (but I did not see any substantive differences).


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand















































































































org.knopflerfish.framework.readonly=true
org.knopflerfish.gosg.jars=reference:file:/usr/share/freeplane/core/
org.freeplane.user.dir=/home/ben/tmp/freeplane
org.freeplane.basedirectory=/usr/share/freeplane
java.security.policy=/usr/share/freeplane/freeplane.policy
org.osgi.framework.storage=/usr/share/freeplane/fwdir
Knopflerfish OSGi framework launcher, version 
Copyright 2003-2018 Knopflerfish. All Rights Reserved.
See http://www.knopflerfish.org for more information.

Created Framework: org.knopflerfish.framework, version=8.0.5.
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.latex (id#2)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.script (id#3)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.jsyntaxpane (id#4)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.formula (id#5)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.svg (id#6)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.openmaps (id#7)
Installed: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.bugreport (id#8)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.latex (id#2)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.script (id#3)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.jsyntaxpane (id#4)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.formula (id#5)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.svg (id#6)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.openmaps (id#7)
Started: reference:file:/usr/share/freeplane/plugins/org.freeplane.plugin.bugreport (id#8)
May 05, 2018 11:15:13 AM org.freeplane.core.util.LogUtils info
INFO: language resources for en found
May 05, 2018 11:15:13 AM org.freeplane.core.util.LogUtils info
INFO: freeplane_version = 1.6.13; freeplane_xml_version = freeplane 1.6.0
git revision = 43c1334c1a7165c5bd0a8160033be57335ec80b8 Dimitry Polivaev 2018-02-04T18:40:26Z
java_version = 1.8.0_171; os_name = Linux; os_version = 4.16.0-1-amd64

STDERR: Error parsing gtk-icon-sizes string: ''May 05, 2018 11:15:14 AM org.freeplane.core.util.LogUtils info
INFO: added parsing support for standard date format dd/MM/yy
May 05, 2018 11:15:14 AM org.freeplane.core.util.LogUtils info
INFO: added parsing support for standard date time format dd/MM/yy HH:mm
May 05, 2018 11:15:14 AM org.freeplane.core.util.LogUtils info
INFO: available locales not found
May 05, 2018 11:15:14 AM org.freeplane.core.util.LogUtils info
INFO: available locales not found
May 05, 2018 11:15:15 AM org.freeplane.core.util.LogUtils info
INFO: extending script's classpath by [/home/ben/.config/freeplane/1.6.x/lib]
May 05, 2018 11:15:15 AM org.freeplane.core.util.LogUtils info
INFO: Loaded properties from bundle://3:1/org/freeplane/plugin/script/defaults.properties
May 05, 2018 11:15:15 AM org.freeplane.core.util.LogUtils info
INFO: looking for scripts with the following endings: [js, groovy]
May 05, 2018 11:15:15 AM org.freeplane.core.util.LogUtils info
INFO: Loaded properties from bundle://5:1/org/freeplane/plugin/formula/defaults.properties

STDOUT: Framework launchedMay 05, 2018 11:15:16 AM org.freeplane.core.util.LogUtils info
INFO: requesting mode: MindMap
May 05, 2018 11:15:17 AM org.freeplane.core.util.LogUtils info
INFO: menu items to execute: []
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.freeplane.launcher.Launcher (file:/usr/share/freeplane/freeplanelauncher.jar) to field sun.awt.X11.XToolkit.awtAppClassName
WARNING: Please consider reporting this to the maintainers of org.freeplane.launcher.Launcher
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-03 Thread Felix Natter
hello Ben,

thank you for the report. Could you please provide a sample map (without
confidential information ;-)) and instructions for reproducing (insert
child anywhere + type two letters?)

Also, is there anything suspicious in the log
(~/.config/freeplane/1.6.x/logs/log.0 or start from console)?

Thanks and Best Regards,
-- 
Felix Natter



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-02 Thread Ben Caradoc-Davies

The freeze can be prevented by trying to debug it with:

-Xdebug -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n

:-(

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Bug#897566: freeplane freezes while entering text node under OpenJDK 10

2018-05-02 Thread Ben Caradoc-Davies
Package: freeplane
Version: 1.6.13-1
Severity: normal

Dear Maintainer,

pressing the Insert key to add a text node then typing text results in a
complete freeze of freeplane after two letters are typed. The freeze does not
occur under OpenJDK 8 or OpenJDK 9. The freeze does not occur for all mind
maps, but once it has occurred, the freeze is repeatable every time.

Kind regards,
Ben.



-- Package-specific info:
[debug] /usr/bin/freeplane: Picking up the JVM designated by the alternatives 
system: 
[debug] /usr/bin/freeplane:   JAVA_HOME = '/usr/lib/jvm/java-10-openjdk-amd64'
[debug] /usr/bin/freeplane: Found JAVA_HOME = 
'/usr/lib/jvm/java-10-openjdk-amd64'
[debug] /usr/bin/freeplane: Found JAVA_CMD = 
'/usr/lib/jvm/java-10-openjdk-amd64/bin/java'
DEBUG:   Freeplane parameters are ''.
DEBUG:   Linux ripley 4.15.0-3-amd64 #1 SMP Debian 4.15.17-1 (2018-04-19) 
x86_64 GNU/Linux
No LSB modules are available.
DEBUG:   Distributor ID:Debian
Description:Debian GNU/Linux unstable (sid)
Release:unstable
Codename:   sid
DEBUG:   The following DEB packages are installed:
ii  freeplane   1.6.13-1   allJava 
program for working with Mind Maps
DEBUG:   Link '/usr/bin/freeplane' resolved to 
'/usr/share/freeplane/freeplane.sh'.
DEBUG:   Freeplane Directory is '/usr/share/freeplane'.
DEBUG:   Calling: /usr/lib/jvm/java-10-openjdk-amd64/bin/java
 -Xmx512m
 -Dorg.freeplane.basedirectory=/usr/share/freeplane
 -Dorg.freeplane.userfpdir=/home/ben/.config/freeplane
 -Dorg.freeplane.old_userfpdir=/home/ben/.freeplane
 -Dorg.freeplane.globalresourcedir=/usr/share/freeplane/resources
 -Dswing.systemlaf=javax.swing.plaf.metal.MetalLookAndFeel
 -Dorg.freeplane.os.lib.ext=/usr/share/java
 -Dawt.useSystemAAFontSettings=on
 -Dswing.aatext=true
 -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D
 -jar
 /usr/share/freeplane/freeplanelauncher.jar

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages freeplane depends on:
ii  default-jre [java7-runtime]  2:1.10-65
ii  groovy   2.4.15-1
ii  javahelp22.0.05.ds1-9
ii  jmapviewer   2.7+dfsg-1
ii  libavalon-framework-java 4.2.0-10
ii  libbatik-java1.9-3
ii  libcommons-codec-java1.11-1
ii  libcommons-io-java   2.6-2
ii  libcommons-lang-java 2.6-8
ii  libcommons-logging-java  1.2-2
ii  libfop-java  1:2.1-8
ii  libidw-java  1.6.1-1
ii  libjaxp1.3-java  1.3.05-5
ii  libjgoodies-forms-java   1.9.0-3
ii  libjlatexmath-java   1.0.7-1
ii  libjsyntaxpane-java  0.9.6~r156-6
ii  libknopflerfish-osgi-framework-java  6.1.1-3
ii  libmnemonicsetter-java   0.5-1
ii  librhino-java1.7.7.1-1
ii  libsvgsalamander-java1.1.1+dfsg-2
ii  libxerces2-java  2.11.0-8
ii  libxml-commons-external-java 1.4.01-3
ii  libxmlgraphics-commons-java  2.2-1
ii  openjdk-10-jre [java7-runtime]   10.0.1+10-3
ii  openjdk-8-jre [java7-runtime]8u171-b11-1
ii  openjdk-9-jre [java7-runtime]9.0.4+12-4
ii  simplyhtml   0.17.3+dfsg1-1

Versions of packages freeplane recommends:
ii  java-wrappers  0.3
ii  xdg-utils  1.1.2-2

Versions of packages freeplane suggests:
pn  freeplane-scripting-api  

-- no debconf information