game-ci / unity-builder

Build Unity projects for different platforms
https://github.com/marketplace/actions/unity-builder
MIT License
849 stars 251 forks source link

Importer (-1,00000000000000000000000000000000) Killed #414

Open AshDevFr opened 2 years ago

AshDevFr commented 2 years ago

Bug description

Hi, I am using the default config on Gitlab CI and I am getting an importer error.

Start importing Assets/Procedural Worlds/Gaia/Lighting/Content Resources/Skyboxes/PW_Sky_Evening_Clear.hdr using Guid(17e01958f958b3469b23dfe8cfdca48f) Importer(-1,00000000000000000000000000000000) Killed
Cleaning up project directory and file based variables
00:03
ERROR: Job failed: exit code 1

The hdr file is 33MB and is failing to import on all builds (OSX, Linux, WebGL, ...)

I unfortunaly don't have more logs than that.

How to reproduce

The HDR file is coming from Gaia Pro.

Create a new project, configure Git and the CI, install Gaia Pro, commit and push.

Expected behavior

It should correctly import the HDR file

Additional details

The build is failing with unityci/editor:2021.3.2f1 and unityci/editor:2021.3.4f1

GabLeRoux commented 2 years ago

A shot in the dark here, but could it be that the file is tracked in git LFS and not present during the build?

GabLeRoux commented 2 years ago

Another suggestion, have you tried deleting runners cache? There could be something wrong with the Library folder in the cache so recreating it might help.

AshDevFr commented 2 years ago

I checked with a clean new project to use Gaia Pro and create a small scene and I have the same issue.

I can confirm that the file is present in the LFS files:

image

I tried with and without cache, same thing.

GabLeRoux commented 2 years ago

Can you also confirm that the github action has access to the lfs files?

https://game.ci/docs/github/getting-started#simple-example-with-git-lfs

AshDevFr commented 2 years ago

I'm using Gitlab CI and it does have access. Other projects can build.

GabLeRoux commented 2 years ago

Ah my bad, but question is still valid, can you ls -la the file and confirm the file is there and correctly retrieved from LFS?

GabLeRoux commented 2 years ago

I quickly looked online and I think gitlab-ci does retrieve LFS files automatically, but I would still start by confirming that the file is available to the running pipeline.

You mentioned it has access so at this point I'm not sure what could be causing this.

AshDevFr commented 2 years ago

The CI does import other LFS files before so I gues it does have access to the LFS files.

As I mentioned, I have other projects with the same CI config and they build correctly. Just not the one using Gaia.

Start importing Assets/Procedural Worlds/Gaia/Lighting/Content Resources/Skyboxes/GaiaSampleMorningAndEvening.hdr using Guid(60995c357a3340a43486263256076c8893) Importer(-1,00000000000000000000000000000000)  -> (artifact id: '20de9234860ebdab4f0000ae08892349') in 100.801245 seconds 
wilg commented 2 years ago

I have a similar issue, which hung my builds.:

Start importing Assets/Procedural Worlds/Gaia/Lighting/Content Resources/Skyboxes/PW_Sky_Evening_Clear.hdr using Guid(17e73986f958bef47b23dfe8cfdca48f) Importer(-1,00000000000000000000000000000000) Could not allocate memory: System out of memory!
Trying to allocate: 1073741824B with 16 alignment. MemoryLabel: Image
Allocation happened at: Line:836 in C:\buildslave\unity\build\Runtime\Graphics\Image.cpp
wilg commented 2 years ago

I'm having this issue because I cannot figure out how to get the Docker container that unity-builder creates on my local Windows runner to use more than 1GB of RAM.

wilg commented 2 years ago

My issue was a memory issue, opened as https://github.com/game-ci/unity-builder/issues/432