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 770137 - Gstreamer extractor freezes gnome-shell when using vaapi
Gstreamer extractor freezes gnome-shell when using vaapi
Status: RESOLVED DUPLICATE of bug 656345
Product: tracker
Classification: Core
Component: Miners
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2016-08-19 11:02 UTC by Florent Thiéry
Modified: 2016-10-09 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Florent Thiéry 2016-08-19 11:02:24 UTC
When Tracker indexes some video files on a vaapi-enabled system, gnome-shell freezes heavily. I noticed this because some entries were failing to insert (which was then fixed by resetting my index db), so at every boot the system would freeze for a few seconds.

To reproduce:
# ensure you have some mp4 videos
# enable debug: tracker daemon --set-log-verbosity debug
# open tracker-preferences, remove all indexes in System > Yes, remove all indexes
# wait a few seconds, gnome-shell should start freezing

* packages (Arch)
local/libva 1.7.1-1
local/libva-intel-driver 1.7.1-1
local/tracker 1.8.0-3 (gnome)
local/gstreamer 1.8.2-1
local/gstreamer-vaapi 1.8.2-1

For each file journalctl shows:

août 19 12:25:32 mypc org.freedesktop.Tracker1.Miner.Extract[656]: libva info: VA-API version 0.39.2
août 19 12:25:32 mypc org.freedesktop.Tracker1.Miner.Extract[656]: libva info: va_getDriverName() returns 0
août 19 12:25:32 mypc org.freedesktop.Tracker1.Miner.Extract[656]: libva info: Trying to open /usr/lib/dri/i965_drv_video.so
août 19 12:25:32 mypc org.freedesktop.Tracker1.Miner.Extract[656]: libva info: Found init function __vaDriverInit_0_39
août 19 12:25:32 mypc org.freedesktop.Tracker1.Miner.Extract[656]: libva info: va_openDriver() returns 0
août 19 12:35:55 mypc org.freedesktop.Tracker1.Miner.Extract[636]: Tracker-Message: Extracting metadata for 'file:///home/user/Videos/test.MP4'
août 19 12:35:55 mypc org.freedesktop.Tracker1.Miner.Extract[636]: (tracker-extract:2202): Tracker-DEBUG: Using /usr/lib/tracker-1.0/extract-modules/libextract-gstreamer.so...
août 19 12:35:55 mypc org.freedesktop.Tracker1.Miner.Extract[636]: (tracker-extract:2202): Tracker-DEBUG: GStreamer backend in use:
août 19 12:35:55 mypc org.freedesktop.Tracker1.Miner.Extract[636]: (tracker-extract:2202): Tracker-DEBUG: Discoverer/GUPnP-DLNA
Comment 1 Carlos Garnacho 2016-10-09 14:02:46 UTC
Strange, I also have libva enabled and intel card, and never seen this issue. However I think it's unfortunate that libva is poked at all by Tracker, but this is not for Tracker to fix I fear...

Tracker uses the high level GstDiscoverer facility, and has thus no control in the gstreamer modules being initialized, although most surely libva is not (or should not be) necessary for its purposes.

Are you sure that it's indeed libva which is freezing your desktop? Might be easy to test by temporarily moving /usr/share/tracker/extract-rules/*gstreamer* aside, so the gstreamer module is skipped.

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