Modify

Opened 5 months ago

Closed 5 months ago

#18273 closed defect (othersoftware)

Mouse input issues

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report linux Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Open JOSM

What is the expected result?

Mouse clicking on UI element works.

What happens instead?

Mouse clicks on UI elements does not work.

Please provide any additional information below. Attach a screenshot if possible.

This issue is not always present; sometimes when opening JOSM it happens that left-clicks on UI elements (buttons, menus) are not registered. Seems to be similar to (or related to) issues #16401 and #13173.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-09-29 23:59:43 +0200 (Sun, 29 Sep 2019)
Revision:15390
Build-Date:2019-09-29 22:01:37
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (15390 en) Linux Ubuntu 18.04.3 LTS
Memory Usage: 358 MB / 2048 MB (140 MB allocated, but free)
Java version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, Ubuntu, OpenJDK 64-Bit Server VM
Screen: :0.0 3840x2160
Maximum Screen Size: 3840x2160
Java package: openjdk-11-jre:amd64-11.0.4+11-1ubuntu2~18.04.3
WebStart package: icedtea-netx:amd64-1.8-0ubuntu8~18.04
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1
libcommons-compress-java: libcommons-compress-java:all-1.18-1~18.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20171026-2
liboauth-signpost-java: liboauth-signpost-java:all-1.2.1.2-1.5
VM arguments: [--add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws]

Plugins:
+ ImportImagePlugin
+ ShapeTools (1240)
+ apache-commons (35092)
+ apache-http (34908)
+ auto_tools (73)
+ buildings_tools (35171)
+ ejml (35122)
+ geotools
+ imagery_offset_db (34908)
+ javafx-unixoid (34908)
+ jaxb (35014)
+ jna (34908)
+ jts (35122)
+ log4j (34908)
+ opendata (35156)
+ pt_assistant (34678)
+ public_transport (34977)
+ terracer (34977)
+ utilsplugin2 (35177)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/HiDPISupport&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1

Last errors/warnings:
- E: java.lang.UnsatisfiedLinkError: <josm.userdata>/plugins/javafx/libavplugin-54.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
- E: java.lang.UnsatisfiedLinkError: <josm.userdata>/plugins/javafx/libavplugin-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
- E: java.lang.UnsatisfiedLinkError: <josm.userdata>/plugins/javafx/libavplugin-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin geotools. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: javax/sql/DataSource. Cause: java.lang.ClassNotFoundException: javax.sql.DataSource
- W: Disable plugin - Could not load plugin 'geotools'. Delete from preferences?
- E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin ImportImagePlugin. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: Could not initialize class org.geotools.referencing.CRS
- W: Disable plugin - Could not load plugin 'ImportImagePlugin'. Delete from preferences?
- W: Cannot start IPv4 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
- W: Cannot start IPv6 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect

Attachments (0)

Change History (12)

comment:1 Changed 5 months ago by Don-vip

Description: modified (diff)

comment:2 Changed 5 months ago by Don-vip

Owner: changed from team to anonymous
Status: newneedinfo

We need a lot more info to get an idea what's causing this. As it seems you're alone to face this problem, only you can characterize the issue. For example:

  • does it happen if you disable all plugins?
  • does it happen with Java 8 ?
  • does it happen with Java 13 ?
  • does it happen if you run JOSM from the Ubuntu package and not from WebStart?

comment:3 Changed 5 months ago by anonymous

Thanks for the quick reply! Here's an attempt at answering your questions:

  • Can't disable the plugins without the ability to left-click (is there any command to run in 'safe-mode' or equivalent?)
  • Still happens with Java 8
  • Don't have Java 13 installed (does not seem to be available in the 18.04 repos)
  • Running josm from the command line I get an error message ('No valid JVM found to run JOSM')

Let me know if I can provide additional info

comment:4 Changed 5 months ago by anonymous

Managed to run JOSM without plugins (and Java 11) and the problem persists.

comment:5 in reply to:  3 Changed 5 months ago by Don-vip

Replying to anonyme:

  • Running josm from the command line I get an error message ('No valid JVM found to run JOSM')

This is strange. Does your package use the official JOSM launcher?

Can you please list the contents of your /usr/lib/jvm/ folder and share the output of dpkg --get-selections 'openjdk*'?

comment:6 Changed 5 months ago by anonymous

Thanks for your help with this!

In /usr/lib/jvm I have

default-java  
java-1.11.0-openjdk-amd64  
java-11-openjdk-amd64  
java-1.8.0-openjdk-amd64
java-8-openjdk-amd64

and

➜ dpkg --get-selections 'openjdk*'
openjdk-11-jre:amd64                            install
openjdk-11-jre-headless:amd64                   install
openjdk-8-jdk:amd64                             install
openjdk-8-jdk-headless:amd64                    install
openjdk-8-jre:amd64                             install
openjdk-8-jre-headless:amd64                    install

As for the package, I've been using the latest josm build (15390)

comment:7 Changed 5 months ago by Don-vip

In the launcher, can you please try to replace this line:
if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null ; then

by
if dpkg --get-selections 'openjdk-*-jre:$ARCH' | grep install$ > /dev/null ; then

and try again?

comment:8 Changed 5 months ago by anonymous

That fixed the 'no valid jvm found to run josm' issue when using the system-provided josm; the version it launches is build 13756.

comment:9 Changed 5 months ago by Don-vip

OK. When running JOSM like this, does it solve your mouse issue?

comment:10 Changed 5 months ago by Don-vip

In 15491/josm:

see #18273 - fix jvm detection in linux startup script

comment:11 Changed 5 months ago by anonymous

The issue appears to be solved; then again this has always been the case: sometimes mouse input is problematic, and restarting the computer solves it. I'll update the issue if this happens again

comment:12 in reply to:  11 Changed 5 months ago by Don-vip

Keywords: linux added
Resolution: othersoftware
Status: needinfoclosed

Replying to anonyme:

this has always been the case: sometimes mouse input is problematic, and restarting the computer solves it

Then it has nothing to do with JOSM.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.