Search Issue Tracker
Fixed
Fixed in 2021.3.32f1
Votes
5
Found in
2021.3.6f1
Issue ID
UUM-9776
Regression
No
[Linux] Dedicated server build crashes with "Segmentation fault" when the build project's scene contains terrains with "Draw Instanced" setting enabled
How to reproduce:
# Open the user-attached project (TerrainServerBug.zip)
# Got to the “TerrainStuffs” directory in the Project view and open the “Meadowlands_Terrain_Server“ scene
# Press Ctrl+Shit+B to open the Build settings window
# In the Platform list select “Dedicated Server“, enable “Development Build“ and switch the platform
# Build the project
# Run the build in the terminal
# Observe the crash (Segmentation fault)
Reproducible with: 2021.3.6f1
Not reproducible with: 2020.3.36f1, 2022.1.10f1, 2022.2.0b2, 2023.1.0a2
Reproducible on: Ubuntu 20.04, Mac
Not reproducible on: Windows 10
{code:java}
RenderTexture.Create failed: requested size is too large.
Invalid pass number (0) for Graphics.Blit (Material "Hidden/BlitCopy" with 0 passes)
RenderTexture.Create failed: requested size is too large.
RenderTexture.Create failed: requested size is too large.
Invalid pass number (0) for Graphics.Blit (Material "Hidden/BlitCopy" with 0 passes)
Invalid pass number (0) for Graphics.Blit (Material "Hidden/TerrainEngine/GenerateNormalmap" with 0 passes)
RenderTexture.GenerateMips failed: render texture is not rendered into yet, or does not have a color surface.
RenderTexture.Create failed: requested size is too large.
Invalid pass number (0) for Graphics.Blit (Material "Hidden/BlitCopy" with 0 passes)
RenderTexture.Create failed: requested size is too large.
RenderTexture.Create failed: requested size is too large.
Invalid pass number (0) for Graphics.Blit (Material "Hidden/BlitCopy" with 0 passes)
Invalid pass number (0) for Graphics.Blit (Material "Hidden/TerrainEngine/GenerateNormalmap" with 0 passes)
RenderTexture.GenerateMips failed: render texture is not rendered into yet, or does not have a color surface.
Obtained 18 stack frames.
#0 0x00000105e6f441 in ShaderPropertySheet::UpdateTextureInfo(int, FastTexturePropertyName const&, Texture const*, TextureID)
#1 0x00000105eb308a in Material::SetTextureInternal(ShaderLab::FastPropertyName, Texture const*, bool)
#2 0x000001068da9a6 in SplatMaterials::Update(Material*, SplatMaterialData const&, fixed_array<Terrain const*, 9ul> const&, TerrainData const&, bool)
#3 0x000001068f5135 in Terrain::AddToManager()
#4 0x00000106343916 in AwakeFromLoadQueue::InvokePersistentManagerAwake(AwakeFromLoadQueue::Item*, unsigned int, AwakeFromLoadMode, bool)
#5 0x0000010634367a in AwakeFromLoadQueue::PersistentManagerAwakeFromLoad(ErrorsAndWarningsCapture*, bool)
#6 0x00000105e0436d in LoadSceneOperation::CompleteAwakeSequence()
#7 0x00000105e03ca7 in LoadSceneOperation::PlayerLoadSceneFromThread()
#8 0x00000105e03e49 in LoadSceneOperation::CompleteLoadFirstScene()
#9 0x00000105e03682 in LoadSceneOperation::IntegrateMainThread()
#10 0x00000105e0531f in PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)
#11 0x00000105e05b60 in PreloadManager::WaitForAllAsyncOperationsToComplete()
#12 0x00000105e48930 in RuntimeSceneManager::LoadScene(core::basic_string<char, core::StringStorageDefault<char>> const&, core::basic_string<char, core::StringStorageDefault<char>> const&, core::basic_string<char, core::StringStorageDefault<char>> const&, UnityGUID const&, int, InternalLoadSceneParameters const&)
#13 0x00000105dcf55a in PlayerStartFirstScene(bool)
#14 0x00000105dcf75b in PlayerLoadFirstScene(bool)
#15 0x00000106fa4027 in ContinueSetupUnityPlayer(bool)
#16 0x00000106fa4814 in PlayerMain(int, char const**)
#17 0x007ff81067341f in start
zsh: segmentation fault ./TerrainServerBug {code}
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Kristophbarbour
Sep 30, 2022 11:19
Also observed on Unity 2021.3.10 and 2021.3.11