-
- siebenkeim
- Posts: 4
- Joined:
Unity 6 Crash on Linux (OpenGL 4.5)
Hello,
i'm currently struggling making NoesisGUI working for my project or my test projects. I work on Fedora Linux with Unity 6000.0.47f1 (OpenGL 4.5) and everytime i include a NoesisView and start the game the whole engine crashes, sometimes it crashes also when i preview a View.xaml. It looks like everytime the GUI wants to render something the engine crashes.
I want to use the GUI as a replacement for UI toolkit because it has features i need but i can't currently use it.
It's easy to replicate it for me. I just create a new Unity project (doesn't matter if Builtin Renderer or URP), import the package and generate a UserControl, include it into the Scene and start the game (if it doesn't crash then it crashes when i select a xaml asset).
It doesn't crash when i use '-force-vulkan' when i start the editor but then nothing is rendered.
The log when it crashes when i select a xaml asset
The log when it crashes when i start the game
i'm currently struggling making NoesisGUI working for my project or my test projects. I work on Fedora Linux with Unity 6000.0.47f1 (OpenGL 4.5) and everytime i include a NoesisView and start the game the whole engine crashes, sometimes it crashes also when i preview a View.xaml. It looks like everytime the GUI wants to render something the engine crashes.
I want to use the GUI as a replacement for UI toolkit because it has features i need but i can't currently use it.
It's easy to replicate it for me. I just create a new Unity project (doesn't matter if Builtin Renderer or URP), import the package and generate a UserControl, include it into the Scene and start the game (if it doesn't crash then it crashes when i select a xaml asset).
It doesn't crash when i use '-force-vulkan' when i start the editor but then nothing is rendered.
The log when it crashes when i select a xaml asset
Code: Select all
Caught fatal signal - signo:11 code:1 errno:0 addr:0x10
Obtained 47 stack frames.
#0 0x0055e3f2ce2a6c in burst_signal_handler(int, siginfo_t*, void*)
#1 0x007f4e83748050 in (Unknown)
#2 0x007f4d253e36fa in (Unknown)
#3 0x007f4d253a9dd8 in (Unknown)
#4 0x007f4d25270b21 in (Unknown)
#5 0x007f4d252711f3 in (Unknown)
#6 0x007f4d2539efc7 in (Unknown)
#7 0x0055e3f3385a12 in ApiGLES::IsVertexArray(gl::Handle<(gl::ObjectType)3>)
#8 0x0055e3f33957fa in GfxContextGLES::GetDefaultVertexArray() const
#9 0x0055e3f3386f15 in ApiGLES::Invalidate(GfxContextGLES const&)
#10 0x0055e3f335dd73 in gles::InvalidatePipelineStates(GfxContextGLES const&, DeviceStateGLES&)
#11 0x0055e3f3367ec3 in GfxDeviceGLES::InvalidateState()
#12 0x0055e3f2be553c in RenderingCommandBuffer::ExecuteCommandBufferWithState(ShaderPassContext&, RenderNodeQueue&, RenderingCommandBufferState*, unsigned int, ComputeQueueType) const
#13 0x0055e3f2be1b44 in RenderingCommandBuffer::ExecuteCommandBuffer(ShaderPassContext&, RenderNodeQueue&, unsigned int, core::vector<std::pair<ShaderLab::FastPropertyName, RenderTexture*>, core::allocator<std::pair<ShaderLab::FastPropertyName, RenderTexture*>, 0ul> >*, ComputeQueueType, RenderTexture*) const
#14 0x0055e3f2b07030 in ExecuteCommandBufferFromScriptImpl(RenderingCommandBuffer*, ComputeQueueType, ScriptingExceptionPtr*)
#15 0x0055e3f25197f2 in Graphics_CUSTOM_ExecuteCommandBuffer(void*)
#16 0x0000004161d9fc in (wrapper managed-to-native) UnityEngine.Graphics:ExecuteCommandBuffer_Injected (intptr)
#17 0x0000004161d6d3 in UnityEngine.Graphics:ExecuteCommandBuffer (UnityEngine.Rendering.CommandBuffer)
#18 0x0000004090fe5b in NoesisXamlEditor:RenderPreview (Noesis.View,int,int,double)
#19 0x000000408e80c7 in NoesisXamlEditor:OnPreviewGUI (UnityEngine.Rect,UnityEngine.GUIStyle)
#20 0x000000408e7e8c in UnityEditor.Editor:OnInteractivePreviewGUI (UnityEngine.Rect,UnityEngine.GUIStyle)
#21 0x000000408e783a in UnityEditor.ObjectPreview:DrawPreview (UnityEditor.IPreviewable,UnityEngine.Rect,UnityEngine.Object[])
#22 0x000000408e5d77 in UnityEditor.AssetImporters.AssetImporterEditor:DrawPreview (UnityEngine.Rect)
#23 0x000000408e5b9a in UnityEditor.PropertyEditor:DrawPreview (UnityEditor.IPreviewable)
#24 0x000000408ded9f in UnityEditor.PropertyEditor:DrawPreviewAndLabels ()
#25 0x000000416dc45c in UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
#26 0x000000416db8bb in UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
#27 0x000000405eeeb3 in UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint ()
#28 0x000000405eda78 in UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
#29 0x000000405ec563 in UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,single,System.Exception&)
#30 0x000000405ea03b in UnityEngine.UIElements.UIR.RenderChain:Render ()
#31 0x000000405e99d7 in UnityEngine.UIElements.UIRRepaintUpdater:Render ()
#32 0x000000405e9971 in UnityEngine.UIElements.BaseVisualElementPanel:Render ()
#33 0x000000405e988f in UnityEngine.UIElements.Panel:Render ()
#34 0x000000405e9847 in UnityEditor.UIElements.EditorPanel:Render ()
#35 0x000000416bc968 in UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
#36 0x000000416bc7c7 in UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
#37 0x000000416bc626 in UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
#38 0x000000416bc57b in UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
#39 0x000000416bb9ee in UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
#40 0x000000416bbaf3 in (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
Launching bug reporter
Option '--unity_project' expects a single argument but 2 were provided.
Option '--editor_analytics_id' expects a single argument but 2 were provided.
[2025-05-10 21:27:05.148 +02:00 INF dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Launching bug reporter: Release session dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c
[2025-05-10 21:27:05.990 +02:00 WRN dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Failed to make the 'GetLicense' request to the Unity License client. JsonException: JSON deserialization for type 'UnityBugReporter.Models.ExternalRequestModels.EntitlementGroupDetail' was missing required properties, including the following: organizationId, organizationName, organizationSlug
[2025-05-10 21:27:05.991 +02:00 WRN dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Unable to get license type from License client, falling back to license file
[2025-05-10 21:27:06.084 +02:00 INF dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Editor Analytics ID is not set, analytics will not be sent
[2025-05-10 21:27:08.648 +02:00 INF dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Creating / overwriting file at /home/egor/.config/unity3d/config/bugreporter-settings.json
[2025-05-10 21:27:08.651 +02:00 INF dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c] Deleting directory at /tmp/UnityBugReporter_dccf9f53-2d62-4707-a8a2-6f0ebeb65b7c
[40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
[40m[32minfo[39m[22m[49m: Unity.ILPP.Runner.PostProcessingAssemblyLoadContext[0]
ALC ILPP context 1 is unloading
Code: Select all
Loaded scene 'Temp/__Backupscenes/0.backup'
Deserialize: 0.419 ms
Integration: 230.774 ms
Integration of assets: 0.001 ms
Thread Wait Time: 0.006 ms
Total Operation Time: 231.200 ms
Caught fatal signal - signo:11 code:1 errno:0 addr:0x10
Obtained 55 stack frames.
#0 0x005575905e7a6c in burst_signal_handler(int, siginfo_t*, void*)
#1 0x007fdb97004050 in (Unknown)
#2 0x007fda5d3e36fa in (Unknown)
#3 0x007fda5d3a9dd8 in (Unknown)
#4 0x007fda5d270b21 in (Unknown)
#5 0x007fda5d2711f3 in (Unknown)
#6 0x007fda5d39efc7 in (Unknown)
#7 0x00557590c8aa12 in ApiGLES::IsVertexArray(gl::Handle<(gl::ObjectType)3>)
#8 0x00557590c9a7fa in GfxContextGLES::GetDefaultVertexArray() const
#9 0x00557590c8bf15 in ApiGLES::Invalidate(GfxContextGLES const&)
#10 0x00557590c62d73 in gles::InvalidatePipelineStates(GfxContextGLES const&, DeviceStateGLES&)
#11 0x00557590c6cec3 in GfxDeviceGLES::InvalidateState()
#12 0x005575904090d4 in GLInvalidateState()
#13 0x00000041eeb5e6 in (wrapper managed-to-native) UnityEngine.GL:InvalidateState ()
#14 0x00000041eecdd7 in NoesisView:OnPostRender ()
#15 0x00000040ee68f5 in (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
#16 0x00000041eea92b in (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected (intptr,int,UnityEngine.Vector2&,bool,bool)
#17 0x00000041eea883 in UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Vector2,bool,bool)
#18 0x00000041ee98a3 in UnityEditor.PlayModeView:RenderView (UnityEngine.Vector2,bool)
#19 0x00000041f4614f in UnityEditor.GameView:OnGUI ()
#20 0x00000040dc0c5b in UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
#21 0x00000040dc0a73 in UnityEditor.DockArea:DrawView (UnityEngine.Rect)
#22 0x00000040dafc2b in UnityEditor.DockArea:OldOnGUI ()
#23 0x00000040d9ce8c in UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
#24 0x00000040d9c2eb in UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
#25 0x00000041ece9e3 in UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint ()
#26 0x00000041ecd5a8 in UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
#27 0x00000041ecc3a3 in UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,single,System.Exception&)
#28 0x00000041ec9e7b in UnityEngine.UIElements.UIR.RenderChain:Render ()
#29 0x00000041ec9817 in UnityEngine.UIElements.UIRRepaintUpdater:Render ()
#30 0x00000041ec97b1 in UnityEngine.UIElements.BaseVisualElementPanel:Render ()
#31 0x00000041ec96cf in UnityEngine.UIElements.Panel:Render ()
#32 0x00000041ec9687 in UnityEditor.UIElements.EditorPanel:Render ()
#33 0x00000040d7a968 in UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
#34 0x00000040d7a7c7 in UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
#35 0x00000040d7a626 in UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
#36 0x00000040d7a57b in UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
#37 0x00000040d799ee in UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
#38 0x00000040d79af3 in (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
#39 0x007fd9f9846386 in (Unknown)
#40 0x007fd9f99e3ae9 in (Unknown)
#41 0x007fd9f99e3a4d in mono_runtime_invoke
#42 0x00557590a88663 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
#43 0x00557590a60157 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
#44 0x00557590a25bba in MonoBehaviour::HandleNotifications(void*, int, MessageData&)
#45 0x005575902047af in MessageHandler::HandleMessage(void*, unsigned int, MessageIdentifier const&, MessageData&)
#46 0x0055759020461b in GameObject::SendMessageAny(MessageIdentifier const&, MessageData&)
#47 0x00557590267526 in Camera::PostMultiCustomRender(Camera::RenderFlag, bool)
#48 0x005575902676be in Camera::DoRender(CullResults&, Camera::RenderFlag, Camera::PerformRenderFunction*)
#49 0x00557590269d1d in Camera::CustomRender(CullResults&, ShaderPassContext&, CameraRenderingParams const*, Camera::RenderFlag, Camera::PerformRenderFunction*, void (*)(), void (*)())
#50 0x0055759026c158 in Camera::Render(CullResults&, ShaderPassContext&, Camera::RenderFlag, void (*)(), void (*)())
#51 0x005575902d5039 in RenderManager::RenderCameras(int, void (*)(), void (*)())
#52 0x00557591746f86 in RepaintController::RenderPlayModeViewCameras(RenderTexture*, int, Vector2f, bool, bool)
#53 0x00557591f4c495 in EditorGUIUtility::RenderPlayModeViewCamerasInternal(RenderTexture*, int, Vector2f, bool, bool)
#54 0x00557590014e21 in EditorGUIUtility_CUSTOM_RenderPlayModeViewCamerasInternal(void*, int, Vector2f const&, unsigned char, unsigned char)
Launching bug reporter
Option '--unity_project' expects a single argument but 2 were provided.
Option '--editor_analytics_id' expects a single argument but 2 were provided.
[2025-05-10 21:28:29.291 +02:00 INF a46ef727-224b-490f-965c-06bfc217aa69] Launching bug reporter: Release session a46ef727-224b-490f-965c-06bfc217aa69
[2025-05-10 21:28:30.122 +02:00 WRN a46ef727-224b-490f-965c-06bfc217aa69] Failed to make the 'GetLicense' request to the Unity License client. JsonException: JSON deserialization for type 'UnityBugReporter.Models.ExternalRequestModels.EntitlementGroupDetail' was missing required properties, including the following: organizationId, organizationName, organizationSlug
[2025-05-10 21:28:30.123 +02:00 WRN a46ef727-224b-490f-965c-06bfc217aa69] Unable to get license type from License client, falling back to license file
[2025-05-10 21:28:30.213 +02:00 INF a46ef727-224b-490f-965c-06bfc217aa69] Editor Analytics ID is not set, analytics will not be sent
[2025-05-10 21:28:32.613 +02:00 INF a46ef727-224b-490f-965c-06bfc217aa69] Creating / overwriting file at /home/egor/.config/unity3d/config/bugreporter-settings.json
[2025-05-10 21:28:32.616 +02:00 INF a46ef727-224b-490f-965c-06bfc217aa69] Deleting directory at /tmp/UnityBugReporter_a46ef727-224b-490f-965c-06bfc217aa69
[40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
[40m[32minfo[39m[22m[49m: Unity.ILPP.Runner.PostProcessingAssemblyLoadContext[0]
ALC ILPP context 1 is unloading
Re: Unity 6 Crash on Linux (OpenGL 4.5)
1. Does this happen in previous versions of Unity?
2. Is this happening in a clean project importing one of our examples (HelloWorld) with the package manager? (please try this with URP and vanilla).
Thank you!
2. Is this happening in a clean project importing one of our examples (HelloWorld) with the package manager? (please try this with URP and vanilla).
Thank you!
-
- siebenkeim
- Posts: 4
- Joined:
Re: Unity 6 Crash on Linux (OpenGL 4.5)
1. I tried it with 2022.3.62f1 and it happens there too. The crash happens also on Builtin Renderer and URP
2. After it didn't work with my project i always created new projects (also a new project when i wanted to test builtin and urp rendering).
I tried this sample https://github.com/Noesis/Tutorials/tre ... orld/Unity and it didn't work.
I'm working on Fedora 41 with Unity and in one year it didn't crashed once. I think its a problem with OpenGL as rendering backend.
2. After it didn't work with my project i always created new projects (also a new project when i wanted to test builtin and urp rendering).
I tried this sample https://github.com/Noesis/Tutorials/tre ... orld/Unity and it didn't work.
I'm working on Fedora 41 with Unity and in one year it didn't crashed once. I think its a problem with OpenGL as rendering backend.
Re: Unity 6 Crash on Linux (OpenGL 4.5)
Could you please try in this same machine any of the samples included in the C++ SDK?
-
- siebenkeim
- Posts: 4
- Joined:
Re: Unity 6 Crash on Linux (OpenGL 4.5)
I've build the C++ SDK with:
All samples i tried worked fine. I also tried to create a new project in Unity because i had some missing dev libraries and maybe unity compiled something but it still doesn't work.
In the logs i've send in my first post this callstack made me wonder that its maybe a unity integration problem?
Code: Select all
dnf install mesa-libGL-devel mesa-libGLU-devel freeglut-devel
make CXXFLAGS="$CXXFLAGS -Wno-error=stringop-overflow" -f NoesisGUI-linux-x86_64.mk CONFIG=Release
In the logs i've send in my first post this callstack made me wonder that its maybe a unity integration problem?
Code: Select all
#12 0x005575904090d4 in GLInvalidateState()
#13 0x00000041eeb5e6 in (wrapper managed-to-native) UnityEngine.GL:InvalidateState ()
#14 0x00000041eecdd7 in NoesisView:OnPostRender ()
Re: Unity 6 Crash on Linux (OpenGL 4.5)
The stack trace without symbols isn’t very helpful. Are you using a paid license? If so, could you try reproducing the issue with symbol files and also using a debug version of the Noesis library?
If you're using an evaluation version, please create a support ticket and I’ll send you the necessary files
If you're using an evaluation version, please create a support ticket and I’ll send you the necessary files
-
- siebenkeim
- Posts: 4
- Joined:
Re: Unity 6 Crash on Linux (OpenGL 4.5)
Created a ticket: https://www.noesisengine.com/bugs/view.php?id=4171
And i use the evaluation version because i wanted to try it out first.
And i use the evaluation version because i wanted to try it out first.
Re: Unity 6 Crash on Linux (OpenGL 4.5)
Yes, of course. Thanks for the ticket, let's continue the conversation there.
Who is online
Users browsing this forum: No registered users and 7 guests