enablesupportlogging + running + notconnected + recompile = exception

Options
If you:
- have enablesupportlogging enabled
- are running the game in editor
- haven't connected to photon yet
- trigger a recompile (ie code hot-reload)

You get an exception here repeatedly:
SupportLogger.TrackValues()    Assets/Photon/PhotonRealtime/Code/SupportLogger.cs:145
This component gets added automatically from here (stacktrace):
SupportLogger.Awake()    Assets/Photon/PhotonRealtime/Code/SupportLogger.cs:87
GameObject.AddComponent()
PhotonHandler.OnEnable() Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:98
GameObject.AddComponent()
PhotonHandler.get_Instance() Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:41
Photon.Pun.PhotonNetwork..cctor() Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1005
PhotonEditor.OnCompileStarted() Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonEditor.cs:206
EditorCompilationInterface.TickCompilationPipeline()
I don't expect hot reload to work with a running networked game, however this breaks hot-reload even when you're not networking. (by break only symptom is the exception, which is not the end of the world but it is annoying).

(not sure if there's a better place to report bugs)

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Thrump,

    Thank you for choosing Photon and for reporting this!

    We managed to reproduce.
    We will fix this.