Crop:Rectangle crashes Shotcut after saved MLT opened, and closing Shotcut

Filter: Crop: Rectangle crashes Shotcut when file is reopened, also crashes upon closing Shotcut from creation. Steps in the last reply.

Shotcut version 20.04.12 & Portable
Windows 10 Home

matchbox 5 line.mlt (19.1 KB)
shotcut-log crash.txt (168.2 KB)
Exported File: Exported video plays fine, no issues. Default export settings.
matchbox 5 line.zip (352.8 KB)

Perhaps I figured out the issue. The bug is with Crop: Rectangle.

Steps

  1. Video Mode 1080p 60fps
  2. V1: Color (white)
  3. V2: Color (black)
  4. V2: Apply Crop: Rectangle, adjust, and set Padding color : Alpha Channel= 0
  5. Save file
  6. Close Shotcut
  7. Reopen Shotcut
  8. Reopen saved file
  9. Attempt to close Shotcut with open file.
    This is when Shotcut crashes every single time with this file or any file I have open with Crop: Rectangle with version 20.04.12.

shotcut-log crop rect.txt (53.7 KB)
Test4 x1.mlt (5.0 KB)

Every single file that’s crashed has this line in the MLT as I’m guessing it has something to do with Crop: Rectangle.
notepad  _2020-05-08_19-31-26
Here is the file that’s installed. filter-clip.html.txt (3.1 KB) (Remove the .txt)

Changed title to better reflect the issue.

All failed on these older versions. All failed.

Also tested with 20.04.12 Portable… Failed

I have the same problem with Text: Html. on V20-04 (and V20-02)

Applying the filter on a V2 clip
Save project and exit.
Re-open project
Select the clip with filter
File -> Exit
SC asks if I want to save the project (which I have not modified). If I answer “yes” SC quits normally, if I answer “no” SC crashes.

1 Like

With the Text:HTML filter it crashed on me when I tried to close the first time.
v2.mlt (4.6 KB)
shotcut-log V2 crash.txt (71.9 KB)

I’m running Shotcut 20.04.12 as AppImage on Ubuntu 16.04.

In my case, Shotcut hangs every time I attempt to close a project, when Video::Crop:Rectangle is enabled. I have created two very simple projects that don’t use external resources. Please find attached their MLT files:

20062401 Shotcut HangOnClose Hangs.mlt (5.1 KB)
20062402 Shotcut HangOnClose DoesNotHang.mlt (5.1 KB)

Both projects have the same two video layers; one runs a clock, the other acts as background. The only difference is that the one labelled as “DoesNotHang” has the Crop:Rectangle filter disabled.

I can open and close “DoesNotHang” as many times as I want and even on multiple windows at a time.
Even after a freshly started computer session, attempting to close “Hangs” hangs my Shotcut. No activity seems to happen for, at least, one hour.

These are known problems that are not easily fixed until they are completely rewritten to not use HTML/WebVfx. The easiest workaround to the hang problem is to not have the playhead over a clip that is using it at the time of closing.

This is fixed for the next version 20.09 by rewriting the Crop: Rectangle and Crop: Circle filters to not use WebVfx and HTML. Old projects are seamlessly updated upon open.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.