Modify

Opened 11 months 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

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 (6)

comment:1 in reply to:  description ; Changed 11 months 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 11 months 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 11 months 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 11 months 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 11 months 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 11 months 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

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.