After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340079 - gst-launch wrapper fails with 'No version of tool gst-launch not found'
gst-launch wrapper fails with 'No version of tool gst-launch not found'
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.5
Other All
: Normal critical
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-29 02:21 UTC by Jonathan Ryshpan
Modified: 2006-04-29 23:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Ryshpan 2006-04-29 02:21:27 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:
Comment 1 Tim-Philipp Müller 2006-04-29 23:16:16 UTC
> ** (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.