Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

xplayer-video-thumbnailer crashing when processing short videos. #154

Open
smurphos opened this issue Aug 19, 2019 · 5 comments
Open

xplayer-video-thumbnailer crashing when processing short videos. #154

smurphos opened this issue Aug 19, 2019 · 5 comments

Comments

@smurphos
Copy link

 * Xplayer version 2.2.2
 * Distribution - 19.2

Issue
The thumbnailer is crashing on attempting to process very short mp4 videos. This can result in root storage being spammed with large numbers of systemd coredumps - see linuxmint/mintreport#31

Steps to reproduce

Try and thumbnail the attached video.

steve@steve-Inspiron-5580:/mnt/backup_drive/Videos/Home Video$ xplayer-video-thumbnailer VID_20171028_072606.mp4 test_thumbnail.png

(xplayer-video-thumbnailer:9529): GLib-ERROR **: 06:22:09.788: ../../../../glib/gmem.c:105: failed to allocate 3110575 bytes
Trace/breakpoint trap (core dumped)

Mediainfo for the video

steve@steve-Inspiron-5580:/mnt/backup_drive/Videos/Home Video$ mediainfo VID_20171028_072606.mp4
General
Complete name                            : VID_20171028_072606.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 6.35 MiB
Duration                                 : 2 s 839 ms
Overall bit rate                         : 18.8 Mb/s
Encoded date                             : UTC 2017-10-28 06:26:06
Tagged date                              : UTC 2017-10-28 06:26:06
xyz                                      : +51.0718+001.0148/
com.android.version                      : 8.0.0
com.android.manufacturer                 : LGE
com.android.model                        : Nexus 5X

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 s 839 ms
Source duration                          : 2 s 842 ms
Bit rate                                 : 17.5 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Rotation                                 : 180°
Frame rate mode                          : Variable
Frame rate                               : 29.910 FPS
Minimum frame rate                       : 27.675 FPS
Maximum frame rate                       : 30.354 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.282
Stream size                              : 5.93 MiB (93%)
Source stream size                       : 5.93 MiB (93%)
Title                                    : VideoHandle
Language                                 : English
Encoded date                             : UTC 2017-10-28 06:26:06
Tagged date                              : UTC 2017-10-28 06:26:06
Color range                              : Full
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.470 System B, BT.470 System G
mdhd_Duration                            : 2839

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 2 s 816 ms
Bit rate mode                            : Constant
Bit rate                                 : 96.0 kb/s
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 33.2 KiB (1%)
Title                                    : SoundHandle
Language                                 : English
Encoded date                             : UTC 2017-10-28 06:26:06
Tagged date                              : UTC 2017-10-28 06:26:06

VID_20171028_072606.mp4.zip

Mintreport output - https://termbin.com/ssup

Expected behaviour

No crash.

Other information
In a folder of 113 mobile phone created mp4 files 16 of them routinely crash the thumbnailer. All are very short in duration, but there are a couple of short duration vidoes that thumbnail OK.

@RafaMartorell
Copy link

I solve this annoying problem
deleting the file xplayer.thumbnailer from the folder /usr/share/thumbnailers
and after this install totem
sudo apt install totem*
Curiously, with Totem installed, the thumbnails have worked again.

@lugligino
Copy link

Rafam I tried your procedure but no success

@RafaMartorell
Copy link

You have performed the action of:
rm -Rf ~/.cache/thumbnails

@Harry-W-Haines-III
Copy link

Referencing RafaMartorell's comments. After you delete /usr/share/thumbnailers/xplayer.thumbnailer, if you have ffmpegthumbnailer installed, you don't have to do anything. Just keep using xplayer. I wonder if there is an error in that file that triggers the crash. I have tested this in LM 20 Cinnamon and LMDE 4. Works around the issue and xplayer works fine without it.

@Gilbe2003
Copy link

deleting the file xplayer.thumbnailer from the folder /usr/share/thumbnailers

How do i delete ? Its greyed out

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants