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

[Bug] /ad queue can get stuck on outdated addon instance & will break until reloading the plugin #629

Open
carvelli opened this issue Nov 3, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed This issue is unconfirmed

Comments

@carvelli
Copy link

carvelli commented Nov 3, 2024

What happened?

I'm using a SND script that, at some point, uses /ad queue The Praetorium

However, it seems with the way this is coded, it's likely that in

if (!_allConditionsMetToJoin && (!GenericHelpers.TryGetAddonByName("ContentsFinder", out _addonContentsFinder) || !GenericHelpers.IsAddonReady((AtkUnitBase*)_addonContentsFinder)))
, _allConditionsMetToJoin is true (possibly from a previous successful attempt to queue into an instance), and will at that point no longer call TryGetAddonByName to update the addon reference at all, thus any further attempts after this will produce the exception below.

Reloading the plugin fixes that error, it's just inconvenient to troubleshoot.

Version Number

0.0.0.173

Steps to reproduce the error

Be in a party with someone else

  • /ad queue The Praetorium
  • other person cancels (or doesn't accept) the duty prompt, so you don't end up in the instance
  • /ad queue is broken afterwards, regardless of which duty you select

Relevant log output

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at AutoDuty.Helpers.QueueHelper.QueueRegular() in /home/runner/work/AutoDuty/AutoDuty/AutoDuty/Helpers/QueueHelper.cs:line 183
   at AutoDuty.Helpers.QueueHelper.QueueUpdate(IFramework _) in /home/runner/work/AutoDuty/AutoDuty/AutoDuty/Helpers/QueueHelper.cs:line 236
   at Dalamud.Utility.EventHandlerExtensions.HandleInvoke(Action act) in C:\goatsoft\companysecrets\dalamud\\Utility\EventHandlerExtensions.cs:line 124

Other relevant plugins installed

No response

Plugin config file

No response

@carvelli carvelli added bug Something isn't working unconfirmed This issue is unconfirmed labels Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed This issue is unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant