Modify

Opened 2 years ago

Last modified 11 months ago

#19305 new defect

java.lang.UnsatisfiedLinkError: libgstreamer-lite.so: cannot open shared object file

Reported by: skyper Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin javafx Version:
Keywords: template_report linux java11 Cc: taylor.smock, mdk, spiregrain

Description

What steps will reproduce the problem?

  1. Start JOSM with Mapillary installed from terminal

What is the expected result?

No "SEVERE" messages in terminal log

What happens instead?

Terminal is flooded with "SEVERE" messages about unsatified links

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

I even have libopenjfx-java 11.0.2+1-1 installed on the system, so there is no need to install and use the javafx plugin at all.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-05-27 21:23:59 +0200 (Wed, 27 May 2020)
Revision:16511
Build-Date:2020-05-28 01:30:47
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16511 en) Linux Debian GNU/Linux 10 (buster)
Java version: 11.0.7+10-post-Debian-3deb10u1, Debian, OpenJDK 64-Bit Server VM
Java package: openjdk-11-jre:amd64-11.0.7+10-3~deb10u1

Plugins:
+ Mapillary (1.5.23)
+ apache-commons (35362)
+ apache-http (35092)
+ javafx-unixoid (35375)
+ jna (35092)

Last errors/warnings:
- E: java.lang.UnsatisfiedLinkError: <josm.userdata>/plugins/javafx/libavplugin-ffmpeg-57.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-ffmpeg-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
- 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-ffmpeg-58.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
- E: java.lang.UnsatisfiedLinkError: <josm.userdata>/plugins/javafx/libfxplugins.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
2020-05-28 13:59:11.926 INFO: loading plugin 'javafx-unixoid' (version 35375)
2020-05-28 13:59:12.553 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:12.691 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:12.696 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-56.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:12.724 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-54.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-54.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:12.727 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-58.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-ffmpeg-58.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:13.139 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libfxplugins.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libfxplugins.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

2020-05-28 13:59:13.293 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1834)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLib(JavaFxPlugin.java:134)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.access$000(JavaFxPlugin.java:40)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:118)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin$LibVisitor.visitFile(JavaFxPlugin.java:103)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2724)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.loadNativeLibs(JavaFxPlugin.java:143)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPlugin.<init>(JavaFxPlugin.java:53)
	at org.openstreetmap.josm.plugins.javafx.JavaFxPluginUnixoid.<init>(JavaFxPluginUnixoid.java:18)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:364)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:804)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:890)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:916)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1139)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:904)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:276)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:712)

Attachments (0)

Change History (17)

comment:1 in reply to:  description ; Changed 2 years ago by taylor.smock

Replying to skyper:

I even have libopenjfx-java 11.0.2+1-1 installed on the system, so there is no need to install and use the javafx plugin at all.

There are some helper classes in the javafx plugin, to make it easier to use JavaFX with swing (I think there is only one helper class at the moment), so that statement isn't entirely true.

As far as loading the loading the libraries goes, we do try to not load them if we detect that there is a system javafx.

    protected JavaFxPlugin(PluginInformation info, String ext, List<String> orderedNativeLibraries) {
        super(info);
        String vendor = Utils.getSystemProperty("java.vendor");
        boolean isJavaFx = Utils.getSystemProperty("javafx.runtime.version") != null || (Arrays.asList("Oracle Corporation", "Azul Systems, Inc.").contains(vendor) && Utils.getJavaVersion() < 11);
        if (!isJavaFx && Utils.getJavaVersion() >= 10) {
            extractNativeLibs(ext);
            loadNativeLibs(ext, orderedNativeLibraries);
        } else if (!isJavaFx) {
            /* Code to inform user is here, and not load the rest of the plugin */
        }
        AudioPlayer.setSoundPlayerClass(JavaFxMediaPlayer.class);
    }

It looks like you are on linux. Once I get home, I'll check and see if there is another system property that indicates that javafx is available, besides javafx.runtime.version. Alternatively, we could file a bug with the distribution to get them to set that environment variable when openjfx is installed.

Note: The Arrays.asList("Oracle Corporation", "Azul Systems, Inc.") isn't in current public code -- I was trying to get javafx working properly with OpenWebStart.

comment:2 in reply to:  1 ; Changed 2 years ago by skyper

Replying to taylor.smock:

Replying to skyper:


…
Identification: JOSM/1.5 (16511 en) Linux Debian GNU/Linux 10 (buster)
…


It looks like you are on linux.

The answer is written above.

comment:3 in reply to:  2 Changed 2 years ago by taylor.smock

Replying to skyper:

The answer is written above.

I saw that. I guess I should have said "You are on Linux".
Anyway, I'll have to take a look at system properties that are available when I get home (I have Fedora, but I would hope they have the same system properties when their openjfx packages are installed).

comment:4 Changed 2 years ago by skyper

To get back to the main issue. The files exist, do not know why they are not found:

$ ls -go ~/.local/share/JOSM-latest/plugins/javafx/
total 92200
-rw-r--r-- 1    37088 Mai 27 13:29 javafx-swt.jar
-rw-r--r-- 1    51568 Mai 27 13:29 libavplugin-54.so
-rw-r--r-- 1    51584 Mai 27 13:29 libavplugin-56.so
-rw-r--r-- 1    51584 Mai 27 13:29 libavplugin-57.so
-rw-r--r-- 1    51712 Mai 27 13:29 libavplugin-ffmpeg-56.so
-rw-r--r-- 1    51584 Mai 27 13:29 libavplugin-ffmpeg-57.so
-rw-r--r-- 1    51584 Mai 27 13:29 libavplugin-ffmpeg-58.so
-rw-r--r-- 1    74720 Mai 27 13:29 libdecora_sse.so
-rw-r--r-- 1    51016 Mai 27 13:29 libfxplugins.so
-rw-r--r-- 1   354528 Mai 27 13:29 libglassgtk2.so
-rw-r--r-- 1   354768 Mai 27 13:29 libglassgtk3.so
-rw-r--r-- 1    12928 Mai 27 13:29 libglass.so
-rw-r--r-- 1  2245120 Mai 27 13:29 libgstreamer-lite.so
-rw-r--r-- 1    27368 Mai 27 13:29 libjavafx_font_freetype.so
-rw-r--r-- 1    25368 Mai 27 13:29 libjavafx_font_pango.so
-rw-r--r-- 1    16928 Mai 27 13:29 libjavafx_font.so
-rw-r--r-- 1   256208 Mai 27 13:29 libjavafx_iio.so
-rw-r--r-- 1   512528 Mai 27 13:29 libjfxmedia.so
-rw-r--r-- 1 89884912 Mai 27 13:29 libjfxwebkit.so
-rw-r--r-- 1    59080 Mai 27 13:29 libprism_common.so
-rw-r--r-- 1    63784 Mai 27 13:29 libprism_es2.so
-rw-r--r-- 1    71432 Mai 27 13:29 libprism_sw.so

comment:5 Changed 2 years ago by taylor.smock

The issue isn't that we are missing files, the issue is that the files we have are linking to files that are expected to be on the OS.
For example, java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory indicates that libavplugin-57.so exists, but it cannot find libgstreamer-lite.so. You may have to do an apt-file search libgstreamer-lite.so to find the package that provides that library. Install that (and keep doing so with the remainder).

comment:6 in reply to:  5 Changed 2 years ago by skyper

Replying to taylor.smock:

The issue isn't that we are missing files, the issue is that the files we have are linking to files that are expected to be on the OS.
For example, java.lang.UnsatisfiedLinkError: $HOME/.local/share/JOSM-latest/plugins/javafx/libavplugin-57.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory indicates that libavplugin-57.so exists, but it cannot find libgstreamer-lite.so.

It is in the directory, installed from the plugin. See above.

You may have to do an apt-file search libgstreamer-lite.so to find the package that provides that library. Install that (and keep doing so with the remainder).

Well, here we start. apt-file is not default in Debian. But here you go.

$ locate libgstreamer-lite.so
/home/$USER/.local/share/JOSM-latest/plugins/javafx/libgstreamer-lite.so
/usr/lib/x86_64-linux-gnu/jni/libgstreamer-lite.so
$ dpkg --search /usr/lib/x86_64-linux-gnu/jni/libgstreamer-lite.so
libopenjfx-jni: /usr/lib/x86_64-linux-gnu/jni/libgstreamer-lite.so

comment:7 Changed 13 months ago by skyper

Ticket #20811 has been marked as a duplicate of this ticket.

comment:8 Changed 13 months ago by skyper

Cc: mdk added

comment:9 Changed 13 months ago by mdk

The problem is, that I already have installed libopenjfx-jni but still I get the error.

$ locate libgstreamer-lite.so
/home/michael/Private_Tax_2020/jre/lib/amd64/libgstreamer-lite.so
/opt/processing/java/lib/amd64/libgstreamer-lite.so
/usr/lib/x86_64-linux-gnu/jni/libgstreamer-lite.so

But other than on your machine locate didn't find the version in the JOSM plugin directory.

Last edited 13 months ago by mdk (previous) (diff)

comment:10 in reply to:  9 Changed 13 months ago by skyper

Replying to mdk:

But other than on your machine locate didn't find the version in the JOSM plugin directory.

You just did install the plugin, right? Did you update the db (updatedb)? find should find it.

comment:11 Changed 13 months ago by mdk

You are right. After sudo updatedb the {locate results in

locate libgstreamer-lite.so
/home/michael/.josm/plugins/javafx/libgstreamer-lite.so
/home/michael/.josm-latest/plugins/javafx/libgstreamer-lite.so
/home/michael/Private_Tax_2020/jre/lib/amd64/libgstreamer-lite.so
/opt/processing/java/lib/amd64/libgstreamer-lite.so
/usr/lib/x86_64-linux-gnu/jni/libgstreamer-lite.so

But still starting JOSM cause the SEVERE: java.lang.UnsatisfiedLinkError errors.

comment:12 Changed 13 months ago by spiregrain

Cc: spiregrain added

comment:13 Changed 11 months ago by Emvee

I did also have this problem running on openSUSE Tumbleweed for a long time, most recently:

2021-06-27 15:04:29.122 SEVERE: java.lang.UnsatisfiedLinkError: $HOME/.josm/plugins/javafx/libavplugin-54.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: $HOME/.josm/plugins/javafx/libavplugin-54.so: libgstreamer-lite.so: cannot open shared object file: No such file or directory

Then I did run into problems that the Map Paint Styles were not loaded anymore and decided to start all over again by removing $HOME/.josm

After restoring some settings (more to be done) I do not see this message anymore starting JOSM and the paint styles work again, nice.

Maybe also good for other to try. First move your .josm directory:

$ mv $HOME/.josm $HOME/.josm-backup

Then start JOSM, it will create $HOME/.josm and check if you do see these messages if not.

If the messages are gone, better spend the effort to go over to this new init, if not, go back to your old settings by first removing $HOME/.josm and then renaming $HOME/.josm-backup to $HOME/.josm

Last edited 11 months ago by Emvee (previous) (diff)

comment:14 in reply to:  13 Changed 11 months ago by skyper

Replying to Emvee:

$ mv $HOME/.josm $HOME/.josm-backup

Then start JOSM, it will create $HOME/.josm and check if you do see these messages if not.

$HOME/.josm is the old path. Preferences should be split into three different directories according to xdg these days.

If the messages are gone, better spend the effort to go over to this new init, if not, go back to your old settings by first removing $HOME/.josm and then renaming $HOME/.josm-backup to $HOME/.josm

Hint: You can save (selected) settings to a file under advanced preferences and import/load them later, again.

comment:15 Changed 11 months ago by Emvee

Thanks for the tip on saving preferences. For now I am happy with the new settings done, I will keep the backup for a while and activate it if I need something and can not figure out how to configure it.

$HOME/.josm is the old path. Preferences should be split into three different directories according to xdg these days.

Tumbleweed is a rolling release and quite up-to-date AFAIK but I do not see three different directories, it seems to me xdg does not know about JOSM at all:

$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser

comment:16 Changed 11 months ago by skyper

@Emvee
If $HOME/.josm respectively $HOME/.josm-latest does not exist, three new directories should be used under ~/.local, ~/.cache and ~/.config, see Help/Preferences. This can be overridden. Take a look at the command line option --help (Help/CommandLineOptions).

Last edited 11 months ago by skyper (previous) (diff)

comment:17 Changed 11 months ago by Emvee

Confirmed, after renaming ~/.josm it did not came back but I now have ~/.local/share/JOSM/ and ~/.cache/JOSM/

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Don-vip.
as The resolution will be set.
to The owner will be changed from Don-vip to the specified user.
The owner will change to skyper
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from Don-vip to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.