Skip to content
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

Hard system crash on Solus #5

Closed
SirRujak opened this issue Apr 1, 2019 · 21 comments
Closed

Hard system crash on Solus #5

SirRujak opened this issue Apr 1, 2019 · 21 comments

Comments

@SirRujak
Copy link

SirRujak commented Apr 1, 2019

I tried running the linux version on Solus and a few seconds after the window appears the entire system locks up. I am not sure exactly why this is happening due to Unity itself not having this issue. If you have any ideas for me to try to get it working I would be happy to help.

@SirRujak SirRujak closed this as completed Apr 2, 2019
@maikramer
Copy link
Owner

Hi, can you check with the new build?
And it's not just you, I'm having this issue some times, i think is some bug with the actual vulkan drivers on Linux since on Windows I didn't have these issues. I hope unity will find a workaround because I'm really tired to search for workarounds. I won't ever give up of Linux but the difference in support is huge, not from the Linux community, but from Unity, nvidia...

@maikramer
Copy link
Owner

Please, Re open the issue, because it's real, I will close only when I don't see any problems with it anymore

@SirRujak SirRujak reopened this Apr 3, 2019
@SirRujak
Copy link
Author

SirRujak commented Apr 3, 2019

I'll give the new one a try!

@SirRujak
Copy link
Author

SirRujak commented Apr 3, 2019

It definitely helped, it now gets to the point where it shows the Unity splash and no longer crashes the system. And I got a crash log this time:

Desktop is 1920 x 1080 @ 60 Hz
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
Vulkan detection: 2
Initialize engine version: 2019.1.0b9 (f1481f10a935)
GfxDevice: creating device client; threaded=1
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] extensions: count=27
[Vulkan init] extensions: name=VK_KHR_bind_memory2, enabled=0
[Vulkan init] extensions: name=VK_KHR_dedicated_allocation, enabled=1
[Vulkan init] extensions: name=VK_KHR_descriptor_update_template, enabled=0
[Vulkan init] extensions: name=VK_KHR_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_memory_requirements2, enabled=1
[Vulkan init] extensions: name=VK_KHR_image_format_list, enabled=1
[Vulkan init] extensions: name=VK_KHR_incremental_present, enabled=0
[Vulkan init] extensions: name=VK_KHR_maintenance1, enabled=1
[Vulkan init] extensions: name=VK_KHR_maintenance2, enabled=0
[Vulkan init] extensions: name=VK_KHR_relaxed_block_layout, enabled=0
[Vulkan init] extensions: name=VK_KHR_sampler_mirror_clamp_to_edge, enabled=1
[Vulkan init] extensions: name=VK_KHR_shader_draw_parameters, enabled=0
[Vulkan init] extensions: name=VK_KHR_storage_buffer_storage_class, enabled=0
[Vulkan init] extensions: name=VK_KHR_swapchain, enabled=1
[Vulkan init] extensions: name=VK_EXT_calibrated_timestamps, enabled=0
[Vulkan init] extensions: name=VK_EXT_conditional_rendering, enabled=0
[Vulkan init] extensions: name=VK_EXT_depth_range_unrestricted, enabled=0
[Vulkan init] extensions: name=VK_EXT_global_priority, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_viewport_index_layer, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_stencil_export, enabled=0
[Vulkan init] extensions: name=VK_AMD_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_AMD_gcn_shader, enabled=0
[Vulkan init] extensions: name=VK_AMD_rasterization_order, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_info, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_trinary_minmax, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_decorate_string, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_hlsl_functionality1, enabled=0
Vulkan API version 1.1.90
Vulkan vendor=[ATI] id=[1002]
Vulkan renderer=[AMD RADV POLARIS10 (LLVM 7.0.0)] id=[67df]
Vulkan device type 2
Vulkan driverversion=[0x04c00000] uint=[79691776]
Vulkan PSO: cache data not found [path=/tmp/Bounding Box Software/Materialize/vulkan_pso_cache.bin]
Begin MonoManager ReloadAssembly
- Completed reload, in  0.068 seconds
A scripted object (probably UnityEngine.Experimental.Rendering.HDPipeline.RenderPipelineResources?) has a different serialization layout when loading. (Read 2172 bytes but expected 2176 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
 
(Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 2012)

WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'MotionVectors' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/HDRP/TerrainLit_Basemap' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/TerrainLit' - Pass 'META' has no vertex shader
requesting resize 1280 x 720
resizing window to 1280 x 720
Desktop is 1920 x 1080 @ 60 Hz
InitializeOrResetSwapChain 1280x720 samples=1
Size overflow in allocator.
 
(Filename: ./Runtime/Allocator/DynamicHeapAllocator.cpp Line: 103)

Could not allocate memory: System out of memory!
Trying to allocate: 18446744072657055745B with 16 alignment. MemoryLabel: String
Allocation happened at: Line:314 in ./Runtime/Core/Containers/StringStorageDefault.h
Memory overview

[ ALLOC_DEFAULT ] used: 98881911B | peak: 0B | reserved: 108373751B 
[ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_TEMP_JOB_4_FRAMES ] used: 0B | peak: 0B | reserved: 11534336B 
[ ALLOC_TEMP_JOB_ASYNC ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_GFX ] used: 1103537B | peak: 0B | reserved: 6291457B 
[ ALLOC_CACHEOBJECTS ] used: 2324656B | peak: 0B | reserved: 10485760B 
[ ALLOC_TYPETREE ] used: 1280B | peak: 0B | reserved: 4194304B 
[ ALLOC_TEMP_THREAD ] used: 54648B | peak: 0B | reserved: 2949120B 
Could not allocate memory: System out of memory!
Trying to allocate: 18446744072657055745B with 16 alignment. MemoryLabel: String
Allocation happened at: Line:314 in ./Runtime/Core/Containers/StringStorageDefault.h
Memory overview

[ ALLOC_DEFAULT ] used: 98881911B | peak: 0B | reserved: 108373751B 
[ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_TEMP_JOB_4_FRAMES ] used: 0B | peak: 0B | reserved: 11534336B 
[ ALLOC_TEMP_JOB_ASYNC ] used: 0B | peak: 0B | reserved: 1048576B 
[ ALLOC_GFX ] used: 1103537B | peak: 0B | reserved: 6291457B 
[ ALLOC_CACHEOBJECTS ] used: 2324656B | peak: 0B | reserved: 10485760B 
[ ALLOC_TYPETREE ] used: 1280B | peak: 0B | reserved: 4194304B 
[ ALLOC_TEMP_THREAD ] used: 54648B | peak: 0B | reserved: 2949120B 

 
(Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 1169)

Receiving unhandled NULL exception

@SirRujak
Copy link
Author

SirRujak commented Apr 3, 2019

I am going to guess this is the important bit:

Could not allocate memory: System out of memory!
Trying to allocate: 18446744072657055745B with 16 alignment. MemoryLabel: String
Allocation happened at: Line:314 in ./Runtime/Core/Containers/StringStorageDefault.h
Memory overview

That appears to be trying to allocate roughly 20 exabytes of ram. Looking around a bit it seems that a few other Unity projects have had similar errors, but I haven't yet found anywhere with a solution.

Edit:
Actually looking a bit closer, I did find one that had a similar issue and it was this line that was important:

A scripted object (probably UnityEngine.Experimental.Rendering.HDPipeline.RenderPipelineResources?) has a different serialization layout when loading. (Read 2172 bytes but expected 2176 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

Here is the other example I found. They edited their question with a solution at the bottom.

@maikramer
Copy link
Owner

maikramer commented Apr 4, 2019 via email

@maikramer
Copy link
Owner

Well, I'm doing a workaround that is not allowed by Hdrp, quality can't be changed the old way, hdrp assets can't be changed at runtime either, then even if is working and behaving as expected, I need to find another way. I'm doing this now.

@SirRujak
Copy link
Author

SirRujak commented Apr 4, 2019

Thanks! I look forward to giving it a try!

@maikramer
Copy link
Owner

I tried several things then i found a unity employer explaining that I'm doing the only almost working way for now, then, I just need to refine it a little. Tomorrow I will send you a test version.

@maikramer
Copy link
Owner

Here it is, please test and thanks for your help.
https://send.firefox.com/download/e07cf95f0bd3f67a/#vactB4eXjCk9EusSTbZWTA

@SirRujak
Copy link
Author

SirRujak commented Apr 4, 2019

I gave it a go and it loads up the application and I can actually see the backgrounds this time but it still freezes up my X session. I have a slightly different log this time:

A1: Run log.
Desktop is 1920 x 1080 @ 60 Hz
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=1
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
Vulkan detection: 2
Initialize engine version: 2019.1.0b9 (f1481f10a935)
GfxDevice: creating device client; threaded=1
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=1
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] extensions: count=27
[Vulkan init] extensions: name=VK_KHR_bind_memory2, enabled=0
[Vulkan init] extensions: name=VK_KHR_dedicated_allocation, enabled=1
[Vulkan init] extensions: name=VK_KHR_descriptor_update_template, enabled=0
[Vulkan init] extensions: name=VK_KHR_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_memory_requirements2, enabled=1
[Vulkan init] extensions: name=VK_KHR_image_format_list, enabled=1
[Vulkan init] extensions: name=VK_KHR_incremental_present, enabled=0
[Vulkan init] extensions: name=VK_KHR_maintenance1, enabled=1
[Vulkan init] extensions: name=VK_KHR_maintenance2, enabled=0
[Vulkan init] extensions: name=VK_KHR_relaxed_block_layout, enabled=0
[Vulkan init] extensions: name=VK_KHR_sampler_mirror_clamp_to_edge, enabled=1
[Vulkan init] extensions: name=VK_KHR_shader_draw_parameters, enabled=0
[Vulkan init] extensions: name=VK_KHR_storage_buffer_storage_class, enabled=0
[Vulkan init] extensions: name=VK_KHR_swapchain, enabled=1
[Vulkan init] extensions: name=VK_EXT_calibrated_timestamps, enabled=0
[Vulkan init] extensions: name=VK_EXT_conditional_rendering, enabled=0
[Vulkan init] extensions: name=VK_EXT_depth_range_unrestricted, enabled=0
[Vulkan init] extensions: name=VK_EXT_global_priority, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_viewport_index_layer, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_stencil_export, enabled=0
[Vulkan init] extensions: name=VK_AMD_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_AMD_gcn_shader, enabled=0
[Vulkan init] extensions: name=VK_AMD_rasterization_order, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_info, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_trinary_minmax, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_decorate_string, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_hlsl_functionality1, enabled=0
Vulkan API version 1.1.90
Vulkan vendor=[ATI] id=[1002]
Vulkan renderer=[AMD RADV POLARIS10 (LLVM 7.0.0)] id=[67df]
Vulkan device type 2
Vulkan driverversion=[0x04c00000] uint=[79691776]
Vulkan PSO: cache data not found [path=/tmp/Bounding Box Software/Materialize/vulkan_pso_cache.bin]
Begin MonoManager ReloadAssembly
- Completed reload, in  0.073 seconds
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'MotionVectors' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/HDRP/TerrainLit_Basemap' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/TerrainLit' - Pass 'META' has no vertex shader
requesting resize 1280 x 720
resizing window to 1280 x 720
Desktop is 1920 x 1080 @ 60 Hz
InitializeOrResetSwapChain 1280x720 samples=1
WARNING: Shader Unsupported: 'Shader Graphs/FullMaterialShader' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'Shader Graphs/FullMaterialShader' - Pass 'MotionVectors' has no vertex shader
WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader
UnloadTime: 1.004561 ms
Initializing MaterialSettings
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.Gui.MaterialGui:InitializeSettings() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/Gui/MaterialGui.cs:133)
Materialize.Gui.MaterialGui:OnEnable() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/Gui/MaterialGui.cs:126)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Starting ProgramManager
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.<Start>d__35:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:93)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Starting TextureManager
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.TextureManager:Start() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/TextureManager.cs:78)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Setting FrameRate to 60
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.<SlowUpdate>d__38:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:129)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutineManaged2(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/MonoBehaviour.bindings.cs:91)
Materialize.General.<Start>d__35:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:104)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Setting up 2 worker threads for Enlighten.
  Thread -> id: 7f30db2cd700 -> priority: 1 
  Thread -> id: 7f30d2607700 -> priority: 1 
Vulkan PSO: data extracted [first call size=139780, new size=139780, old size=0, incomplete=0]
Vulkan PSO: Saved size[139780] path[/tmp/Bounding Box Software/Materialize/vulkan_pso_cache.bin] success=1 headerChanged=1 sizeChanged=1
GarbageCollector disposing of ComputeBuffer. Please use ComputeBuffer.Release() or .Dispose() to manually release the buffer.
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

Culling group was not disposed. You have to call Dispose explicitly from the main thread. This will likely result in a crash.
 
(Filename: /home/builduser/buildslave/unity/build/Runtime/Export/Camera/CullingGroup.bindings.cpp Line: 70)

##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1554401586276,"processId":2671,"allocatedMemory":18446674148206683322,"memoryLabels":[{"Default":1608},{"NewDelete":861},{"Thread":688},{"Manager":256},{"GfxDevice":-69925502877848},{"GfxThread":24},{"Audio":136},{"Physics":32},{"Serialization":40},{"File":48},{"Terrain":88},{"String":1733},{"DynamicArray":88},{"PoolAlloc":-88},{"ScriptManager":2864},{"VR":888},{"SceneManager":288}]}

I was able to switch to a different TTY due to it not entirely freezing this time and kill the process. From what I could tell it was still showing new frames in the application, just at a rate of one per every few minutes. Let me know if there is any more info I can give to help!

P.S. Hopefully this setup for adding the log is a little more manageable.

@maikramer
Copy link
Owner

Thanks man

@maikramer
Copy link
Owner

Sorry for no updates, but i'm in my working days, i will continue when i come back home, in 6 days.
Unity launched a new beta and HDRP has a new version also, then there is a chance the issue was fixed.
I will update unity and SRP tonight, but i work in a oil and gas company, and internet is not great where i'm located.
I will try to build a minimal graphics features and see if it works.

@maikramer
Copy link
Owner

maikramer commented Apr 7, 2019

Here is a Minimal Version, not so good graphics, please try, only trying to track the problem.
https://send.firefox.com/download/bcc5b30f662a4874/#D_EtZBtMtMcBj2HBMW1dDw

Profiling

Ctrl + h - Shows FPS and Memory usage
The expected memory usage for the Development mode of materialize, without textures is about 350MB.
The FPS of the minimal is locked at 30FPS, but can changed to none in options to see the real FPS.
Release mode consumes only 150MB.

@SirRujak
Copy link
Author

SirRujak commented Apr 7, 2019

It was running a bit better so that I could get a screenshot this time. It was fluctuating between running at 60fps and 0fps. The actual memory use seemed to be just fine and CPU usage never showed anything unusual. Comparing it to the last build it visually looked the same when I ran each one. I am not entirely sure what it is normally supposed to look like but I thought I would mention.

And no worries! I definitely want to give the software a try but I will definitely survive without it. Thank you so much for working with me on it!

Terminal output
./Materialize-v0.4HDRP.beta8.Linux64-Minimal.x86_64 
Set current directory to /home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal
Found path: /home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal/Materialize-v0.4HDRP.beta8.Linux64-Minimal.x86_64
Mono path[0] = '/home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal/Materialize-v0.4HDRP.beta8.Linux64-Minimal_Data/Managed'
Mono config path = '/home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal/Materialize-v0.4HDRP.beta8.Linux64-Minimal_Data/MonoBleedingEdge/etc'
PlayerConnection initialized from /home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal/Materialize-v0.4HDRP.beta8.Linux64-Minimal_Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55201
Multi-casting "[IP] 192.168.18.10 [Port] 55201 [Flags] 2 [Guid] 73050903 [EditorId] 2991252731 [Version] 1048832 [Id] LinuxPlayer(192.168.18.10) [Debug] 0 [PackageName] LinuxPlayer" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55201]
Preloaded 'libStandaloneFileBrowser.so'
Preloaded 'ScreenSelector.so'
PlayerConnection already initialized - listening to [0.0.0.0:55201]
Display 0 'VN279 27"': 1920x1080 (primary device).
Loading player data from /home/rujak/Documents/3DDesign/software/Materialize-v0.4HDRP.beta8.Linux64-Minimal/Materialize-v0.4HDRP.beta8.Linux64-Minimal_Data/data.unity3d
Logging to /home/rujak/.config/unity3d/Editor/Player.log
Xlib:  extension "NV-GLX" missing on display ":0".
Xlib:  extension "NV-GLX" missing on display ":0".
Xlib:  extension "NV-GLX" missing on display ":0".
Xlib:  extension "NV-GLX" missing on display ":0".
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
Player log
Desktop is 1920 x 1080 @ 60 Hz
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=1
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
Vulkan detection: 2
Initialize engine version: 2019.1.0b10 (dbf1e96a8b63)
GfxDevice: creating device client; threaded=1
[Vulkan init] extensions: count=17
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=1
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] extensions: count=27
[Vulkan init] extensions: name=VK_KHR_bind_memory2, enabled=0
[Vulkan init] extensions: name=VK_KHR_dedicated_allocation, enabled=1
[Vulkan init] extensions: name=VK_KHR_descriptor_update_template, enabled=0
[Vulkan init] extensions: name=VK_KHR_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_memory_requirements2, enabled=1
[Vulkan init] extensions: name=VK_KHR_image_format_list, enabled=1
[Vulkan init] extensions: name=VK_KHR_incremental_present, enabled=0
[Vulkan init] extensions: name=VK_KHR_maintenance1, enabled=1
[Vulkan init] extensions: name=VK_KHR_maintenance2, enabled=0
[Vulkan init] extensions: name=VK_KHR_relaxed_block_layout, enabled=0
[Vulkan init] extensions: name=VK_KHR_sampler_mirror_clamp_to_edge, enabled=1
[Vulkan init] extensions: name=VK_KHR_shader_draw_parameters, enabled=0
[Vulkan init] extensions: name=VK_KHR_storage_buffer_storage_class, enabled=0
[Vulkan init] extensions: name=VK_KHR_swapchain, enabled=1
[Vulkan init] extensions: name=VK_EXT_calibrated_timestamps, enabled=0
[Vulkan init] extensions: name=VK_EXT_conditional_rendering, enabled=0
[Vulkan init] extensions: name=VK_EXT_depth_range_unrestricted, enabled=0
[Vulkan init] extensions: name=VK_EXT_global_priority, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_viewport_index_layer, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_stencil_export, enabled=0
[Vulkan init] extensions: name=VK_AMD_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_AMD_gcn_shader, enabled=0
[Vulkan init] extensions: name=VK_AMD_rasterization_order, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_info, enabled=0
[Vulkan init] extensions: name=VK_AMD_shader_trinary_minmax, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_decorate_string, enabled=0
[Vulkan init] extensions: name=VK_GOOGLE_hlsl_functionality1, enabled=0
Vulkan API version 1.1.90
Vulkan vendor=[ATI] id=[1002]
Vulkan renderer=[AMD RADV POLARIS10 (LLVM 7.0.0)] id=[67df]
Vulkan device type 2
Vulkan driverversion=[0x04c00000] uint=[79691776]
Vulkan PSO: cache data not found [path=/tmp/Bounding Box Software/Materialize/vulkan_pso_cache.bin]
Begin MonoManager ReloadAssembly
- Completed reload, in  0.075 seconds
WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Utilities' - All passes removed
ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Utilities' - Setting to default shader.
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'IndirectDXR' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'ForwardDXR' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'VisibilityDXR' has no vertex shader
WARNING: Shader Unsupported: 'HDRP/Lit' - All passes removed
requesting resize 1280 x 720
resizing window to 1280 x 720
Desktop is 1920 x 1080 @ 60 Hz
InitializeOrResetSwapChain 1280x720 samples=1
UnloadTime: 0.775271 ms
Initializing MaterialSettings
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.Gui.MaterialGui:InitializeSettings() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/Gui/MaterialGui.cs:133)
Materialize.Gui.MaterialGui:OnEnable() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/Gui/MaterialGui.cs:126)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Starting ProgramManager
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.<Start>d__35:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:93)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Starting TextureManager
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.TextureManager:Start() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/TextureManager.cs:78)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Setting FrameRate to 60
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Utility.Logger:Log(String) (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs:16)
Materialize.General.<SlowUpdate>d__38:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:129)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutineManaged2(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/MonoBehaviour.bindings.cs:91)
Materialize.General.<Start>d__35:MoveNext() (at /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Materialize/General/ProgramManager.cs:104)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /home/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
 
(Filename: /home/maikeu/MeusProgramas/Materialize/Assets/Scripts/Utility/Logger.cs Line: 16)

Setting up 2 worker threads for Enlighten.
  Thread -> id: 7f25518ab700 -> priority: 1 
  Thread -> id: 7f25376f1700 -> priority: 1 
Vulkan PSO: data extracted [first call size=58024, new size=58024, old size=0, incomplete=0]
Vulkan PSO: Saved size[58024] path[/tmp/Bounding Box Software/Materialize/vulkan_pso_cache.bin] success=1 headerChanged=1 sizeChanged=1
GarbageCollector disposing of ComputeBuffer. Please use ComputeBuffer.Release() or .Dispose() to manually release the buffer.
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

Culling group was not disposed. You have to call Dispose explicitly from the main thread. This will likely result in a crash.
 
(Filename: /home/builduser/buildslave/unity/build/Runtime/Export/Camera/CullingGroup.bindings.cpp Line: 70)

##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1554671133811,"processId":2197,"allocatedMemory":3052184,"memoryLabels":[{"Default":1608},{"NewDelete":861},{"Thread":688},{"Manager":256},{"GfxDevice":3042624},{"GfxThread":24},{"Audio":136},{"Physics":32},{"Serialization":40},{"File":48},{"Terrain":88},{"String":1739},{"DynamicArray":88},{"PoolAlloc":-88},{"ScriptManager":2864},{"VR":888},{"SceneManager":288}]}
Screenshot

MMaterialize1

@maikramer
Copy link
Owner

Thanks man, your help is really appreciated

@SirRujak
Copy link
Author

SirRujak commented Apr 8, 2019

No problem at all! It seems that the new beta version of Unity might be the fix after all. I downloaded the most recent Unity Hub and the most recent beta build of Unity (2019.2.0a9) and figured out how to build it and it started working just fine. I don't know enough about Unity to tell if my distributions environment would change things but at least I can say it can work with the most recent pull from the HDRP branch!

@maikramer
Copy link
Owner

Thanks for all this amazing tests man!!
I'm almost sure that is about your AMD GPU and the bad support of Unity for it.
Some inner change in unity fixed this, then, i will start to build over 2019.2 and make some tests.
Another thing is that they develop HDRP over 2019.2 and backport to 2019.1, what is not ideal.
I hope you will like the program and the results it produces. Don't forget to give me feedback about the way it is working. Any doubt i will be pleased to answer.

@finnbear
Copy link

I got this issue on Ubuntu 18.04 when I double clicked the window's top bar to enter widescreen (not full screen) mode.

@maikramer
Copy link
Owner

Can you try the 0.3.7 version and see if it works for all of you?

@SirRujak
Copy link
Author

Sorry it took quite so long to get back around to testing, but it is now starting up correctly on Solus using 0.3.7. I am able to import a diffuse map and generate the other maps correctly. Occasionally it is having similar issues to issue #13 but it no longer appears to have the memory issues that caused this issue! Other than that it is nice and snappy, all the options appear to work as intended, and exporting is working perfectly =D

Thank you so much for working on it! I am happy to close out the issue whenever you are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants