It sometimes happens that I want to go into play mode, which I can't enter (exits immediately) and MixedRealityToolkit gets a ping.
I dug into where that comes from and it seems that the Active Profile is null then. I have to restart Unity for this to be fixed. Since this is a SerializedField with a proper value in it, I'm puzzled how this can happen.
I do not have steps to reproduce it yet
The Active Profile never goes null

I was able to repro this once but I'm not quite sure how I did it.
I dug into where that comes from and it seems that the Active Profile is null then.
Yeah this seems to be the immediate culprit:
if (playModeState == UnityEditor.PlayModeStateChange.ExitingEditMode && activeProfile == null)
{
UnityEditor.EditorApplication.isPlaying = false;
UnityEditor.Selection.activeObject = Instance;
UnityEditor.EditorGUIUtility.PingObject(Instance);
}
I have a suspicion ResetConfiguration is getting called by a dead / dying instance of the toolkit.
I'm able to reproduce this consistently when using git to switch between branches while Unity is open.
The bug happens regardless of which branch I'm in.
Restarting the project or triggering recompilation makes the bug stop.
Just a headsup, this issue is still relevant today.
I'm using Unity 2019.1.6f and MRTK RC1 Refresh.
I reproduced it like this:
(Also at step 2, this will trigger an aggressive pop-up telling you to add the MRTK Camera, switching to any other scene using the project manager will reopen this annoying window too. "Don't show this again" does nothing.)
As mentioned earlier, reopening the project temporarily fixes the issue. Using the PlatformSwitcher of the SpectatorView does too.
@Railboy is this fully fixed now? Can this be closed?
Most helpful comment
Just a headsup, this issue is still relevant today.
I'm using Unity 2019.1.6f and MRTK RC1 Refresh.
I reproduced it like this:
(Also at step 2, this will trigger an aggressive pop-up telling you to add the MRTK Camera, switching to any other scene using the project manager will reopen this annoying window too. "Don't show this again" does nothing.)
As mentioned earlier, reopening the project temporarily fixes the issue. Using the PlatformSwitcher of the SpectatorView does too.