Stack Overflow when using Message Events component
Posted: Wed Feb 02, 2022 11:39 am
Hi again! I've added a "Message Events" component to a quest object. I've configured as follows:
When I accept the quest, however, I get an exception - well, 7 exceptions all "stack overflow":
If I disable the Message Events component, I don't get the exceptions thrown.
Any ideas?
- Required Sender: <None>
- Required Target: <None>
- Message: Quest State Changed
- Parameter: my_quest_id
- On Message (Message Args): Quest Object.OnMessage(MessageArgs messageArgs)
When I accept the quest, however, I get an exception - well, 7 exceptions all "stack overflow":
Code: Select all
Message System exception sending 'Quest State Changed'/'find_rexxars_family' to Rexxars Family (PixelCrushers.Wrappers.MessageEvents): The requested operation caused a stack overflow.
UnityEngine.Debug:LogError (object)
PixelCrushers.MessageSystem:SendMessageWithTarget (object,object,string,string,object[]) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Message System/MessageSystem.cs:358)
PixelCrushers.MessageSystem:SendMessage (object,string,PixelCrushers.StringField,object[]) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Message System/MessageSystem.cs:454)
PixelCrushers.QuestMachine.QuestMachineMessages:QuestStateChanged (object,PixelCrushers.StringField,PixelCrushers.QuestMachine.QuestState) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Utility/QuestMachineMessages.cs:160)
PixelCrushers.QuestMachine.Quest:SetState (PixelCrushers.QuestMachine.QuestState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest.cs:879)
PixelCrushers.QuestMachine.Quest:OnDestroy () (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest.cs:626)
Any ideas?