-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building reference-project with docker #200
Comments
Is this a duplicate of game-ci/unity-builder#469 ? |
Good observation! I don't beleive it is. When I applied the fix proposed by TDogVoid (game-ci/unity-builder#469 (comment)), and build from the command line, the player's output is still all white. I didn't keep those changes. A side observation emerging from performing multiple build operations is that a previous "good" build can make a "bad" build show the correct display from the player. To isolate from this, one repository would be modified through the Unity Editor. Then the editor would be closed and the changes commited to git (and not pushed). For each test, a git worktree would be created where a single build would be performed and the player app analysed before being deleted. This ensure that the observed display from the player was not influenced by previous manipulations. It was observed that the command passed to docker ( Upon opening reference-project in the Editor, the global illumination is always re-baked . The Editor's command line documentation note that the flag
For now, that is an issue I'd prefer not to tackle. So It apprears that the Global Illumination can be pre-baked if you go to Window > Rendering > Lighting, unselect Auto Generate and click Generate Lighting. This adds some files to the project, mostly under Assets/Scenes/SampleScene. This updated project produce a player correctly displaying the scene both when build from the command line and from within docker. While this addresses the issue, I don't know what should be done so other users can benefit from a working example using reference-project build through docker on Windows. |
So the issue is that you need to have lightmaps generated? |
That sure sounds like it! |
Thanks! @philippeqc Auto Generate work for me |
Bug description
When using the docker image "unityci/editor:windows-2021.3.1f1-windows-il2cpp-1.0.1", to build reference-project, the produced application only displays a white screen.
How to reproduce
The following instructions are performed on Windows 10 using powershell.
Create a docker image and use it to build reference-project. Substitute with your values for UNITY_USERNAME, UNITY_PASSWORD and UNITY_SERIAL.
When launching the application, the display is all white.
In the log file, this line The following line occurs 11 times in the log file:
Around line 7127 and 7182, the following stack trace is shown:
Expected behavior
The image "${UNITY_VERSION}-windows-il2cpp-${UNITY_IMAGE_VERSION}" should correctly build reference-project as it is.
There should not be any exceptions on "WindowsVideoMedia.cpp" in the log file.
Additional details
In the log file, the following exception is observed multiple times. It does not appear to be a problem, as when building the project outside of the docker image, i.e. using the unity editor installed on my computer, they are present but the produced application displays the scene correctly.
The full log file: Build.log
The text was updated successfully, but these errors were encountered: