View Issue Details

IDProjectCategoryView StatusLast Update
0000672Cinelerra-GG[All Projects] Bugpublic2025-04-08 20:13
ReporterLukas Assigned ToPhyllisSmith  
PrioritynormalSeveritycrashReproducibilityalways
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000672: Crash when using the speed curve
DescriptionVersion:
CinGG-20250228-x86_64-older-distros.AppImage
Linux Mint 19.3
8 GB memory
ulimit -n 4096

I made a film with 30 minutes, 4 video tracks 1280x720 with 250 clips, 6 audio tracks. Everything works without problems, but when I try to move the speed curve to create a new keyframe or to change its value, Cinelerra always crashes:

** segv at 0xb1b5e5 in pid 12179, tid 12179
writing debug data to /tmp/cinelerra_12179.dmp
lock_items: 39
lock_frees: 5
** dump complete
Segmentation fault (core dumped)

I also tried it on another similar film and it also always crashes. If I make a new test project with 1 video track with 30 clips and 2 audio tracks, I can move the speed curve without problems. If I manually add speed keyframes in the big project's XML file ( <SPEEDAUTOS> <AUTO ...></AUTO> </SPEEDAUTOS> ), the change works without problems, but I must not move the speed curve using a mouse.
Steps To ReproduceOpen a long project with many tracks and clips.
View -> Speed.
Move the speed curve in any place.
TagsNo tags attached.

Activities

Lukas

Lukas

2025-04-08 20:13

reporter   ~0005801

I tested the new AppImage and the problem didn't appear so far. So it looks good.
PhyllisSmith

PhyllisSmith

2025-04-08 19:58

manager   ~0005800

@Lukas
If/when you have time, could you test this AppImage to make sure it fixes the speed/plugin problem and provide feedback here.
   https://cinelerra-gg.org/download/testing/cin-x86_older.AppImage

@Andrew-R
I only reverted the one line in the current version of auto.C in my latest testing and that is all I changed. Problem is that we do not know what that "blunder" was so it may have broken something else. I will try to see if I can find any notes on it.
Andrew-R

Andrew-R

2025-04-08 03:25

reporter   ~0005799

@PhyllisSmith, wow you really did amazing detective work!

I'll look at commits in question but then I am afraid I only can make things worse ....
PhyllisSmith

PhyllisSmith

2025-04-08 03:03

manager   ~0005798

@Lukas
I think I have isolated the crash and reverted 3 files to a previously working version. BUT it does not make any sense why that would solve the problem AND I am not even sure that it solves all cases. However, I will create an older version AppImage with the change in for you to test when I boot that O/S desktop tomorrow.

@Andrew-R
Here is an exact set of minimum steps to create the problem.
  Start with a new bcast, i..e. CIN_CONFIG=/tmp/bcast5 bin/cin
  Just dismiss the note of the day window (x it gone)
  load media using replace current project
  turn on generate keyframes while tweaking
  drag chromakeyhsv to video
  bring up chromkeyhsv menu
  play a little and move the slider in the chromkeyhsv menu to get keyframes
  stop play, then move cursor and play a little to get another set of keyframes
  use View to turn on speed curve
  move cursor to between the 2 sets of keyframes
  in front of cursor, try to move speed curve
  it gets stuck and crashes

THIS COMMIT CRASHES:
commit 25e944875e181186eeb59a124c1822e5b55d2248
Author: Good Guy <good1.2guy@gmail.com>
Date: Fri Sep 4 09:17:01 2020 -0600

    fix auto id 'that' blunder, tweak keyfrm popup speed undo

THIS COMMIT SEEMS TO WORK:
commit 22c6251d37911a11e322bf7518e6a992ea0bb6c7
Author: Good Guy <good1.2guy@gmail.com>
Date: Wed Sep 2 19:16:24 2020 -0600

    add ids to auto/labels, fix awdw gui deadlock, fix fourier bfr bug, fix cache critical section, rework normalize_speed, fix delete_track gang bug

So I reverted cinelerra keyframepopup.C, keyframepopup.h, and auto.C to the Sept 2, 2020 version since no further changes were made to those other than a comment.
PhyllisSmith

PhyllisSmith

2025-04-03 22:20

manager   ~0005797

Last edited: 2025-04-03 22:31

View 3 revisions

@Lukas, your persistence paid off. Since I noticed in the dmp you provided that you were using the effects Flip, Title, and Chroma Key (HSV) those are the ones I used too. I stuck with Chroma Key or Title which I could get to crash because initially I did not get Flip to crash (this may be a helpfu hint).

The Good News is that I can now get it to crash sometimes.
The Bad News is that sometimes it does not crash -- actually that is good news too so I can narrow down the root cause.
The other good news is that testing with a compiled version from April 2020, it has not crashed so far but by September 2020, it did crash. So with more testing time, I should be able to find which modification caused the problem.

I will update progress as it occurs.

Lukas

Lukas

2025-04-03 10:00

reporter   ~0005796

I think I found it. If I remove all video effects, I can move the speed curve and create keyframes. If I add any video effect, it still works. But when I create at least one keyframe on any video effect and then I move the speed curve, Cinelerra crashes. So it looks like a problem between video effects keyframes and speed curve keyframes.

Steps to reproduce: Open or create a project with at least one video clip. Attach any video effect. Create at least one keyframe on any video effect. View -> Speed. Move the speed curve in any place. Cinelerra crashes.
Lukas

Lukas

2025-04-03 07:46

reporter   ~0005795

I removed all video and audio effects from all tracks and it works now! So it looks like a problem between the speed curve and some effects. I will make tests with different combinations of effects to see what causes the problem.
PhyllisSmith

PhyllisSmith

2025-04-03 02:00

manager   ~0005794

@Lukas
(I forgot to actually add the previous note yesterday).
So today, I booted a Mint 19 O/S and loaded the same files as described in the late last note. I had no problem modifying speed with the mouse, except of course it was so slow with all of the files I had loaded.

We have to be able to reproduce the failure in order to have any chance of resolving it. But I will try some different scenarios.

IF YOU HAVE TIME could you try to temporarily rename your $HOME/.bcast5 directory (so you don't lose all of your settings) in order that a new one is created and then try your speed autos with the mouse. It will take longer to actually load your project because it will have to recreate all of the indexes for the files so be patient. If it still fails, then rename your original $HOME/.bcast5 directory so you get your settings back.
PhyllisSmith

PhyllisSmith

2025-04-03 01:48

manager   ~0005793

@Lukas
Thanks for the dmp file. Unfortunately it did not help in understanding the issue. Probably ulimit is not the problem thoug
So now I am trying to test a similar scenario to yours. Using the 0228 older version AppImage, I loaded 1280x720 Big Buck Bunny which has 6 audio tracks. Because it is about 10 minutes, I appended it 3 times to get to the almost 30 minutes. Then on 3 other tracks I loaded each with 84 clips so I have 4 video tracks total with 252 clips loaded (but 3x duplicates rather than 252 different). Added the speed curve to all tracks and mouse moved it and it did not crash.

Tomorrow if I can get the Mint O/S booted, I will test there.
Lukas

Lukas

2025-04-02 07:37

reporter   ~0005792

I tried it on anothe computer with 8 GB memory, Linux Mint 21.3, CinGG-20250331-x86_64.AppImage and ulimit -n 8192. Unfortunately with the same result. I could also attach the project XML file without video and audio clips, but I don't think it would be very useful.
PhyllisSmith

PhyllisSmith

2025-04-02 01:11

manager   ~0005791

@Lukas
Thanks for the dmp file. Unfortunately it did not help in understanding the issue. Probably ulimit is not the problem though.
So now I am trying to test a similar scenario to yours. Using the 0228 older version AppImage, I loaded 1280x720 Big Buck Bunny which has 6 audio tracks. Because it is about 10 minutes, I appended it 3 times to get to the almost 30 minutes. Then on 3 other tracks I loaded each with 84 clips so I have 4 video tracks total with 252 clips loaded (but 3x duplicates rather than 252 different). Added the speed curve to all tracks and mouse moved it and it did not crash.

Tomorrow if I can get the Mint O/S booted, I will test there.
Lukas

Lukas

2025-04-01 19:56

reporter   ~0005790

OK, here is the dump file.

I tried to increase ulimit, but the system doesn't allow me to do it. I was using 4096 since several years, so I forgot how it worked. I will try to figure it out again.

cinelerra_12179.dmp (688,634 bytes)
PhyllisSmith

PhyllisSmith

2025-04-01 18:54

manager   ~0005789

@Lukas
Does increasing ulimit to 8192 make a difference?
Could you attach the dump here? i.e. - /tmp/cinelerra_12179.dmp or your latest?
It does look like using the CinGG-20250228-x86_64-older-distros.AppImage "older version" is necessary for Mint 19.3 because kernel is at 5.0 (newer version appimage is at 5.8.15) and libc at 2.27 (newer version appimage is at 2.31).

Issue History

Date Modified Username Field Change
2025-04-01 09:11 Lukas New Issue
2025-04-01 18:54 PhyllisSmith Assigned To => PhyllisSmith
2025-04-01 18:54 PhyllisSmith Status new => acknowledged
2025-04-01 18:54 PhyllisSmith Note Added: 0005789
2025-04-01 19:56 Lukas File Added: cinelerra_12179.dmp
2025-04-01 19:56 Lukas Note Added: 0005790
2025-04-02 01:11 PhyllisSmith Note Added: 0005791
2025-04-02 07:37 Lukas Note Added: 0005792
2025-04-03 01:48 PhyllisSmith Note Added: 0005793
2025-04-03 02:00 PhyllisSmith Note Added: 0005794
2025-04-03 07:46 Lukas Note Added: 0005795
2025-04-03 10:00 Lukas Note Added: 0005796
2025-04-03 22:20 PhyllisSmith Note Added: 0005797
2025-04-03 22:30 PhyllisSmith Note Edited: 0005797 View Revisions
2025-04-03 22:31 PhyllisSmith Note Edited: 0005797 View Revisions
2025-04-08 03:03 PhyllisSmith Note Added: 0005798
2025-04-08 03:25 Andrew-R Note Added: 0005799
2025-04-08 19:58 PhyllisSmith Note Added: 0005800
2025-04-08 20:13 Lukas Note Added: 0005801