CRC Local/Remote Dump Issues

I’m fairly new to Unity Networking. I’m been making a game using the HLAPI and randomly walked into an error that I cannot seem to get rid of or solve. I have tried a few different solutions and looked online for related issues but it doesn’t seem to be well documented.

Like I just mentioned this error has just seemed to appear randomly. My host works fine, but whenever I connect a client to that host, in the client I get these warning Log Messages.

CRC Local Dump PlayerState : 0
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

CRC Local Dump EventManager : 0
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

CRC Remote Dump PlayerState : 0
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

CRC Remote Dump EventManager : 0
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

It is a very strange issue. All I have been able to find one post of the same issue which no one replied to:

I dont understand what these issues are as it doesnt give any more information of the issue other than these simple lines stating a class name.

I did see mentioned that a related issue is because of differences in the amounts of network identities between the server and client but that doesnt seem to be the case.

The classes that these are related to are very simple classes aswell. they are local authority. One is a simple setter and getter class and the other is a sync events class. I dont see why they are ausing an issue.

Any help or information about this error would be greatly appreciated.

Hmm… in general, a CRC error is caused when the configuration between the client and server doesn’t match. So for example, if your client’s ConnectionConfig had 2 channels and your server’s ConnectionConfig has 3, you’ll fail to connect to the server because of the differences in configuration. So the first thing I would check is that the ConnectionConfig settings used between your client and server are exactly the same.

If you are certain the config settings match, then I’m not 100% sure what else might be causing a CRC error, and you might need someone within the unity team to answer this one.

Failing all of the above, your only other option is to go on a major debugging spree. Debugging network issues is often the most difficult form of debugging. As a rule of thumb though:

  • zone in on a way to replicate the issue by noticing patterns. Look for things that often cause the error until you have as few potential ways to replicate the error as possible
  • once you know how to fairly consistently replicate the issue, zone in on the associated code that is run during the steps that you take to replicate the error
  • enable/disable certain parts of it, test function/method calls are doing what you expect them to do etc, until you find something that stands out

Good luck!