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

AddonLifecycle ReceiveEvent improvements #1511

Merged

Conversation

MidoriKami
Copy link
Contributor

This new subsystem groups together the ReceiveEvent hooks for multiple addons when they share the same ReceiveEvent handler.

This addresses the issue that occurs when you try to hook addons that share handlers causing them to invoke each-others handlers recursively resulting in a stack overflow crash.

Also adds AddonLifecycle Data Window Widget for viewing the current status of all listeners and receive event handlers

Closes #1508

Add a check to make sure addons that invoke virtual functions for other addons don't trigger lifecycle messages multiple times.
Disable hook when all listeners for an addon unregister
@MidoriKami MidoriKami requested a review from a team as a code owner October 30, 2023 22:05
@KazWolfe KazWolfe merged commit 67ae069 into goatcorp:master Oct 31, 2023
2 checks passed
@MidoriKami MidoriKami deleted the AddonLifecycle_ReceiveEventSafety branch October 31, 2023 02:39
wozaiha pushed a commit to ottercorp/Dalamud that referenced this pull request Dec 8, 2023
* Prototype

* Add hook null safety

Add a check to make sure addons that invoke virtual functions for other addons don't trigger lifecycle messages multiple times.

* Expose event listeners for AddonLifecycleWidget.cs

Disable hook when all listeners for an addon unregister

* Add AddonLifecycleWidget.cs

* Remove excess logging

IME fix

AddonLifecycle ReceiveEvent improvements (goatcorp#1511)

* Prototype

* Add hook null safety

Add a check to make sure addons that invoke virtual functions for other addons don't trigger lifecycle messages multiple times.

* Expose event listeners for AddonLifecycleWidget.cs

Disable hook when all listeners for an addon unregister

* Add AddonLifecycleWidget.cs

* Remove excess logging

Add Additional AddonSetup (goatcorp#1460)

* Add Additional AddonSetup

* Update Documentation

AddonLifecycle Add AddonReceiveEvent (goatcorp#1473)

AddonLifecycle Extra Safety (goatcorp#1483)

* Disallow attempting to hook base AtkEventListener.ReceiveEvent

* Fix incorrect address resolution

* Add exception guards

* Remove debug logging

Fix multi-line copy/paste between ImGui and XIV (goatcorp#1525)

w

Prevent Tab key from breaking input

fix minor things

Make CJK imes work better

Miscellaneous improvements (goatcorp#1537)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AddonLifeCycle crashing client on Pre/Post ReceiveEvent
2 participants