View Issue Details

IDProjectCategoryView StatusLast Update
0000246Cinelerra-GG[All Projects] Bugpublic2019-06-14 12:42
ReporterLukas Assigned ToPhyllisSmith  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformOSLinux Mint 19.1 64-bitOS Version
Product Version 
Target VersionFixed in Version 
Summary0000246: Cinelerra-GG can't open a project with many clips, only with less clips
DescriptionIn 2018, I did a movie in the last version of Cinelerra-CV with about 500 short video clips (640x480, MJPEG/AVI). When I try to open it in the last version of Cinelerra-GG, it's opening video clips much slower than in Cinelerra-CV and it crashes after about 300 clips. It happens every time, only the number of successfully opened clips differ a bit. I tried to run Cinelerra-GG as a normal user, as root, with "Try FFMpeg first", with "Try FFMpeg last". When I try to open the same movie with less video clips, it doesn't crash. My computer has 8 GB memory and runs Linux Mint 19.1 64-bit.

I add the first and last parts of the terminal output in the text file cinelerra1.txt.
TagsNo tags attached.

Activities

PhyllisSmith

PhyllisSmith

2019-06-14 12:42

manager   ~0001727

The help, feedback, and testing all worked well. I did add this to the local copy of the manual for future discoveries of same problem so it will get eventually pushed into the user copy.
Lukas

Lukas

2019-06-14 08:58

reporter   ~0001726

Thank you all for your comments. I also did some tests and I can confirm everything. It helped me and it's good to know some new tricks.

I think the system ulimit in Mint is set to 1024. It wasn't set in /etc/security/limits.conf, but I could set it there and now I can raise it for a normal user in a terminal and then run "cin". Yes, 4096 is enough, even 1500 was enough for my big projects.
PhyllisSmith

PhyllisSmith

2019-06-13 18:27

manager   ~0001725

You should not have to be root to change the ulimit UNLESS the system ulimit is set low. Maybe 65535 is the wrong number for Mint (try 4096 instead), even though OK for Leap and Fedora. On Fedora, the file descriptor limit is set for everyone in /etc/security/limits.conf so you can just modify that and forget about it.
PhyllisSmith

PhyllisSmith

2019-06-13 15:39

manager   ~0001724

Last edited: 2019-06-13 18:13

View 2 revisions

Lukas - both Sam and Pierre's answers solve problems that keep things going.
I did some tests this morning with modifying the ulimit value (since I do not have 500 clips!) On my computer O/S, ulimit -n shows the default is 1024.

If you go into Settings->Preferences->Appearance, and uncheck "use thumbnails in resource window", the number of file descriptors used goes down by 1/2 the number of clips you load because each thumbnail requires an additional file descriptor. So since you were able to load about 300 out of the 500 before it crashed, you might have been able to load all without modifying the ulimit.

Yes, you lose your helpful thumbnails in the Resources window, but as far as I know, they do not even exist in CV so you will not miss them. And as Pierre already mentioned, just creating these thumbnails slows you down, let alone having them "play" the first few frames over and over. BTW, that ulimit stays in affect for the current shell so a ulimit -n 65535 is way overkill but probably will not cause any problems. But, Sam, building the ulimit into Cin may not be such a good idea since smaller computers may object. If it becomes a serious problem, we can always reconsider that though.

Pierre

Pierre

2019-06-13 12:31

updater   ~0001723

"When I try to open it in the last version of Cinelerra-GG, it's opening video clips much slower than in Cinelerra-CV"

I find that by choosing (in Cinelerra-GG) the mode of displaying sources by list or list of icons (menu of the right mouse button on the sources) and by choosing the "Src Traget" option of the "Source Target" menu of the "Resources" window.

The loading time of source media list lists is shorter.
Sam

Sam

2019-06-13 12:25

administrator   ~0001722

You're welcome. I didn't know the command either.

@PhyllisSmith
I don't know if this command could be built directly into Cin?
Lukas

Lukas

2019-06-13 10:35

reporter   ~0001721

Thank you, it worked! I use Linux 23 years and I never heard about this command. I have just to figure out how to use ulimit as a normal user, for the present I could set it only as root. I don't know if it's a good idea, but would it be possible to add the maximal number of opened files as an option to the Cinelerra settings?

Concerning longer loading time, I understand and it's OK. I just didn't know the reason why loading didn't work, so I tried to write every information.
Sam

Sam

2019-06-13 10:09

administrator   ~0001720

There was a request from some users for more information to be displayed from the files. For this reason the loading routine has been extended, also in the knowledge that the loading time is longer compared to previous versions. The developers communicated this openly, but most users were willing to accept this small disadvantage.

Your problem with loading the files looks familiar to me. I can refer you to the following ticket https://www.cinelerra-gg.org/bugtracker/view.php?id=131
For large projects I use the following command in the console.

ulimit -n 65535

I'm not sure if it is the cause of your problem, you can report if it worked.
Lukas

Lukas

2019-06-13 09:41

reporter  

cinelerra1.txt (3,141 bytes)
Cinelerra Infinity - built: May 31 2019 09:37:21
git://git.cinelerra-gg.org/goodguy/cinelerra.git
(c) 2006-2018 Heroine Virtual Ltd. by Adam Williams
(c) 2007-2018 cin5 derivative by W.P. Morrow aka goodguy
Cinelerra is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. There is absolutely no warranty for Cinelerra.

FFMPEG::open_decoder: some stream times estimated: /media/art/VERBATIM HD/film/rim/A0001.AVI
FFMPEG::open_decoder: some stream times estimated: /media/art/VERBATIM HD/film/rim/A0001.AVI

...

FFMPEG::open_decoder: some stream times estimated: /media/art/VERBATIM HD/film/rim/F0062.AVI
FFMPEG::open_decoder: some stream times estimated: /media/art/VERBATIM HD/film/rim/F0062.AVI
BC_DisplayInfo::init_window: cannot open display "".
BC_DisplayInfo::init_window: cannot connect to X server.
unjoined tids / owner 42
  00007feb27fff700 / 00007feb8f496700 9MainError
  00007feb267fc700 / 00007feb7affd700 18FFMPEGScanProgress
  00007feb5dffb700 / 00007feb8ca3c700 12RenderEngine
  00007feb5e7fc700 / 00007feb67fff700 15BC_WindowEvents
  00007feb5effd700 / 00007feb9b99f780 15BC_WindowEvents
  00007feb64ff9700 / 00007feb78ff9700 15BC_WindowEvents
  00007feb5f7fe700 / 00007feb9b99f780 11BC_Repeater
  00007feb5ffff700 / 00007feb67fff700 11BC_Repeater
  00007feb657fa700 / 00007feb79ffb700 15BC_WindowEvents
  00007feb65ffb700 / 00007feb9b99f780 10Playback3D
  00007feb66ffd700 / 00007feb8f496700 15BC_WindowEvents
  00007feb667fc700 / 00007feb78ff9700 11BC_Repeater
  00007feb677fe700 / 00007feb79ffb700 11BC_Repeater
  00007feb67fff700 / 00007feb9b99f780 7GWindow
  00007feb797fa700 / 00007feb8f496700 11BC_Repeater
  00007feb78ff9700 / 00007feb9b99f780 11LevelWindow
  00007feb79ffb700 / 00007feb9b99f780 7CWindow
  00007feb8f496700 / 00007feb9b99f780 7AWindow
  00007feb7a7fc700 / 00007feb9b99f780 12BC_Clipboard
  00007feb7affd700 / 00007feb9b99f780 11MainIndexes
  00007feb7b7fe700 / 00007feb9b99f780 12BC_Clipboard
  00007feb7bfff700 / 00007feb9b99f780 11BC_Repeater
  00007feb80ff9700 / 00007feb9b99f780 7SWindow
  00007feb817fa700 / 00007feb9b99f780 11ChannelInfo
  00007feb81ffb700 / 00007feb9b99f780 18RecordCutAdsStatus
  00007feb827fc700 / 00007feb9b99f780 13RecordChannel
  00007feb82ffd700 / 00007feb83fff700 15BC_WindowEvents
  00007feb837fe700 / 00007feb83fff700 11BC_Repeater
  00007feb83fff700 / 00007feb9b99f780 13RemoteControl
  00007feb88a34700 / 00007feb9b99f780 12BC_Clipboard
  00007feb89235700 / 00007feb9b99f780 14ResourceThread
  00007feb89a36700 / 00007feb9b99f780 12BC_Clipboard
  00007feb8a237700 / 00007feb8c23b700 15BC_WindowEvents
  00007feb8aa38700 / 00007feb8c23b700 11BC_Repeater
  00007feb8b239700 / 00007feb8c23b700 9VPlayback
  00007feb8ba3a700 / 00007feb8c23b700 12BC_Clipboard
  00007feb8c23b700 / 00007feb9b99f780 7VWindow
  00007feb8ca3c700 / 00007feb9b99f780 9CPlayback
  00007feb8d23d700 / 00007feb9b99f780 11CWindowTool
  00007feb8da3e700 / 00007feb9b99f780 12BC_Clipboard
  00007feb8e23f700 / 00007feb9b99f780 16AssetVIconThread
  00007feb8ea40700 / 00007feb9b99f780 12BC_Clipboard

cinelerra1.txt (3,141 bytes)

Issue History

Date Modified Username Field Change
2019-06-13 09:41 Lukas New Issue
2019-06-13 09:41 Lukas File Added: cinelerra1.txt
2019-06-13 10:09 Sam Note Added: 0001720
2019-06-13 10:35 Lukas Note Added: 0001721
2019-06-13 12:25 Sam Note Added: 0001722
2019-06-13 12:31 Pierre Note Added: 0001723
2019-06-13 15:39 PhyllisSmith Note Added: 0001724
2019-06-13 18:13 PhyllisSmith Note Edited: 0001724 View Revisions
2019-06-13 18:27 PhyllisSmith Note Added: 0001725
2019-06-14 08:58 Lukas Note Added: 0001726
2019-06-14 12:42 PhyllisSmith Assigned To => PhyllisSmith
2019-06-14 12:42 PhyllisSmith Status new => closed
2019-06-14 12:42 PhyllisSmith Resolution open => no change required
2019-06-14 12:42 PhyllisSmith Note Added: 0001727