Package mismatch: Mac client cannot connect to server

Engine: 4.5.1 Source (SHA: ad428a1)

Problem Description

I’m unable to connect an otherwise functional Mac client build to a Linux dedicated server built from the same codebase. I am able to connect with a Win64 client packaged from the same codebase, at the same git SHA. On 10/3 I packaged builds for Mac, Win64, and a Linux dedicated server using a source build of 4.4.3. Both client builds could and still can successfully connect to the Linux dedicated server build. The dedicated server for the first build (0.8.0) is still running alongside the dedicated server I packaged and built today (0.8.1). I’m having a difficult time identifying why my package GUID is different on Mac than on PC/Linux.

Details

On PC:

  1. git tag SHA for release / git checkout SHA for tag
  2. Package for Win64
  3. Package for Linux / build dedicated server for Linux with these steps (piinecone — Building and deploying a UE4 dedicated server for...)
  4. deploy linux dedicated server to google compute instance
  5. connect win64 client build to dedicated server instance successfully

On Mac:

  1. git checkout release SHA
  2. package game for Mac
  3. attempt to connect to linux dedicated server instance

Upon attempting to connect to the server with the Mac client:

  1. The server log starts printing LogNet: Server connection received: ActorChannelFailure to stdout.
  2. The mac client log starts with "LogNetPackageMap:Error: GetObjectFromNetGUID: Package GUID mismatch! Path: /Script/KingOfKalimpong, NetGUID: 13, GUID1: 6878284216D3CF190000000000000000, GUID2: E79A62ED16D3CF190000000000000000"
  3. the mac client log continues to print blocks of messages of that nature until it eventually causes the build to crash

Logs

I created a gist of the mac client log here: This is the mac client's log output during an attempted connection to a linux dedicated server built from the same codebase · GitHub

gitignore

I’m versioning my codebase with git. It’s mostly C++, with some light blueprints here and there – mostly UMG. The main difference between my Mac and Win64 codebases is, as far as I can tell, the .uproject file. I figured I would include the entire .gitignore just in case there’s anything else in there that should be versioned, and isn’t.

gitignore: This is the gitignore file for UE4 king of kalimpong · GitHub

Package GUID

I’m not sure how my package GUID could be different between Mac and PC given the engine is at exactly the same SHA on both machines, as is the project codebase.

@johnpollard, git blame suggests you might know quite a lot about how packaging/GUIDs works. If you have a moment to glance at these logs or suggest any tips for tracking down the issue, I would really appreciate it, I’m completely stumped at the moment.

Thanks!

Here’s the client log with LogNetPackageMap set to veryverbose: LogNetPackageMap errors with verbose logging when attempting to connect a mac client to a windows dedicated server · GitHub

Tracing this a bit more suggests that the Archetype for my actors on the mac client is null, but that they do have valid NetGUIDs. Currently debugging to see why the archetype would be null.

I’m not sure if these are the only two impactful files, but a git log --follow Engine/Source/Runtime/Engine/Private/PackageMapClient.cpp suggests this commit may have introduced the regression: https://github.com/EpicGames/UnrealEngine/commit/10b55e8 .

git log --follow Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage.cpp suggests b107675 or 34c033b.

I’ve checked out tags/4.5.1-release and reverted 10b55e8 and am currently rebuilding.

Update: repackaging after reverting 10b55e8 does not allow the mac client to join a game on another platform.

Yes I definitely think John Pollard can help you with this, he is one of Epic’s networking experts!

Rama

This question can be deleted because it is a duplicate. This issue is resolved by @johnpollard’s answer in Can't initiate network game between mac and windows builds - Multiplayer & Networking - Unreal Engine Forums