You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted the issue we have also in the Zenject repo (ssannandeji#656) but it can be reproduced with Extenject 8.0.1 as well.
When loading 3 scenes each with a SceneContext and parented using Contract Names and the SignalBus installed in the first scene we get the following exception when the third scene is loaded:
ZenjectException: Found multiple matches when only one was expected for type 'SignalBus' while building object with type 'SignalBus'. Object graph:
SceneKernel
DisposableManager
SignalBus
The second and third scene each install a component which gets the SignalBus injected.
I have created a simple project to reproduce the error. I'm on Windows 10 with Unity 2018.4.3f1 with Extenject 8.0.1.
To run the project open it in Unity and add 'Zenject-WithSampleGames@v8.0.1.unitypackage
' (the GameSignalsInstaller from the sample game is used in the test project). The main scene is called 'SignalBusIssueScene1' located in the folder 'SignalBusIssue'.
I also attached the output log from the build so you can see the whole stack trace of the exception. ZenjectSignalBusIssueProject.zip output_log.txt
The text was updated successfully, but these errors were encountered:
Hello!
I posted the issue we have also in the Zenject repo (ssannandeji#656) but it can be reproduced with Extenject 8.0.1 as well.
When loading 3 scenes each with a SceneContext and parented using Contract Names and the SignalBus installed in the first scene we get the following exception when the third scene is loaded:
ZenjectException: Found multiple matches when only one was expected for type 'SignalBus' while building object with type 'SignalBus'. Object graph:
SceneKernel
DisposableManager
SignalBus
The second and third scene each install a component which gets the SignalBus injected.
I have created a simple project to reproduce the error. I'm on Windows 10 with Unity 2018.4.3f1 with Extenject 8.0.1.
To run the project open it in Unity and add 'Zenject-WithSampleGames@v8.0.1.unitypackage
' (the GameSignalsInstaller from the sample game is used in the test project). The main scene is called 'SignalBusIssueScene1' located in the folder 'SignalBusIssue'.
I also attached the output log from the build so you can see the whole stack trace of the exception.
ZenjectSignalBusIssueProject.zip
output_log.txt
The text was updated successfully, but these errors were encountered: