Skip to content

Title drop-down program freeze (Windows interface) #6984

Closed

Description

@jbruchon

Problem Description

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

What Operating System are you running?

Windows 10

What version of HandBrake are you running?

1.9.2

Where did you download HandBrake from?

handbrake.fr

Activity

  1. sr55 commented on Jun 25, 2025

    @sr55
    Contributor

    Can you grab the header from the log window (the system information please)

  2. jbruchon commented on Jun 26, 2025

    @jbruchon
    Author

    Header added.

  3. sr55 commented on Jun 26, 2025

    @sr55
    Contributor

    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.

  4. galad87 commented on Jun 26, 2025

    @galad87
    Contributor

    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.

  5. sr55 commented on Jun 26, 2025

    @sr55
    Contributor

    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.

  6. added this to the 1.10.0 milestone on Jul 10, 2025
  7. sr55 commented on Jul 10, 2025

    @sr55
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions