https://bugs.kde.org/show_bug.cgi?id=426640

            Bug ID: 426640
           Summary: Kdenlive 20.08.1 freezes when opening some projects
                    created by 19.08.1 but not others
           Product: kdenlive
           Version: 20.08.1
          Platform: Other
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: User Interface
          Assignee: j...@kdenlive.org
          Reporter: ahii...@gmail.com
  Target Milestone: ---

SOFTWARE/OS VERSIONS
Windows 10
Kdenlive 20.08.1 (standalone)
MLT version 6.23.0
KDE Frameworks 5.71.0
Qt 5.15.0 (built against 5.15.0)
The windows windowing system
(And if it helps, my locale is en_CA.)

DESCRIPTION
I've been using 19.08.1 (not standalone version) for my video editing projects
for the last year or so, and I decided to try the latest version. But I ran
into some troubles when trying to open some of my existing projects with the
newer version.

Kdenlive hangs on the "loading clips..." dialog and then stops responding. I
waited for a few minutes just in case it was taking a bit longer to load than
usual, but it still didn't respond, so I ended up having to end kdenlive with
task manager.

For some projects, rarely, the project seems to load okay at first: The clips
show up in the project bin and the clips in the timeline appear, too. And
sometimes I can even click the "play" button, and it plays the project on the
timeline... for about 1 second. And then everything freezes and the window
stops responding.

The strange thing is, some projects open just fine. Others don't. I noticed
that smaller projects with fewer clips in the project bin tend to be the ones
that open successfully, while larger projects with a lot more clips and
subclips in the bin tend to be the ones that freeze on open. For the projects
that freeze on open, they freeze every time (so I can't work on them :/).

I've also tried doing all the following before starting kdenlive 20.08.1:
- deleting kdenliverc from AppData/Local
- deleting the kdenlive folder from AppData/Local
- deleting the kdenlive folder from AppData/Roaming (well, I made a copy of it
to save for later)
- clicking Help > Reset Configuration, just for good measure

But the freezes still happen.

After trying all this, I checked if I could still open the problematic projects
in 19.08.1, and yes, I could still open them and edit them there.

OBSERVATIONS
I tried creating some simple projects in 19.08.1 from scratch and then opening
them in 20.08.1:
- A project with a single image in the project bin (opens fine)
- A project with a title clip in the project bin (opens fine)
- A project with a colour clip in the project bin (opens fine)
- A project with an mp4 clip, a colour clip, and 6 images in the project bin +
5 video tracks and 5 audio tracks and a bunch of stuff in the timeline, with
crop and alpha shapes and transform effects (opens fine)
- A project with 57 mkv videos in the project bin (opens fine)
- A project with 30 mkv videos in the project bin (opens fine)
- A project with 4 mkv videos in the project bin (opens fine)
- A project with 57 png images in the project bin (freezes)
- A project with 30 png images in the project bin (freezes)
- A project with 16 png images in the project bin (opens fine)

I tried creating the same projects from scratch in 20.08.1:
- A project with 57 png images in the project bin (opens fine)
- A project with 30 png images in the project bin (opens fine)
- A project with 16 png images in the project bin (opens fine)

To clarify, these are all projects with just clips in the project bin, and
nothing in the timeline.

But, if I then delete kdenliverc and the kdenlive folders in AppData/Local and
AppData/Roaming:
- The earlier 20.08.1 project with 57 png images in the project bin (freezes)
- The earlier 20.08.1 project with 30 png images in the project bin (freezes)
- The earlier 20.08.1 project with 16 png images in the project bin (opens
fine)

There was also this bizarre sequence of events:
1. Open Kdenlive 19.08.1 and Help > Reset configuration
2. Create a new 720p 23.98 fps project
3. Drag 57 pngs into project bin
4. Save As > "Project with 57 png images"
5. Delete 27 pngs from project bin and Save As > "Project with 30 png images"
6. Delete 14 pngs from project bin and Save As > "Project with 16 png images"
7. Delete 8 pngs from project bin and Save As > "Project with 8 png images"
8. Delete kdenliverc and AppData/Local/kdenlive/cache
9. Open Kdenlive 20.08.1 and Help > Reset configuration
10. Open "Project with 57 png images" in 20.08.1 (freezes)
11. Open "Project with 30 png images" in 20.08.1 (freezes)
12. Open "Project with 16 png images" in 20.08.1 (freezes)
13. Open "Project with 8 png images" in 20.08.1 (opens fine)
14. Open "Project with 16 png images" in 20.08.1 (opens fine) <- ?????
15. Open "Project with 30 png images" in 20.08.1 (freezes)
16. Open "Project with 57 png images" in 20.08.1 (freezes)

I can reproduce this sequence if I delete the cache in AppData/Local/kdenlive.
Basically, 16-png freezes on open every time. But if I open 8-png, then from
that point on, 16-png will open successfully every time.

It's a bit weird that the freezing happens with images but not video clips?

But I'll note that for my projects that fail to open, most of these projects
don't contain any image files in the project bin; they only have only mkv
videos and mp3 audio tracks.

I also downloaded the Windows nightly build
kdenlive-master-517-windows-mingw_64-gcc (2020-09-16) and used it to try and
open some of the problematic projects, but I got freezes with this version too.

MORE DETAILS
I used gdb to try and capture some of the debug outputs when loading these
projects. There weren't any debug symbols in the exe though, so I don't think I
can get a stack trace or anything.

For one of my projects, the debug output stopped here:

```
warning: === LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
warning: === LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
warning: ################### JOB finished:  0
warning: QQmlContext: Cannot set context object on invalid context.
warning: QQmlComponent: Cannot create a component in an invalid context
warning: QQmlContext: Cannot set context object on invalid context.
warning: QQmlComponent: Cannot create a component in an invalid context
warning: ################### JOB finished:  2
warning: ################### JOB finished:  4
warning: ################### JOB finished:  6
warning: ################### JOB finished:  1
warning: ################### JOB finished:  8
warning: ################### JOB finished:  9
warning: ################### JOB finished:  10
warning: ################### JOB finished:  5
warning: ################### JOB finished:  12
warning: ################### JOB finished:  3
[New Thread 1392.0x3324]
[New Thread 1392.0x3a28]
[New Thread 1392.0x3ec0]
[New Thread 1392.0x207c]
[New Thread 1392.0xe94]
[New Thread 1392.0x3dac]
[New Thread 1392.0x3550]
[New Thread 1392.0x1e34]
[New Thread 1392.0x3f50]
warning: ################### JOB finished:  14
warning: ################### JOB finished:  7
warning: ################### JOB finished:  16

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00000000688d77d8 in ?? () from
C:\Users\{MyName}\Applications\Kdenlive\kdenlive-master-517-windows-mingw_64-gcc\bin\Qt5Core.dll
```

For another one of my projects, the output stopped here:

```
CLIPS COUNT:  4
warning: REGISTRATION  14 ptr count 3
warning: // EFFECT  0  :  deinterlace
warning: // EFFECT  1  :  fieldorder
warning: // EFFECT  2  :  crop
warning: // EFFECT  3  :  swscale
warning: // EFFECT  4  :  resize
warning: // EFFECT  5  :  swresample
warning: // EFFECT  6  :  resample
warning: // EFFECT  7  :  data_feed
warning: // EFFECT  8  :  avcolor_space
warning: // EFFECT  9  :  audioconvert
[Thread 3944.0x3aac exited with code 0]
[Thread 3944.0xeec exited with code 0]
[Thread 3944.0x3de4 exited with code 0]
[Thread 3944.0x11c exited with code 0]
[Thread 3944.0x32a0 exited with code 0]
[Thread 3944.0x3d94 exited with code 0]
[Thread 3944.0x26e4 exited with code 0]
[Thread 3944.0x2df0 exited with code 0]
[Thread 3944.0x3a60 exited with code 0]
warning: qml: loaded clip:  546 , ID:  14 , index:  0 , TYPE: AV
warning: qml: loaded clip with Astream:  1
warning: Inserted clip in track 10 at  546
warning: Looking for clip with ID  6  and name
warning:  // /REQUEST TL CLP REGSTR:  15
--------
CLIPS COUNT:  5
warning: REGISTRATION  15 ptr count 3

Thread 138 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3944.0x2328]
0x00007ffe832a315e in avcodec_flush_buffers () from
C:\Users\{MyName}\Applications\Kdenlive\kdenlive-master-517-windows-mingw_64-gcc\bin\avcodec-58.dll
```

For another one of my projects (this one has lots of image files in the bin),
it ended like this:

```
warning: === LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
warning: ################### JOB finished:  3
warning: ################### JOB finished:  1
warning: ################### JOB finished:  5
warning: ################### JOB finished:  2
warning: ################### JOB finished:  7
warning: QQmlContext: Cannot set context object on invalid context.
warning: QQmlComponent: Cannot create a component in an invalid context
warning: QQmlContext: Cannot set context object on invalid context.
warning: QQmlComponent: Cannot create a component in an invalid context
warning: ################### JOB finished:  0
warning: ################### JOB finished:  9
[New Thread 15576.0x3ee4]
[New Thread 15576.0x3a54]
warning: kf.config.core: "KConfigIni: In file
C:/Users/{MyName}/AppData/Local/kdenliverc, line 9: " "Invalid escape sequence
\"\\A\"."

...snip...

warning: kf.config.core: "KConfigIni: In file
C:/Users/{MyName}/AppData/Local/kdenliverc, line 23: " "Invalid escape sequence
\"\\o\"."
[Thread 15576.0x3a54 exited with code 0]
[Thread 15576.0x1b30 exited with code 0]
[Thread 15576.0x3840 exited with code 0]
[Thread 15576.0x27a0 exited with code 0]
[Thread 15576.0x39a4 exited with code 0]
```

...And then it just stopped responding after that. The UI was frozen and even
after waiting 10 minutes, it didn't print anything else. This result was also
more or less what I saw with the test projects containing only images in the
project bin. i.e. no segfault, just stopped responding.

Hope someone can figure out what's going on here :/

But anyway, I'm falling back to using 19.08.1 for the time being.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to