Re: "AtkWrapper not found" error impacting JOSM on Ubuntu/Mint

2018-08-24 Thread Vincent Privat
Hello,
The bug is closed so there is nothing to expect from OpenJDK. The solution
must come from Debian or a new bug created.
The Java version which introduced the regression is
10.0.2+13-Ubuntu-1ubuntu0.18.04.1
because it contains the fix to move accessibility.properties in the "conf"
folder. The issue did not occur before because the configuration file
enabling ATK wrapper was not found by openjdk. A few hours after this
version was delivered by Ubuntu we started to receive a dozen of bug
reports, until I delivered a JOSM hotfix mitigating the issue.

Patching openjdk with your try/catch proposal and making the ATK wrapper a
Recommends sounds a good idea.

Don't wait for openjdk guys for an answer: they simply don't care anymore
with desktop technologies.

Cheers,
Vincent

Le ven. 24 août 2018 à 11:47, Samuel Thibault  a
écrit :

> Hello,
>
> Vincent Privat, le mer. 22 août 2018 21:01:16 +0200, a ecrit:
> > Samuel, do you know when the root issue will be fixed in Java ATK
> wrapper?
>
> The root issue is in openjdk, not the wrapper. Openjdk has apparently
> removed the way that was used to load the wrapper, without apparently
> making sure that another way was implemented. I have forwarded the issue
> upstream
>
> http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8204862
>
> but apparently they don't have the issue (I guess they don't actually
> manage to enable the wrapper in the configuration file).
>
> > > > Since today we are spammed by bug reports from Linux Mint and Ubuntu
> when
> > > > people try to launch JOSM with the latest Java update
> > > > (10.0.2+13-Ubuntu-1ubuntu0.18.04.1):
>
> Which version is introducing the issue exactly?  AFAIK it's the whole
> openjdk >= 9 which poses the problem.
>
> > Has it ever been considered that this package is made optional rather
> than a
> > strict dependency of openjdk--jre?
>
> The problem is not the dependency, but what openjdk itself is doing. ATM
> it seems to be insisting on loading the wrapper even when it's not
> available.  I guess catching exceptions around
> src/java.desktop/share/classes/java/awt/Toolkit.java's getDefaultToolkit
> call to loadAssistiveTechnologies, to just print the exception but not
> abort, would allow to make the dependency a Recommends only.
>
> Concerning actually managing to load the wrapper, see the backlog of
> #900912. I have commited to the git repo of java-atk-wrapper what is
> said to be needed for making it loadable with openjdk 9 and later, but
> as I said there, we still seem to be lacking in openjdk a path where the
> wrapper can be put for openjdk to find it. And it's been a month without
> anybody answering.
>
> Samuel
>


Re: "AtkWrapper not found" error impacting JOSM on Ubuntu/Mint

2018-08-22 Thread Vincent Privat
JOSM 14178 has been released as new tested version to workaround this
problem.
Samuel, do you know when the root issue will be fixed in Java ATK wrapper?
Has it ever been considered that this package is made optional rather than
a strict dependency of openjdk--jre? Most users don't need it.
Cheers,
Vincent

Le mer. 22 août 2018 à 02:49, Vincent Privat 
a écrit :

> I remember too, it was indeed a nightmare and I don't want to live that
> again.
> It took me a while but I found a workaround that doesn't need any user
> action nor any adherence to ATK wrapper.
> We can just catch the AWTError and try again to re-create our MainFrame.
> As the ATK initialization fails only after the AWT toolkit has been
> created, the second call succeeds:
> https://josm.openstreetmap.de/changeset/14177/josm
>
> Kevin, can you please check tomorrow that it works for you too?
> I'm leaving the ticket open a few days as we will probably receive many
> more bug reports this week.
>
> Right now it's too difficult to disable ATK on Java 10 and remain
> compatible with Java 8. I'll revisit this topic once we migrate to Java 11.
>
> Cheers,
> Vincent
>
> Le mer. 22 août 2018 à 01:14, Kevin Kenny  a
> écrit :
>
>> On Tue, Aug 21, 2018 at 5:48 PM Vincent Privat
>>  wrote:
>> >
>> > I found this bug:
>> > https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1788250
>> > Vincent
>> >
>> > Le mar. 21 août 2018 à 23:27, Vincent Privat <
>> vinc...@josm.openstreetmap.de>
>> > a écrit :
>> >
>> > > Hello,
>> > > Since today we are spammed by bug reports from Linux Mint and Ubuntu
>> when
>> > > people try to launch JOSM with the latest Java update
>> > > (10.0.2+13-Ubuntu-1ubuntu0.18.04.1):
>> > >
>> > > https://josm.openstreetmap.de/ticket/1
>> > >
>> > > The error is "ClassNotFoundException:
>> org.GNOME.Accessibility.AtkWrapper".
>> > >
>> > > Is it a known issue? We cannot really workaround it unless telling
>> every
>> > > impacted user to manually disable ATK wrapper in
>> accessibility.properties.
>> > >
>> > > Thanks,
>> > > Vincent
>> > >
>>
>> Even deleting the ATK wrapper in accessibility.properties doesn't help,
>> you also have to launch JOSM with a command like
>>
>> java -Xmx1g -Xbootclasspath/a:/usr/share/java/java-atk-wrapper.jar
>> -jar ~/josm/josm-tested.jar
>>
>> When I do both things, it appears to work around the problem.
>>
>> AtkWrapper is a nightmare. I remember when
>> https://josm.openstreetmap.de/ticket/12022
>> had me using Meerkartor for a while.
>>
>


Re: "AtkWrapper not found" error impacting JOSM on Ubuntu/Mint

2018-08-21 Thread Vincent Privat
I remember too, it was indeed a nightmare and I don't want to live that
again.
It took me a while but I found a workaround that doesn't need any user
action nor any adherence to ATK wrapper.
We can just catch the AWTError and try again to re-create our MainFrame. As
the ATK initialization fails only after the AWT toolkit has been created,
the second call succeeds:
https://josm.openstreetmap.de/changeset/14177/josm

Kevin, can you please check tomorrow that it works for you too?
I'm leaving the ticket open a few days as we will probably receive many
more bug reports this week.

Right now it's too difficult to disable ATK on Java 10 and remain
compatible with Java 8. I'll revisit this topic once we migrate to Java 11.

Cheers,
Vincent

Le mer. 22 août 2018 à 01:14, Kevin Kenny  a
écrit :

> On Tue, Aug 21, 2018 at 5:48 PM Vincent Privat
>  wrote:
> >
> > I found this bug:
> > https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1788250
> > Vincent
> >
> > Le mar. 21 août 2018 à 23:27, Vincent Privat <
> vinc...@josm.openstreetmap.de>
> > a écrit :
> >
> > > Hello,
> > > Since today we are spammed by bug reports from Linux Mint and Ubuntu
> when
> > > people try to launch JOSM with the latest Java update
> > > (10.0.2+13-Ubuntu-1ubuntu0.18.04.1):
> > >
> > > https://josm.openstreetmap.de/ticket/1
> > >
> > > The error is "ClassNotFoundException:
> org.GNOME.Accessibility.AtkWrapper".
> > >
> > > Is it a known issue? We cannot really workaround it unless telling
> every
> > > impacted user to manually disable ATK wrapper in
> accessibility.properties.
> > >
> > > Thanks,
> > > Vincent
> > >
>
> Even deleting the ATK wrapper in accessibility.properties doesn't help,
> you also have to launch JOSM with a command like
>
> java -Xmx1g -Xbootclasspath/a:/usr/share/java/java-atk-wrapper.jar
> -jar ~/josm/josm-tested.jar
>
> When I do both things, it appears to work around the problem.
>
> AtkWrapper is a nightmare. I remember when
> https://josm.openstreetmap.de/ticket/12022
> had me using Meerkartor for a while.
>


Re: "AtkWrapper not found" error impacting JOSM on Ubuntu/Mint

2018-08-21 Thread Vincent Privat
I found this bug:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1788250
Vincent

Le mar. 21 août 2018 à 23:27, Vincent Privat 
a écrit :

> Hello,
> Since today we are spammed by bug reports from Linux Mint and Ubuntu when
> people try to launch JOSM with the latest Java update
> (10.0.2+13-Ubuntu-1ubuntu0.18.04.1):
>
> https://josm.openstreetmap.de/ticket/1
>
> The error is "ClassNotFoundException: org.GNOME.Accessibility.AtkWrapper".
>
> Is it a known issue? We cannot really workaround it unless telling every
> impacted user to manually disable ATK wrapper in accessibility.properties.
>
> Thanks,
> Vincent
>


"AtkWrapper not found" error impacting JOSM on Ubuntu/Mint

2018-08-21 Thread Vincent Privat
Hello,
Since today we are spammed by bug reports from Linux Mint and Ubuntu when
people try to launch JOSM with the latest Java update
(10.0.2+13-Ubuntu-1ubuntu0.18.04.1):

https://josm.openstreetmap.de/ticket/1

The error is "ClassNotFoundException: org.GNOME.Accessibility.AtkWrapper".

Is it a known issue? We cannot really workaround it unless telling every
impacted user to manually disable ATK wrapper in accessibility.properties.

Thanks,
Vincent