← Back to team overview

touch-packages team mailing list archive

[Bug 1466273] Re: gstreamer fails intermittently

 

I'm also seeing this on my Nexus 4. Except here, gstreamer hangs and
makes the process unkillable.

Here is a bit of trace from our code:

thumbnailer-service: [06:53:02.902] timeout, state = 2
thumbnailer-service: [06:53:02.902] killing process 12806
thumbnailer-service: [06:53:02.902] calling waitpid for process 12806
thumbnailer-service: [06:53:31.900] waitpid for process 12806 returned

This happens when a timer fires. If gstreamer doesn't complete within 10
seconds, we kill the process. (Each video thumbnail is extracted in a
separate process, so we can recover from gstreamer crashes and hangs.)

However, take a look at the time stamps. We sent a SIGKILL at 53.02 and
immediately called waitpid(). But waitpid() does not return until 29
seconds later. This strongly suggests a kernel problem. (At least as far
as I know, the only way for SIGKILL to not kill a process is if the
process is asleep in the kernel at uninterruptible priority.)

** Changed in: gstreamer0.10 (Ubuntu)
   Importance: High => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gstreamer0.10 in Ubuntu.
https://bugs.launchpad.net/bugs/1466273

Title:
  gstreamer fails intermittently

Status in Thumbnail generator for all kinds of files:
  New
Status in gstreamer0.10 package in Ubuntu:
  New

Bug description:
  gstreamer occasionally fails to extract a thumbnail from a video file.
  It's clearly a race condition because, almost all of the time, it
  succeeds. To reproduce:

  Check out the thumbnailer/devel branch at r217 and build it. Then:

  cd build/src/vs-thumb

  ./vs-thumb fd://0 ./x.jpg <../../../tests/media/testvideo.ogg

  Point a browser at the generated x.jpg file and check that the image
  was extracted correctly.

  Now run

  while ./vs-thumb fd://0 ./x.jpg <../../../tests/media/testvideo.ogg ;
  do :; done

  Within maybe a hundred iterations or so, I get:

  Error creating thumbnail: ThumbnailExtractor: change_state(): reading
  async messages: GStreamer error: negotiation problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/thumbnailer/+bug/1466273/+subscriptions