GNOME Bugzilla – Bug 340079
gst-launch wrapper fails with 'No version of tool gst-launch not found'
Last modified: 2006-04-29 23:16:16 UTC
Steps to reproduce: 1. $ gst-launch Stack trace: $ gst-launch ** (gst-launch:9440): WARNING **: Could not open dir /usr/lib/jvm/jre-1.5.0-sun/bin/java: Error opening directory '/usr/lib/jvm/jre-1.5.0-sun/bin/java': No such file or directory (gst-launch:9440): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed ERROR: No version of tool gst-launch not found. ===> Comments <=== I find the error messages preplexing, since: $ ls -l /usr/lib/jvm/jre-1.5.0-sun/bin/java -rwxr-xr-x 1 root root 68896 Jan 26 11:47 /usr/lib/jvm/jre-1.5.0-sun/bin/java and the last message, ERROR: No version of tool gst-launch not found. indicates that either the program author can't write or that the program is confused. Lastly, the rpm describes gst launch as a wrapper script, whereas in fact it's a binary executable. Other information:
> ** (gst-launch:9440): WARNING **: Could not open dir > /usr/lib/jvm/jre-1.5.0-sun/bin/java: Error opening directory > '/usr/lib/jvm/jre-1.5.0-sun/bin/java': No such file or directory > > (gst-launch:9440): GLib-CRITICAL **: g_hash_table_foreach: assertion > `hash_table > != NULL' failed > ERROR: No version of tool gst-launch not found. > > > ===> Comments <=== > I find the error messages preplexing, since: > > $ ls -l /usr/lib/jvm/jre-1.5.0-sun/bin/java > -rwxr-xr-x 1 root root 68896 Jan 26 11:47 /usr/lib/jvm/jre-1.5.0-sun/bin/java The file does exist, but it is not a directory (PATH is supposed to contain directories AFAIK). However, the test in the gst-launch wrapper isn't entirely correct, it should just skip this entry. Should be fixed in CVS: 2006-04-30 Tim-Philipp Müller <tim at centricular dot net> * tools/gst-run.c: (get_candidates), (main): Fix wrong g_file_test() usage (see glib docs for why it doesn't work); fix typo in error message. Fixes #340079.