JDK-8123850 : Linux: Unable to load media on system without GLIB 2.28
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2013-10-14
  • Updated: 2015-06-17
  • Resolved: 2013-11-16
Related Reports
Relates :  
Description
Some tests from the list : 

Affected tests:
graphics/api/control/tooltip/ToolTipTest2Test.java
graphics/api/node/DisableMediaViewTest.java
graphics/api/node/FocusableMediaView_dTest.java
graphics/api/node/Focusable_cTest.java
graphics/api/node/HoverTest.java
graphics/api/node/Transformations_bTest.java
graphics/api/node/TransparentMousePack_4aTest.java
graphics/api/node/TransparentMousePack_4bTest.java
graphics/api/node/VisibleMediaView_bTest.java
graphics/api/node/Visible_aTest.java
graphics/api/node/onKeyPressedTest.java
graphics/api/node/onKeyReleasedTest.java
graphics/api/node/onKeyTypedTest.java
graphics/api/node/onMouseClickedTest.java
graphics/api/node/onMouseDraggedTest.java
graphics/api/node/onMousePressedTest.java
graphics/api/node/onMouseReleasedTest.java

fail, with the message : 

** (<unknown>:21015): WARNING **: Failed to load plugin '/root/Desktop/8b110/jdk1.8.0/jre/lib/i386/libgstplugins-lite.so': /root/Desktop/8b110/jdk1.8.0/jre/lib/i386/libgstplugins-lite.so: undefined symbol: g_try_realloc_n

Because symbol g_try_realloc_n appears only in glib starting from version 2.24

SLES11 has version 2.22, OEL has the same version.

Resolution for the situation - to wait for better version of OS, with newer version of glib.
You can use the following commands to determine your version : 

rpmquery -qa | grep glib
or 
pkg-config --modversion glib-2.0
Comments
I filed RT-34324 to track the doc bug.
16-11-2013

We should resolve this issue as "Won't fix" and instead document the dependency on GLIB 2.28 in the system requirements.
16-11-2013

So, seems like we need to check and implement option #2.
07-11-2013

I confirm. We need some symbols that are available since 2.24. We reliably work with glib 2.28. So 2.28 is the minimal requirement. #1 is not an option - we rely on there symbols indirectly through GStreamer.
07-11-2013

I will suggest to try option 2. Also, we can build and ship glib-2.28 as part of FX. We used to ship it sometime ago, but it was removed. Not sure what was the reason.
01-11-2013

This seems like a problem then if we can't run any media apps on our supported platforms. I am raising the priority and assigning it to the Media component. I don't know what our options are, but possibly: 1) Modify our native media code to run on glib 2.22 2) If SLES and OEL have the option of installing a newer GLIB, then document this as an additional requirement to run media. 3) Defer this bug, and document it in the release notes. This doesn't sound like a very good idea, but depending on what it would take to fix it, may be our only option if neither of the previous two are feasible.
01-11-2013

Could you also reassign the component of the issue, when you will check this, if needed?
31-10-2013

The trouble is that these OSs : SLES and OEL are required to be supported by JFX
31-10-2013

Kevin, could you check this situation? I'm not very familiar with specifics of particular OSs, and packaging, and could get smth wrong.
31-10-2013

Issue of Operation system. JavaFX requires version 2.28 at least.
14-10-2013