playMaker

Author Topic: Game host build freezing randomly (but very often) (losing my mind!) PUN/Playmak  (Read 736 times)

mekjal

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
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/cFhZoKbmKF

What 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=sharing

Help would be greatly appreciated! I'm not sure what is left for me to do to try and debug this.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 623
    • View Profile
    • Flashing Lights
Maybe it is worth to try both builds with lower graphics settings, perhaps memory got full or something?

mekjal

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Unfortunately not a memory issue - I've tried running one build on another computer and the other on this one.  So even when only one copy is running on one computer, it still freezes when one of the builds connects to the room creator.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 623
    • View Profile
    • Flashing Lights
In Project Settings/ Player Settings can try enable Logging and then after crash check the output file, might have a pattern or clue of what makes the crash
https://docs.unity3d.com/Manual/LogFiles.html


mekjal

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Log isn't much either.  Thanks though!