Crash on applying ChromaKey

Bug #1565141 reported by reye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
New
Undecided
Unassigned
openshot (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 14.04 x64
RAM: 8GB
Processor: Intel Core i5 CPU M 540 @ 2.53GHz x4
Graphics: NVS 5100M/PCIe/SSE2
Version of Openshot: 2.0.6 (Installed via PPA) & 2.0.7 (ran using downloaded .appimage)
BZR Revision used (if any) : ?? not sure, can't find any packages called BZR
MLT/melt version: libmlt6 0.9.3+git20141005.22abed67-0ubuntu0~sunab~trusty1 amd64
FFmpeg (i.e.libavcodec) version : libavcodec54:amd64 6:9.18-0ubuntu0.14.04.1 amd64
FFmpeg installation : libxine2-ffmpeg 1.2.4-2ubuntu1 amd64

Steps to reproduce issue:
Open Openshot
import video / open saved project.
switch to effects tab
drag Chroma effect to video in timeline.
double click chroma color
click "Pick Screen Color" button
click spot on preview panel
click OK. *** sometimes crashes here ***
double click Fuzz, set new value, hit tab. *** sometimes crashes here ***

Part of what is odd about this error is sometimes if I hit save between each step I can keep moving forward with adding new chroma effects. Because my bluescreen is not very good I'm having to build several chroma effects on the video in an attempt to remove all of the color variations. the issue starts happening more often the more chroma effects I add. If I keep saving my project after each change I'm sometimes able to add more chroma effects after I reopen the project file. But at some point ~15 chroma effects added to a video track it just keeps crashing after hitting ok on the color picker dialog. I've also been able to reproduce the issue running as my normal user and under SUDO. The orignal videos were recorded using my phone camera in MP4 format. I've tried a couple different recordings with the same results the general video info is below:

Video:
Length: 1 minute 1 second
Container: Quicktime
Dimensions: 1920x1080
Codec: H.264
Framerate: 30fps
Bitrate: 17077 kbps

Audio:
Codec: MPEC-4 AAC
Channels: Stereo
Sample rate: 48Khz
Bitrate: 96 kbps

If you need any additional details please let me know.

Last several console lines from a couple different crashes, gathered by running 2.0.7 from terminal.

Crash after clicking OK on the chroma pick color dialog:
timeline_webview:INFO $scope.SelectEffect
properties_model:INFO Update item: effect
properties_model:INFO updating clip properties model.
properties_model:INFO Getting properties for frame 1: OrderedDict([('duration', {'closest_point_x': -1, 'memo': '', 'value': 0.0, 'max': 1800000.0, 'type': 'float', 'min': 0.0, 'name': 'Duration', 'readonly': True, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0}), ('end', {'closest_point_x': -1, 'memo': '', 'value': 0.0, 'max': 1800000.0, 'type': 'float', 'min': 0.0, 'name': 'End', 'readonly': False, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0}), ('fuzz', {'closest_point_x': 1, 'memo': '', 'value': 7.0, 'max': 10000.0, 'type': 'float', 'min': -10000.0, 'name': 'Fuzz', 'readonly': False, 'keyframe': True, 'interpolation': 2, 'choices': [], 'points': 1}), ('id', {'closest_point_x': -1, 'memo': 'GSOLMZ7KZL', 'value': 0.0, 'max': -1.0, 'type': 'string', 'min': -1.0, 'name': 'ID', 'readonly': True, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0}), ('color', {'closest_point_x': 1, 'memo': '', 'value': 0.0, 'green': {'closest_point_x': 1, 'memo': '', 'value': 46.0, 'max': 10000.0, 'type': 'float', 'min': -10000.0, 'name': 'Green', 'readonly': False, 'keyframe': True, 'interpolation': 1, 'choices': [], 'points': 1}, 'max': 10000.0, 'red': {'closest_point_x': 1, 'memo': '', 'value': 46.0, 'max': 10000.0, 'type': 'float', 'min': -10000.0, 'name': 'Red', 'readonly': False, 'keyframe': True, 'interpolation': 1, 'choices': [], 'points': 1}, 'type': 'color', 'min': -10000.0, 'name': 'Key Color', 'readonly': False, 'keyframe': True, 'interpolation': 1, 'blue': {'closest_point_x': 1, 'memo': '', 'value': 43.0, 'max': 10000.0, 'type': 'float', 'min': -10000.0, 'name': 'Blue', 'readonly': False, 'keyframe': True, 'interpolation': 1, 'choices': [], 'points': 1}, 'points': 1, 'choices': []}), ('layer', {'closest_point_x': -1, 'memo': '', 'value': 0.0, 'max': 1000.0, 'type': 'int', 'min': 0.0, 'name': 'Layer', 'readonly': False, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0}), ('position', {'closest_point_x': -1, 'memo': '', 'value': 0.0, 'max': 1800000.0, 'type': 'float', 'min': 0.0, 'name': 'Position', 'readonly': False, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0}), ('start', {'closest_point_x': -1, 'memo': '', 'value': 0.0, 'max': 1800000.0, 'type': 'float', 'min': 0.0, 'name': 'Start', 'readonly': False, 'keyframe': False, 'interpolation': 2, 'choices': [], 'points': 0})])
properties_model:INFO {'start': 0.0, 'color': {'alpha': {'Points': []}, 'blue': {'Points': [{'interpolation': 1, 'co': {'Y': 43, 'X': 1}}]}, 'red': {'Points': [{'interpolation': 1, 'co': {'Y': 46, 'X': 1}}]}, 'green': {'Points': [{'interpolation': 1, 'co': {'Y': 46, 'X': 1}}]}}, 'fuzz': {'Points': [{'interpolation': 2, 'co': {'Y': 7.0, 'X': 1.0}}]}, 'id': 'GSOLMZ7KZL', 'layer': 0, 'duration': 0.0, 'order': 0, 'end': 0.0, 'type': 'ChromaKey', 'position': 0.0}
properties_model:INFO looping points: co.X = 1
properties_model:INFO updating point: co.X = 1 to value: 99.0
properties_model:INFO looping points: co.X = 1
properties_model:INFO updating point: co.X = 1 to value: 119.0
properties_model:INFO looping points: co.X = 1
properties_model:INFO updating point: co.X = 1 to value: 113.0
Segmentation fault (core dumped)

Crash after changing fuzz:
preview_thread:INFO refreshFrame
preview_thread:INFO self.player.Position(): 174
properties_model:INFO fuzz for FR4P6F6832 changed to 15.0 at frame 1 with interpolation: -1 at closest x: 1
properties_model:INFO {'type': 'ChromaKey', 'end': 0.0, 'start': 0.0, 'id': 'FR4P6F6832', 'layer': 0, 'order': 0, 'duration': 0.0, 'fuzz': {'Points': [{'co': {'X': 1.0, 'Y': 5.0}, 'interpolation': 2}]}, 'position': 0.0, 'color': {'alpha': {'Points': []}, 'red': {'Points': [{'co': {'X': 1, 'Y': 68}, 'interpolation': 1}]}, 'green': {'Points': [{'co': {'X': 1, 'Y': 81}, 'interpolation': 1}]}, 'blue': {'Points': [{'co': {'X': 1, 'Y': 93}, 'interpolation': 1}]}}}
properties_model:INFO looping points: co.X = 1.0
properties_model:INFO updating point: co.X = 1.0 to value: 15.0
Segmentation fault (core dumped)

Revision history for this message
reye (rtestacct) wrote :

I tried it on a different system, better hardware, newer and fresh install of Ubuntu 15.1, same result. I extracted some of the crash info. The apport crash says that it is reporting the issue to the developer. Do you receive these reports? The issue continues to happen when I start applying multiple effect filters.

Installed OpenShot: 2.0.7 (installed via PPA)
ProblemType: Crash
Architecture: amd64
CrashCounter: 1
CurrentDesktop: Unity
Date: Tue Apr 12 08:51:59 2016
DistroRelease: Ubuntu 15.10
ExecutablePath: /usr/bin/openshot-qt
ExecutableTimestamp: 1459315275
InterpreterPath: /usr/bin/python3.4
ProcCmdline: /usr/bin/python3 /usr/bin/openshot-qt
ProcCwd: /home/<removed>
ProcEnviron:
 PATH=(custom, no user)
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 LANGUAGE=en_US
 XDG_RUNTIME_DIR=<set>
Uname: Linux 4.2.0-35-generic x86_64

Revision history for this message
reye (rtestacct) wrote :

Additional Info, If I can provide any additional specific info please let me know. So far I've tried different hardware, different Ubuntu versions, video drivers (NVidia 340.96 and Nouveau display driver on Ubuntu 14.04 and NVidia 340.96 on Ubuntu 15.1) any thought greatly appreciated.

SegvAnalysis:
 Segfault happened at: 0x7fa567423f6d <_ZN8openshot8Timeline19apply_json_to_clipsEN4Json5ValueE+1533>: mov 0x10(%rax),%r12
 PC (0x7fa567423f6d) ok
 source "0x10(%rax)" (0x00000010) not located in a known VMA region (needed readable region)!
 destination "%r12" ok
SegvReason: reading NULL VMA
SourcePackage: openshot-qt

Revision history for this message
reye (rtestacct) wrote :

reproduced issue on Win7 Ent x64 with 8GB RAM.

Paul White (paulw2u)
affects: ubuntu → openshot (Ubuntu)
Revision history for this message
jamie pate (jamie-pate) wrote :

Happening for me on windows 10, ryzen 1800x, nv1060.
I can add the chroma effect and preview, until i slow the clip down, then openshot will crash when i try to preview the clip

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.