Skip to content

Fix #4145 - Fixed self deadlock that hangs the application on icon fetch#4182

Merged
Martí Climent (marticliment) merged 3 commits intoDevolutions:mainfrom
Taron-art:fix/4145-Opening-shared-package-hangs-the-application
Oct 30, 2025
Merged

Fix #4145 - Fixed self deadlock that hangs the application on icon fetch#4182
Martí Climent (marticliment) merged 3 commits intoDevolutions:mainfrom
Taron-art:fix/4145-Opening-shared-package-hangs-the-application

Conversation

@Taron-art
Copy link
Contributor

@Taron-art Artur Kharin (Taron-art) commented Oct 15, 2025

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

There is an issue with TaskRecycler.RunOrAttach - it calls RunOrAttachAsync with block, but inside RunOrAttachAsync (in _runTaskAndWait) there is an await on Task. Because this is called from UI thread, code after await Task must run on UI thread. But since we blocked UI thread in TaskRecycler.RunOrAttach, the program cannot continue.

To fix the problem, _runTaskAndWait (and _runTaskAndWait_VOID for consistency) were updated to allow continue on any thread (using ConfigureAwait(false)). Since there is no UI related code here, it is safe to do that.


Closes #4145

@marticliment
Copy link
Collaborator

I will test and merge today or tomorrow

@marticliment Martí Climent (marticliment) merged commit 7b8544e into Devolutions:main Oct 30, 2025
2 checks passed
@Taron-art Artur Kharin (Taron-art) deleted the fix/4145-Opening-shared-package-hangs-the-application branch October 31, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Opening shared package hangs the application (only when launched from unigetui:// protocol)

2 participants