WebUI freeze in Safari on iOS/iPadOS when typing save path with many subfolders (regression introduced in v5.1.x, path-autocomplete) #17311

Open
opened 2026-02-22 03:47:04 -05:00 by deekerman · 3 comments
Owner

Originally created by @menkromsen on GitHub (Nov 17, 2025).

qBittorrent & operating system versions

qBittorrent version: 5.1.3
Tested both the official Windows x64 5.1.3 version -and the Linuxserver image version 5.1.2.

Client devices: iPhone 14 Plus, iPad Pro 11"
Client OS: iOS/iPadOS 18.6.2
Browser: Safari

Qt version: 6.8.x (from Linuxserver image)
libtorrent-rasterbar: 2.0.x (from Linuxserver image)

What is the problem?

The WebUI freezes in Safari on iOS/iPadOS when typing a save path that contains a large number of subdirectories. (tested 887 folders)
Regression introduced in qBittorrent 5.1.0 with the new path autocomplete (PR #20906).
Still occurs in 5.1.3.

Because of this issue I'm currently using version 5.0.4 without the path-autocomplete function.

Steps to reproduce

  1. Run qBittorrent using version 5.1.3

  2. Open the WebUI in Safari on iPhone or an iPad.

  3. Add a torrent.

  4. Type a path that contains many subfolders, e.g. /movies/ (~1000 subdirectories).

  5. Safari becomes unresponsive after a few seconds and must be force-closed.

Additional context

Expected behavior
Typing a save path should not cause the browser to freeze, even if the folder contains many subdirectories.

Actual behavior
Safari freezes completely after a short delay (not instantly).
Entire browser becomes unresponsive. Most force-close the browser and open again to regain control.

Reproducible on multiple devices:
iPhone 14 Plus – iOS 18.6.2
iPad Pro 11" – iPadOS 18.6.2

-No ad blockers installed.

Regression
Affected: 5.1.0 – 5.1.3

Not affected: 5.0.4 (no path-autocomplete feature)

Suggested improvements

  1. Add a toggle in WebUI settings to disable path autocomplete. I don't need this function - and the UI becomes cluttered with the auto-suggestions appearing.

  2. Limit autocomplete result count (e.g., max 50–100).

  3. Lazy-load folder suggestions instead of rendering thousands at once.

Log(s) & preferences file(s)

No logs needed I guess, it is Safari that is freezing.

Originally created by @menkromsen on GitHub (Nov 17, 2025). ### qBittorrent & operating system versions qBittorrent version: 5.1.3 Tested both the official Windows x64 5.1.3 version -and the Linuxserver image version 5.1.2. Client devices: iPhone 14 Plus, iPad Pro 11" Client OS: iOS/iPadOS 18.6.2 Browser: Safari Qt version: 6.8.x (from Linuxserver image) libtorrent-rasterbar: 2.0.x (from Linuxserver image) ### What is the problem? The WebUI freezes in Safari on iOS/iPadOS when typing a save path that contains a large number of subdirectories. (tested 887 folders) Regression introduced in qBittorrent 5.1.0 with the new path autocomplete (PR #[20906](https://github.com/qbittorrent/qBittorrent/pull/20906)). Still occurs in 5.1.3. Because of this issue I'm currently using version 5.0.4 without the path-autocomplete function. ### Steps to reproduce 1. Run qBittorrent using version 5.1.3 2. Open the WebUI in Safari on iPhone or an iPad. 3. Add a torrent. 4. Type a path that contains many subfolders, e.g. /movies/ (~1000 subdirectories). 5. Safari becomes unresponsive after a few seconds and must be force-closed. ### Additional context **Expected behavior** Typing a save path should not cause the browser to freeze, even if the folder contains many subdirectories. **Actual behavior** Safari freezes completely after a short delay (not instantly). Entire browser becomes unresponsive. Most force-close the browser and open again to regain control. Reproducible on multiple devices: _iPhone 14 Plus – iOS 18.6.2 iPad Pro 11" – iPadOS 18.6.2_ -No ad blockers installed. Regression Affected: 5.1.0 – 5.1.3 Not affected: 5.0.4 (no path-autocomplete feature) ### **Suggested improvements** 1. Add a toggle in WebUI settings to disable path autocomplete. I don't need this function - and the UI becomes cluttered with the auto-suggestions appearing. 2. Limit autocomplete result count (e.g., max 50–100). 3. Lazy-load folder suggestions instead of rendering thousands at once. ### Log(s) & preferences file(s) No logs needed I guess, it is Safari that is freezing.
Author
Owner

@glassez commented on GitHub (Nov 17, 2025):

@qbittorrent/web-developers, @pktiuk

@glassez commented on GitHub (Nov 17, 2025): @qbittorrent/web-developers, @pktiuk
Author
Owner

@menkromsen commented on GitHub (Dec 2, 2025):

No love for this bug yet it seems.

I'm no code-guru in any way, but asked ChatGPT about the changes pktiuk made in PR https://github.com/qbittorrent/qBittorrent/pull/20906 -and had ChatGPT give some suggestions on how to fix it. It's fair to say that ChatGPT was not impressed by this logic and meltdown of the mobile browser is bound to happen if there are lots of underfolders available.

I may try to contribute myself if not anybody else feels the call. I think there should be implemented some changes so that this feature could be toggled off in the settings. That is important.
And then, the logic needs to be improved so that the feature actually works as intended without crashing the browser.

@menkromsen commented on GitHub (Dec 2, 2025): No love for this bug yet it seems. I'm no code-guru in any way, but asked ChatGPT about the changes pktiuk made in PR https://github.com/qbittorrent/qBittorrent/pull/20906 -and had ChatGPT give some suggestions on how to fix it. It's fair to say that ChatGPT was not impressed by this logic and meltdown of the mobile browser is bound to happen if there are lots of underfolders available. I may try to contribute myself if not anybody else feels the call. I think there should be implemented some changes so that this feature could be toggled off in the settings. That is important. And then, the logic needs to be improved so that the feature actually works as intended without crashing the browser.
Author
Owner

@pktiuk commented on GitHub (Dec 7, 2025):

I guess that you can try to write a patch and start using it with your setup.
And if it works, then you could upload it as a PR.

@pktiuk commented on GitHub (Dec 7, 2025): I guess that you can try to write a patch and start using it with your setup. And if it works, then you could upload it as a PR.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#17311
No description provided.