[GH-ISSUE #1219] [Windows] Split Tunneling: uploading relatively big site list causes memory leak #455

Open
opened 2026-10-13 20:21:56 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @Rebel028 on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1219

Describe the bug
Uploading relatively big site list causes memory leak. After restarting the app it's impossible to reset the list because it requires to load the whole list into the UI (that causes memory leak again). Mentioned in https://github.com/amnezia-vpn/amnezia-client/issues/1135 but was not solved

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings'->'Connection'->'Site-based split tunneling'
  2. Click on three dots then 'import'
  3. Choose file for import: amnezia_sites.json (this file is very big but you can reproduce in with file from https://github.com/amnezia-vpn/amnezia-client/issues/1135)
  4. Application starts consuming RAM like crazy

Expected behavior
List is loaded successfully and app is usable

Log files
Logs are enabled in settings, but no logs are written

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 4.8.1.9

Additional context

Related issues:

It probably has something to do with client/ui/controllers/sitesController.cpp and I would gladly fixed it myself if I'd ever worked with Qt and C++

Originally created by @Rebel028 on GitHub (Oct 30, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1219 **Describe the bug** Uploading relatively big site list causes memory leak. After restarting the app it's impossible to reset the list because it requires to load the whole list into the UI (that causes memory leak again). Mentioned in https://github.com/amnezia-vpn/amnezia-client/issues/1135 but was not solved **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Settings'->'Connection'->'Site-based split tunneling' 2. Click on three dots then 'import' 3. Choose file for import: [amnezia_sites.json](https://github.com/user-attachments/files/17572058/amnezia_sites.json) (this file is very big but you can reproduce in with file from https://github.com/amnezia-vpn/amnezia-client/issues/1135) 4. Application starts consuming RAM like crazy **Expected behavior** List is loaded successfully and app is usable **Log files** Logs are enabled in settings, but no logs are written **Desktop (please complete the following information):** - OS: Windows 11 - Version 4.8.1.9 **Additional context** Related issues: - https://github.com/amnezia-vpn/amnezia-client/issues/1135 - https://github.com/amnezia-vpn/amnezia-client/issues/1161 - https://github.com/amnezia-vpn/amnezia-client/issues/1139 - https://github.com/amnezia-vpn/amnezia-client/issues/975 It probably has something to do with [client/ui/controllers/sitesController.cpp](https://github.com/amnezia-vpn/amnezia-client/blob/4.8.1.9/client/ui/controllers/sitesController.cpp) and I would gladly fixed it myself if I'd ever worked with Qt and C++
Author
Owner

@Xambey commented on GitHub (Nov 7, 2024):

plus one

<!-- gh-comment-id:2462908693 --> @Xambey commented on GitHub (Nov 7, 2024): plus one
Author
Owner

@Marlin1Manson commented on GitHub (Sep 13, 2025):

plus

<!-- gh-comment-id:3288339113 --> @Marlin1Manson commented on GitHub (Sep 13, 2025): plus
Sign in to join this conversation.
No labels
pull-request
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
amnezia-vpn/amnezia-client#455
No description provided.