Peertube: Assertion failure and crash in GetImageMagick

Created on 4 Feb 2020  路  9Comments  路  Source: Chocobozzz/PeerTube

What happened?

[peertube.anduin.net:443] 2020-02-04 00:18:48.176 info: Fetching remote video https://peertube.dk/videos/watch/561e7f57-24c8-4642-
bfb0-6428b563d825.
Assertion failed: (magick != (const unsigned char *) NULL), function GetImageMagick, file MagickCore/magick.c, line 302.`

After this peertube crashes and needs a restart

What do you expect to happen instead?
No such crash

Steps to reproduce:

  1. Install (on FreeBSD)
  2. Follow peertube.dk
  3. Watch as a number of videos from there (but not only there) causes a crash

Additional information

Status Type

Most helpful comment

All 9 comments

Please enable debug logs in your config

[peertube.anduin.net:443] 2020-02-05 03:01:12.266 debug: Processing image /peertube/storage/tmp/pending-561e7f57-24c8-4642-bfb0-64
28b563d825.jpg to /peertube/storage/thumbnails/561e7f57-24c8-4642-bfb0-6428b563d825.jpg.
Assertion failed: (magick != (const unsigned char *) NULL), function GetImageMagick, file MagickCore/magick.c, line 302.

I cannot find the referenced files anywhere, but can only presume they were broken and ImageMagick choked on them?
Source of the video (SFW) in question is https://peertube.dk/videos/watch/561e7f57-24c8-4642-b fb0-6428b563d825, according to the log.

I think this is a sharp issue, because on a GNU/Linux OS sharp throws a Error: Input buffer contains unsupported image format error (so peertube does not crash).

What is the version of image magick?

Not OP, but I ran into the same issue on FreeBSD 12.1. Had to temporarily unfollow all instances to reduce the risk of running into this crash. ImageMagick was installed from the quarterly binary releases. The version is 7.0.8.57_1.

And what is your version of vips?

vips, also the generic binary release, is at version 8.8.3_1.

For reference, the switch from Sharp to Jimp rendered the issue obsolete.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sschueller picture sschueller  路  3Comments

roipoussiere picture roipoussiere  路  3Comments

ufm picture ufm  路  3Comments

Jorropo picture Jorropo  路  3Comments

JohnXLivingston picture JohnXLivingston  路  3Comments