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 171873 - Hang when plugin handles non-existing file
Hang when plugin handles non-existing file
Status: RESOLVED DUPLICATE of bug 350297
Product: totem
Classification: Core
Component: Browser plugin (obsolete)
unspecified
Other Linux
: Normal normal
: ---
Assigned To: totem-browser-maint
totem-browser-maint
Depends on:
Blocks:
 
 
Reported: 2005-03-28 15:39 UTC by Bastien Nocera
Modified: 2006-09-04 12:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2005-03-28 15:39:07 UTC
Open the test.html page, making sure that file:///tmp/dmp.mov doesn't exist.
The totem-mozilla-viewer will hang trying to read from fd://0
Comment 1 Bastien Nocera 2005-03-28 17:00:48 UTC
Ronald, does the GStreamer plugin also block on reading stdin, or does it use
O_NONBLOCK?
Comment 2 Ronald Bultje 2005-03-30 11:04:53 UTC
We use non-block mode.
Comment 3 Ronald Bultje 2005-03-30 14:06:45 UTC
For the GStreamer backend, the plugin would receive a destroy event when it's
done, and we could just send a QUIT message and stop the helper app then. It
would just work. I don't know what's required for the xine backend, but it
cannot be much harder.
Comment 4 Ronald Bultje 2005-04-04 11:54:18 UTC
Bastien, if the file does not exist (or, in my testcase, the redirect file does
not exist), I get an error dialog and then it hangs when you click OK. Removing
the gdk_threads_init() in the viewer fixes this. Is that there for a reason or
can I remove it?
Comment 5 Ronald Bultje 2005-04-04 17:26:31 UTC
I added the above, and it doesn't hang for me at all, so may be xine-only from
here on.
Comment 6 Bastien Nocera 2006-08-09 13:10:33 UTC
This doesn't happen anymore with the current CVS, but we don't spawn the viewer at all. Maybe we should spawn it ASAP as in bug 350297 and whinge after we haven't had any data for a certain amount of time.
Comment 7 Bastien Nocera 2006-09-04 12:39:46 UTC
Closing as a dupe.

*** This bug has been marked as a duplicate of 350297 ***