I've spent a week banging my head trying to figure out what the problem is. Every time I thought I isolated it to particular code and fixed it, it would freeze. This led me to believe it was something overall with Photon/PUN or how Playmaker works with it.
Here is a video example:
https://screencast-o-matic.com/watch/cFhZoKbmKFWhat happens:
I run two client executables of the game. One client creates the room, the other client joins it.
The first two times I do this, it runs perfectly. Each time I exit out of the builds.
The third time, the client that created the room locks up and crashes the build.
There is no flow for reproduction. Sometimes its the second time I run the build. Sometimes the first. Sometimes the third. But at some point, the creator build always locks up. Same thing happens whether I'm in the Unity editor or a compiled build. I can barely even playtest my game because the Unity editor freezes constantly.
I tried a Disconnect() when the Application quits, in case it was some cleanup issue, but that doesn't help.
Build with: Unity 2017.3.1f1
PUN version: 1.90 (currently using the Free version from the Asset Store until I release the game)
Link to download the compiled build if that helps:
https://drive.google.com/file/d/1b3gYdFBizq_JmsfcUcfPtjNGnw-JxdJC/view?usp=sharingHelp would be greatly appreciated! I'm not sure what is left for me to do to try and debug this.