StackOverflowException

Announcements, support questions, and discussion for Quest Machine.
Post Reply
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

StackOverflowException

Post by AArtlone »

Hi again,

I have just run into a problem where I get a StackOverflowException if I add a QuestEntity component to the object that already has a QuestGiver component.

However, when trying to reproduce it in the Demo scene, at first I was not able to do that.

I found out that it only happens when the QuestGiver's ID and DisplayName fields are empty.

Steps to reproduce:
  • Go to QuestMachine Demo scene
  • Create an empty GameObject
  • Add QuestGiver component
  • Add QuestEntity component
  • Start the game
This results in either StackOverflowException or Unity completely crushing.

Hopefully, this helps.

Best wishes,
Artem
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: StackOverflowException

Post by Tony Li »

Hi Artem,

Thanks for reporting this. The fix is in the repository for the next release. Here's a patch:

QM_EntityIDPatch_2021-03-12.unitypackage
Post Reply