JavaFX Media Player crashes when opening MP3s even though libav 53 libraries are present?

谁说我不能喝 提交于 2019-12-09 07:35:27

Research

Digged deeper into the issue found target system I was installing on already had libav 55 libraries on it. Using strace I saw that java was trying to load version 55 of the libraries rather than 53.

The JavaFX Supported Configurations lists that only versions 52 and 53 are compatible. The loading of the 55 libraries seemed to be triggered by java thinking that it can load libavplugin55 which doesn't exist on the system. >.>

Solution

My temporary is solution to create a link libavplugin.so in the java native libraries directory: /java_install_dir/lib/amd64. This link points to libavplugin-53.so in the same directory and causes priority loading of the libavplugin-53 rather than it's mystical cousin libavplugin-55.

Summary

In conclusion something about the presence of the newer libav libraries is causing java to load them over the older ones even though it's not compatible. I've seen this in that removing version 55 of format and codec libraries that the application then works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!