game-ci / unity-builder

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

Completely white screen in build #469

Open BigTows opened 1 year ago

BigTows commented 1 year ago

Bug description

Hello, I've tried several times, but I can't build a Unity with URP to Win64. After the build, I get sucessufuly artifact, but when I try to run, it happens: image (After Unity logo)

How to reproduce

Expected behavior

Getting same scene from template.

Additional details

Locally all good.

davidmfinol commented 1 year ago

Can you share a repo with the failing sample project? This would make it easier for us to look into it.

BigTows commented 1 year ago

Okay, i am prepare for u ~ 1hour

BigTows commented 1 year ago

@davidmfinol https://github.com/BigTows/Test-Game-Ci/actions/runs/3304255280

Mb i forgot something, but build completed ;/

webbertakken commented 1 year ago

Edit: I misunderstood. Thanks for the minimal reproducible repo!

davidmfinol commented 1 year ago

I see a lot of errors like Shader 'Universal Render Pipeline/Autodesk Interactive/AutodeskInteractive': fallback shader 'Hidden/Shader Graph/FallbackError' not found in the logs, which I suspect is the problem. However, I'm not familiar enough with URP or shaders to be of much help; hopefully others may be able to find more.

TDogVoid commented 1 year ago

I ran into an issue similar to this. Not sure about the issue of with shaders but I had an all-white screen on urp. It seems to have to do with environmental reflections in the lighting window. I switch it to a custom source, cubemap set to none and it built a normal version. Hopefully, this helps skybox reflections

NonPolynomialTim commented 1 year ago

I also had this issue and @TDogVoid's fix worked for me, though I'd prefer to be able to use other environment reflection settings if there's a proper fix to be had.

Luzifix commented 1 year ago

I have the same issue and have some logs which i can provide:

Logs from Build

Start importing Packages/com.unity.render-pipelines.universal/Shaders/Terrain/TerrainLitBase.shader using Guid(21322c8b137c66e49b86085d3c8161f6) Importer(-1,00000000000000000000000000000000) WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? -> (artifact id: 'ca737ad2f95ceafa40fde17fbd99799b') in 0.114197 seconds

I also found the similar log entries in the build from @BigTows (https://github.com/BigTows/Test-Game-Ci/actions/runs/3304255280/jobs/5453298770#step:4:9750)

Logs from player log

Initialize engine version: 2022.2.1f1 (4fead5835099) [Subsystems] Discovering subsystems at path H:/Game-StandaloneWindows64-5362a3e22ae704869ed9933af33cffc808b57acb/Game-StandaloneWindows64/Game_Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=1 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: NVIDIA GeForce RTX 2070 SUPER (ID=0x1e84) Vendor: NVIDIA VRAM: 8003 MB Driver: 31.0.15.2756 Shader 'Hidden/Universal Render Pipeline/StencilDeferred': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/StencilDeferred' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/StencilDeferred' - All subshaders removed WARNING: Shader Did you use #pragma only_renderers and omit this platform? WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off? Shader 'Hidden/Universal Render Pipeline/FallbackError': fallback shader 'Hidden/Core/FallbackError' not found

Initializing input. New input system (experimental) initialized Using Windows.Gaming.Input Input initialized. Initialized touch support. Shader 'Universal Render Pipeline/Lit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found ...