game-ci / docker

Series of CI-specialised docker images for Unity.
https://hub.docker.com/u/unityci
MIT License
400 stars 124 forks source link

Cannot build untitled scene #196

Closed isole closed 1 year ago

isole commented 1 year ago

Happens with 1.0.0 and 1.0.1 with Unity versions 2021.3.15f1 and 2021.3.16f1. We are using GitLab and as a build command we are using this. The project is a default 3D one with a sample scene already in the scene settings. Locally builds fine with the previous mentioned unity versions.

Cannot build untitled scene.

(process:116): Gdk-CRITICAL **: 13:55:16.179: gdk_display_beep: assertion 'GDK_IS_DISPLAY (display)' failed
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 22 unused Assets / (0 B). Loaded Objects now: 3763.
Memory consumption went from 82.0 MB to 82.0 MB.
Total: 4.576912 ms (FindLiveObjects: 0.283580 ms CreateObjectMapping: 0.260173 ms MarkObjects: 3.972945 ms  DeleteObjects: 0.059577 ms)

Works fine with 0.17.2 and older unity versions, i.e. 2020.1.13f1.

error-logs.txt

Div-Inworld commented 1 year ago

Having the same issue with 2021.3.19f1 Any solutions/updates?

Appears to be related to Incremental builds. An option to run Clean Builds

davidmfinol commented 1 year ago

I looked up this error message in previous issues, and I found this: https://github.com/game-ci/unity-request-activation-file/issues/85#issuecomment-1126089965

In particular, this was cause: image

Can you confirm that the link to the scene is still intact if you open a fresh clone of your project?

isole commented 1 year ago

Indeed, cloning the project again and opening a fresh copy, the scene is deleted. Exactly as @davidmfinol described.

Meanwhile 2021.3.20f1 is released. I will try again with that and report back shortly.

isole commented 1 year ago

Seems that 2021.3.20f1 is also affected. Upgraded to that version, cloned a fresh copy opened the project locally and the scene is still shown as deleted.

felipeViana commented 1 year ago

Hi, any updates on how to solve this? I'm having this error on Unity 2023.1.3f1

felipeViana commented 1 year ago

Hi, any updates on how to solve this? I'm having this error on Unity 2023.1.3f1

Solved! Just needed to click on Add Open Scenes.

REgorion commented 1 year ago

Unity 2022.3.2f1 Even after clicking the "Add Open Scenes" button and reopening the project, nothing changed. The list of scenes is still empty image Same thing happens with project settings, after making any changes I see nothing in git status Has anyone encountered anything like this?

webbertakken commented 1 year ago

I've had that issue once as well. What I did to solve it was add the scenes and then run a local build. Finally restart the editor. The file was then adjusted.

atb-brown commented 1 month ago

I had trouble finding this Add Open Scenes option, but it's in the Build Settings (File > Build Settings... on Mac).