You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title drop-down program freeze (Windows interface) #6984
I dropped a folder of about 3500 files on HandBrake, added to queue with a preset, and started encoding. After ~8 were done, I moved the transcodes and deleted their sources. Then, I decided to tweak some encoding settings using the preview function, but the last file in the title list wasn't ideal, so I went to specify a file from the already loaded list. After opening the "Title" drop-down, the program completely froze ("not responding") and remained frozen after several minutes, with the drop-down stuck on-screen and even covering up this bug report page. I had to kill the process manually.
My best guess is that opening the Title drop-down triggers something that causes the deleted files to hang the drop-down, but I just tried loading one file (not running any encodes) and renaming the source file to "delete" it, and the drop-down didn't hang. My second-best guess is that a code path in the Title drop-down code is suboptimal and thus not handling the high number of files efficiently, effectively freezing the interface when so many files are involved.
Activity Log, Crash Log or any other details
I accidentally deleted the activity log, but since this is an interface freeze, it wouldn't help. Log header info:
HandBrake 1.9.2 (2025022300)
OS: Microsoft Windows NT 10.0.19045.0
CPU: AMD Ryzen 9 5950X 16-Core Processor
Ram: 65456 MB,
GPU Information:
NVIDIA GeForce RTX 3080 - 32.0.15.6109
Screen: 2560x1440
Temp Dir: C:\Users\Owner\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Owner\AppData\Roaming\HandBrake
Probably very little we can do about this. Styled controls do have overheads when you have large sets of data. > 1000 is probably going to get a bit sluggish. I could see the control potentially iterating the set and causing windows to think the apps hung when it hasn't.
All I can really suggest is work in smaller batches, or move to HandBrakeCLI which is generally better suited to this kind of workflow regardless.
Does opening the drop-down have some side effects? It seems strange that it is slow, or does it depend on which of Microsoft 1241234 UI frameworks is being used.
While the Microsoft control itself isn't fantastic on it's own, the underying issue seems to be the fact there is a style trigger to handle the difference in display on open vs closed. There is a cost to doing that. It's a trade off for better usability and appearance.
I've run it with 3700 4K files and while it stutters a little while opening, it's not showing any signs of freezing so I think this should be fine now.
Activity
sr55 commentedon Jun 25, 2025
Can you grab the header from the log window (the system information please)
jbruchon commentedon Jun 26, 2025
Header added.
sr55 commentedon Jun 26, 2025
Probably very little we can do about this. Styled controls do have overheads when you have large sets of data. > 1000 is probably going to get a bit sluggish. I could see the control potentially iterating the set and causing windows to think the apps hung when it hasn't.
All I can really suggest is work in smaller batches, or move to HandBrakeCLI which is generally better suited to this kind of workflow regardless.
galad87 commentedon Jun 26, 2025
Does opening the drop-down have some side effects? It seems strange that it is slow, or does it depend on which of Microsoft 1241234 UI frameworks is being used.
sr55 commentedon Jun 26, 2025
While the Microsoft control itself isn't fantastic on it's own, the underying issue seems to be the fact there is a style trigger to handle the difference in display on open vs closed. There is a cost to doing that. It's a trade off for better usability and appearance.
WinGui: Optimise the Title dropdown for larger numbers of scanned tit…
sr55 commentedon Jul 10, 2025
I've removed the style triggers and re-implemented with events. This may help.
I've also added virtualisation as it seems it may not be on by default.
Should make a difference, especially on slower machines.
You can try a development build ( https://github.com/HandBrake/HandBrake-snapshots ) after the next build runs. Would be interesting to know if there is any improvement.
I've run it with 3700 4K files and while it stutters a little while opening, it's not showing any signs of freezing so I think this should be fine now.