GNOME Bugzilla – Bug 694392
Pinpoint does divide by zero when thumbnailing videos
Last modified: 2018-08-17 19:57:52 UTC
When thumbnailing some videos, pinpoint does a divide by zero, like this: Program received signal SIGFPE, Arithmetic exception. 0x000000000040ff4c in gst_video_thumbnailer_get_shot ( location=0x2147e80 "/data/stuff/devconf-2013/realmd-talk/realm-discover-ad.webm", cancellable=0x1a59e70) at gst-video-thumbnailer.c:228 228 seekpos = (rand () % (duration / (GST_SECOND))) * GST_SECOND; (gdb) p duration $1 = 708000000 (gdb) p rand() % (duration / (1000000000)) Division by zero (gdb) p duration / 1000000000 $2 = 0
This bug causes both the presenter tool, or export to pdf to crash. Will attach a patch, although you may want to fix this differently.
Created attachment 237118 [details] [review] Don't divide by zero when thumbnailing videos Just pick a point halfway through the video, if a divide by zero would have occurred.
I seems that the patch has landed as 09b77c924496d5f4d38119de8bac0377cbdfaa7d. Hence I am closing.
pinpoint is not under active development anymore since 2015. Its codebase has been archived: https://gitlab.gnome.org/Archive/pinpoint/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.