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)

  1. Kristophbarbour

    Sep 30, 2022 11:19

    Also observed on Unity 2021.3.10 and 2021.3.11

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.