Skip to content

Conversation

CyanVoxel
Copy link
Member

This PR aims to fix #733 by replacing calls to translate_qobject with translate_formatted inside the TagWidget class, as for an unknown reason this seems to cause the application to progressively slow down as more TagWidgets are created and removed over time, and also seemingly causes a memory leak.

The translate_qobject issue should be investigated further, however for now this fix should hopefully address the specific issue raised in #733. I've also included a couple small fixes and tweaks to nearby code that I discovered while tracking this down.

@CyanVoxel CyanVoxel added Priority: Critical An issue that requires immediate attention Type: UI/UX User interface and/or user experience TagStudio: Tags Relating to the TagStudio tag system Status: Review Needed A review of this is needed labels Jan 26, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5 (Post-SQL) milestone Jan 26, 2025
@Tishj
Copy link

Tishj commented Jan 26, 2025

This indeed fixes #733 ! 🥳

@CyanVoxel CyanVoxel merged commit f2a2f9a into main Jan 26, 2025
10 checks passed
@CyanVoxel CyanVoxel deleted the fix-733 branch January 26, 2025 09:50
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Jan 26, 2025
@Computerdores
Copy link
Collaborator

it also breaks being able to change the language without restarting...

@CyanVoxel
Copy link
Member Author

it also breaks being able to change the language without restarting...

That will need to be a separate issue then, since the resource leak caused by translate_qobject here was severely degrading the usability of the program

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Priority: Critical An issue that requires immediate attention TagStudio: Tags Relating to the TagStudio tag system Type: UI/UX User interface and/or user experience
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Adding (or searching for) tags gets increasingly slower in the same session (running process)
3 participants