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

User Error -> StackOverflow AssertHit! (999+ times) #664

Open
vertis opened this issue Oct 17, 2019 · 2 comments
Open

User Error -> StackOverflow AssertHit! (999+ times) #664

vertis opened this issue Oct 17, 2019 · 2 comments

Comments

@vertis
Copy link

vertis commented Oct 17, 2019

I managed to get a very nasty error by accidentally putting a MonoInstaller in the list of PrefabInstallers (attached to SceneContext).

This is a user error, in that I just wasn't paying enough attention when I added the installer, but it did result in Unity freezing for quite a while and then printing Zenject Exception: Assert hit! 999+ times to the console.

Aside from locking Unity up for a minute or two the error message is less than obvious (especially for a beginner).

Steps to reproduce:

  1. Add SceneContext
  2. Create MonoInstaller
  3. Add MonoInstaller as component of SceneContext gameobject
  4. Add MonoInstaller to PrefabInstaller list
  5. Run project

Without ever having touched the prefab installer before, I'm guessing this causes it to instatiate itself in an infinite loop.

I'm running Unity 2019.1.14f1 (though I doubt that matters).

@vertis vertis changed the title UserError -> StackOverflow AssertHit! (999+ times) User Error -> StackOverflow AssertHit! (999+ times) Oct 17, 2019
@nexxogen
Copy link

I wholeheartedly recommend that you switch to this repo:

https://github.com/svermeulen/Extenject

It is maintained by the original Zenject author and unlike ModestTree who only know how to sue, but not provide support for "their" software, he actually still maintains Zenject. Just post your question there and you will most likely get an answer.

@vertis
Copy link
Author

vertis commented Oct 17, 2019

@nexxogen wow! Thanks for the tip

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

No branches or pull requests

2 participants