Exception "The given key was not present..."
Options
peetonn
✭
in Photon Bolt
I have Unity ARCore Android app and it gives me these exceptions:
```
exception occurred, while scene SampleARController::Update(): The given key was not present in the dictionary., stacktrace: at System.Collections.Generic.Dictionary`2[Bolt.UniqueId,Bolt.IFactory].get_Item (UniqueId key) [0x000a8] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at Bolt.Factory.GetFactory (UniqueId id) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at BoltNetwork.Instantiate (UnityEngine.GameObject prefab, IProtocolToken token, Vector3 position, Quaternion rotation) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at BoltNetwork.Instantiate (UnityEngine.GameObject prefab, Vector3 position, Quaternion rotation) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at fifthar.GameStateController.spawnDetachedObject (UnityEngine.GameObject go, Vector3 position, Quaternion rotation) [0x0002f] in /Users/peetonn/Documents/Work/perforce/test2-main/dev/TheFifthAR/Assets/Scripts/GameStateController.cs:363
```
I ran Bolt compile assembly, update prefab database, generate scene ids but it didn't help.
What might be the cause of this?
```
exception occurred, while scene SampleARController::Update(): The given key was not present in the dictionary., stacktrace: at System.Collections.Generic.Dictionary`2[Bolt.UniqueId,Bolt.IFactory].get_Item (UniqueId key) [0x000a8] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at Bolt.Factory.GetFactory (UniqueId id) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at BoltNetwork.Instantiate (UnityEngine.GameObject prefab, IProtocolToken token, Vector3 position, Quaternion rotation) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at BoltNetwork.Instantiate (UnityEngine.GameObject prefab, Vector3 position, Quaternion rotation) [0x00000] in :0
07-19 17:34:19.636 7236 7254 E Unity : [fifthar-app] at fifthar.GameStateController.spawnDetachedObject (UnityEngine.GameObject go, Vector3 position, Quaternion rotation) [0x0002f] in /Users/peetonn/Documents/Work/perforce/test2-main/dev/TheFifthAR/Assets/Scripts/GameStateController.cs:363
```
I ran Bolt compile assembly, update prefab database, generate scene ids but it didn't help.
What might be the cause of this?
0
Comments
-
"Scene entities are not compatible with scoping" -- does this mean that objects with "BoltEntity" script component attached can't be children of other GameObjects?0
-
That can be done at runtime. Scoping doesn't have to do with parenting though0
-
Can I place a game object with BoltEntity script attached under another game object in a scene?0
-
You cannot do that in the editor for scene entities. For non scene entities, you can do that at runtime.0
-
What is meant by "Scene Entity"? Is it an empty prefab with BoltEntity script attached?0
-
Any Bolt entity present that has not been instantiated at runtime.0