Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tasks-tracker #7177

Merged
merged 3 commits into from
Jan 9, 2025
Merged

Conversation

JamesShelton140
Copy link
Contributor

Replaced the last instance of clientThread::invokeLater called during plugin startup with clientThread::invoke to prevent a hang on auto profile switch as indicated by runelite/runelite#18618 (comment)

We were not able to recreate the freeze/hang to confirm this fix but a similar change in the previous commit (osrs-reldo/tasks-tracker-plugin@b57d548) fixed an instance of the hang we were able to replicate.

@runelite-github-app
Copy link

runelite-github-app bot commented Dec 23, 2024

Includes changes by non-author

tasks-tracker: b57d548986e211fdd1b77d7af6826cda7ffef3dc...1f8d2b36e44ef80b88345a3b38117424a8983324

@iProdigy
Copy link
Member

Could yall refactor away the blocking usage of CompletableFuture? (keep it async as intended)

@LlemonDuck LlemonDuck added the waiting for author waiting for the pr author to make changes or respond to questions label Dec 24, 2024
@runelite-github-app runelite-github-app bot removed the waiting for author waiting for the pr author to make changes or respond to questions label Dec 28, 2024
@JamesShelton140
Copy link
Contributor Author

Blocking usage of CompletableFuture refactored out as requested:

osrs-reldo/tasks-tracker-plugin@f797743

@JamesShelton140
Copy link
Contributor Author

It's not necessary to prevent hangs/exceptions since the thread is checked before swing components are modified but I have wrapped the calls as suggested anyway since they were sometimes being rejected for being on the wrong thread.

osrs-reldo/tasks-tracker-plugin@1f8d2b3

@CC007
Copy link

CC007 commented Jan 3, 2025

Any idea when this could get merged? Preferably before Leagues is over. Otherwise it kind of defeats the purpose.

@raiyni
Copy link
Member

raiyni commented Jan 3, 2025

We were not able to recreate the freeze/hang to confirm this fix

Doesn't inspire confidence if this fixes the freeze or not

@Ryanleonard9
Copy link

Ryanleonard9 commented Jan 3, 2025

@JamesShelton140 @raiyni as a neutral third party who has been anxiously awaiting this plugin to come back online, I recently downloaded runelite locally as well as the plugin, and I've been swapping between main game and leagues quite a bit the last few days and have yet to experience any slowness, crashing or anything out of the ordinary. If you'd like to message me for an sort of validation, let me know and im happy to provide whatever may be needed.

@SeaifanAladdin
Copy link

We were not able to recreate the freeze/hang to confirm this fix

Doesn't inspire confidence if this fixes the freeze or not

I have just spent some time trying to test this change by attempting to reproduce the freeze/hang using the steps outlined runelite/runelite#18618 (comment)

What I did is I compiled 2 different versions of the plugin, and had RuneLite load them as if they were fetched from the Plugin Hub directly.

  1. Old version with the commit osrs-reldo/tasks-tracker-plugin@b57d548
  2. The new version with the commit osrs-reldo/tasks-tracker-plugin@1f8d2b3

As expected, the old version of the plugin does freeze and hang when switching between profiles.
I performed the same tests with the new version and I no longer see any freezes or hangs

@tylerthardy
Copy link
Contributor

Anything we can do to help with this PR?

@Adam- Adam- merged commit e7eddd0 into runelite:master Jan 9, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants