Skip to content

[Bug]: Using translate_qobject() Causes Resource Leak #750

Closed
@CyanVoxel

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha 9.5.0 PR1 (main branch)

Operating System & Version

macos 15.1.1

Description

As discovered while debugging #733 and explained in #735, there seems to be a resource leak stemming from the use of the translate_qobject() method. Under the circumstances of #733 the method was used to translate the context menu of TagWidgets that would frequently be deleted and recreated. The issue resulted in slower and slower application respond times and an increase in system memory usage.

Expected Behavior

Translating a QObject via translate_qobject() should not result in a permanent application slowdown and/or unfreeable memory allocation.

Steps to Reproduce

Follow steps in #733 under that TagStudio version

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionType: BugSomething isn't working as intended

    Type

    No type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions