Editor crash on launch after copying project from OSX to Windows 8

Branch: Binary

Build: 4.2.0-2092659

OSX machine:

Windows machine:

Machine name: LAPTOP

Operating System: Windows 8.1 64-bit (6.3, Build 9600) (9600.winblue_rtm.130821-1623)

Language: English (Regional Setting: English)

System Manufacturer: Razer

System Model: Razer Blade

BIOS: 1.01

Processor: Intel(R) Core™ i7-4702HQ CPU @ 2.20GHz (8 CPUs), ~2.2GHz

Memory: 8192MB RAM

Available OS Memory: 8116MB RAM

Page File: 4588MB used, 13784MB available

Windows Dir: C:\Windows

DirectX Version: DirectX 11

DX Setup Parameters: Not found

User DPI Setting: Using System DPI

System DPI Setting: 96 DPI (100 percent)

DWM DPI Scaling: Disabled

DxDiag Version: 6.03.9600.16384 64bit Unicode

NVIDIA GeForce GTX 765M

What I’m trying to do:

I recently bought a PC laptop and I want to be able to sync work between my machines as well as my teammates’. I wrote a utility to sync large files with git commits via S3 (GitHub - piinecone/blimp: Super simple S3 file storage for git repos.). It works by downloading files for the SHA to which your git repo is currently pointing.

I created a project on OSX, synced it with blimp, and then downloaded it on my PC with blimp. Launching the project via the project file or launcher both cause an immediate crash. If I remove the entire Content/ dir and change the default map (in Config/), I can open the project. If I create a new project and start importing content, the project loads, but fails to finish “discovering assets” and crashes.

To Reproduce:

  1. git clone git@github.com:piinecone/hovercraft.git
  2. install blimp and blimp pull, or download the archived codebase from: https://s3.amazonaws.com/piinecone/hovercraft/Hovercraft_b50c7a4.zip
  3. launch project from PC
  4. launch project from Mac

How do I repair these files? Can you tell if something is changing when I’m uploading them? Are there specific platform files I should delete? How do I find broken references in the Content/ dir? I couldn’t make much sense of the logs (definitely my fault) but I’m just looking for a missing reference or something I can try to fix.

Logs

*.log files are not permitted as attachments so here’s a link to one my logs from /hovercraft/saved/…/logs: https://s3.amazonaws.com/piinecone/hovercraft/Hovercraft-backup-2014.06.18-10.51.28.log

Thanks!

Please let me know if you need anything else.

I just tried the same thing with another project (build on Mac OS X, git push, sync uasset and umap files to S3, git pull, download from S3) and I get a crash when attempting to open the project.

Here’s the paste:

!Id:6b9f0027f9290b7b35d819bf09d18bcb

Unknown exception - code 00000001 (first/second chance not available)

KERNELBASE.dll

KERNELBASE + 33668 bytes
UE4Editor_Core + 2998748 bytes
UE4Editor_Core + 1620298 bytes
UE4Editor_Core + 455513 bytes
UE4Editor_Core + 1090738 bytes
UE4Editor_CoreUObject + 1010908 bytes
UE4Editor_CoreUObject + 1009707 bytes
UE4Editor_UnrealEd + 2383646 bytes
UE4Editor_UnrealEd + 2359751 bytes
UE4Editor_UnrealEd + 2310925 bytes
UE4Editor_UnrealEd + 2238689 bytes
UE4Editor_UnrealEd + 5160192 bytes
UE4Editor_UnrealEd + 2710037 bytes
UE4Editor_UnrealEd + 2709071 bytes
UE4Editor_UnrealEd + 5306079 bytes
UE4Editor_UnrealEd + 5156619 bytes
UE4Editor!GuardedMain() + 285 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\launch.cpp:124]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.2\engine\source\runtime\launch\private\windows\launchwindows.cpp:207]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

I just zipped the files on my Mac and transferred them to my PC and I can open the project just fine. I’m wondering if there’s specific metadata that should be included with the .uasset and .umap files that’s being stripped by uploading them to S3.

Any documentation or guidance on this would be super helpful. I must be stripping out something important by uploading the files to S3 and downloading them again.

Thanks!

This crash was caused by file corruption due to the way in which I was reading files from S3. The solution was to write files in binary mode and to avoid resuming failed downloads midstream.

Failing code (Do not push or pull files unnecessarily · piinecone/blimp@52ec518 · GitHub):

File.open(path, "w") do |f|
  f.write object.read
end

Working code (blimp/pull.rb at master · piinecone/blimp · GitHub):

s3.core.get_object({bucket: s3.bucket_name, key: object.key}, target: path)

Reference: V2 | AWS Developer Tools Blog