Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Pressing and holding Enter-key in playlist on a single mp4 test video seems to generate memory leak

Aperta
#673 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Inizia riproducendo il problema nella playlist di Shotcut con un singolo MP4 mentre tieni premuto Enter, quindi monitora RES, i descrittori di file aperti e shotcut-log.txt. Il report indica messaggi MLT avformat ripetuti e molti handles per lo stesso file; il lavoro è completato quando l’accumulo viene identificato e arrestato, in modo che la memoria e gli handles rimangano stabili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've tested holding the Enter key (for at least 30-60 seconds) on a single file in the playlist. It seems like its leaking some memory (RES is now on 3,1g). Maybe this can lead to problems when navigating the playlist during editing.

Shotcut-version : 18.11.18.02 (disabled GPU effects)
Fedora: 29

top -p $(pgrep shotcut)

`Threads:  33 total,   0 running,  33 sleeping,   0 stopped,   0 zombie
%Cpu(s):  4,4 us,  1,9 sy,  0,0 ni, 91,9 id,  1,3 wa,  0,4 hi,  0,2 si,  0,0 st
GiB Mem :      5,7 total,      0,5 free,      4,2 used,      1,1 buff/cache
GiB Swap:      5,6 total,      2,7 free,      2,9 used.      0,6 avail Mem 

USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ P  PPID nTH   PID COMMAND                            
henning    5 -15 6565,7m   3,1g  43,5m S   0,8  53,6   0:06.52 2  5908  33 28652 SDLAudioP2                         
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   5:12.28 1  5908  33 28545 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 3  5908  33 28546 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:01.48 2  5908  33 28547 QXcbEventReader                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 0  5908  33 28552 gmain                              
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 0  5908  33 28554 gdbus                              
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 2  5908  33 28555 dconf worker                       
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.05 1  5908  33 28556 QDBusConnection                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 2  5908  33 28558 shotcut:disk$0                     
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.09 3  5908  33 28559 Qt bearer threa                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.04 3  5908  33 28560 Database                           
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.08 3  5908  33 28561 QQmlThread                         
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 3  5908  33 28562 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 3  5908  33 28565 QNetworkAccessM                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:02.30 1  5908  33 28640 FrameRenderer                      
henning   39  19 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.00 0  5908  33 28641 PulseHotplug                       
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.89 0  5908  33 28642 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   1:03.04 2  5908  33 28643 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:10.64 2  5908  33 28644 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:10.51 0  5908  33 28645 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:10.84 1  5908  33 28646 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:10.44 1  5908  33 28647 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.22 0  5908  33 28654 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.04 0  5908  33 25939 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.06 2  5908  33 25940 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.02 0  5908  33 25941 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.02 0  5908  33 25942 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.02 0  5908  33 25943 shotcut                            
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.04 2  5908  33 25944 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.05 3  5908  33 25945 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.04 3  5908  33 25946 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.01 3  5908  33 25947 Mlt::RenderThre                    
henning   20   0 6565,7m   3,1g  43,5m S   0,0  53,6   0:00.02 3  5908  33 25948 Mlt::RenderThre     `

`
henning@satellite Shotcut]$ tail ~/.local/share/Meltytech/Shotcut/shotcut-log.txt 
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
[Debug  ] <MLT> [producer avformat-novalidate] "/home/henning/Nedlastinger/test.mp4" checking VFR: pkt.duration 512
`
[henning@satellite ~]$ lsof -p $(pgrep shotcut) | tail
shotcut 28545 henning  112r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  113r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  114r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  115r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  116r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  117r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  118r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  119r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  263r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
shotcut 28545 henning  264r      REG              253,2   1471917 1967667 /home/henning/Nedlastinger/test.mp4
Lingua principale
C++
Stelle
15.5k
Fork
1.5k
Merge medio
2g 11h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mltframework/shotcut

Tutte le issue di mltframework/shotcut

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.