View Issue Details

IDProjectCategoryView StatusLast Update
0004171NoesisGUIUnitypublic2025-05-29 13:41
Reportersiebenkeim Assigned Tojsantos  
PrioritynormalSeverityminor 
Status feedbackResolutionopen 
Product Version3.2 
Summary0004171: Unity 6 Crash on Linux (OpenGL 4.5)
Description

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.

https://www.noesisengine.com/forums/viewtopic.php?t=3661

PlatformLinux

Activities

jsantos

jsantos

2025-05-15 13:20

manager   ~0010672

Please, indicate the version of the Unity plugin.

siebenkeim

siebenkeim

2025-05-15 14:09

reporter   ~0010673

NoesisGUI-Unity-3.2.7-Indie

jsantos

jsantos

2025-05-19 11:33

manager   ~0010697

Symbols for the Indie version are available here:

Also, a debug version of the runtime can be downloaded at:

Could you please give it a try to see if we have more information?

siebenkeim

siebenkeim

2025-05-25 15:30

reporter   ~0010740

Caught fatal signal - signo:11 code:1 errno:0 addr:0x10
Obtained 54 stack frames.
#0 0x005637bcfde4fc in burst_signal_handler(int, siginfo_t, void)
#1 0x007f216456ac30 in __sigaction
#2 0x007f20f13eaa9a in vdp_imp_device_create_x11
#3 0x007f20f13b04d8 in vdp_imp_device_create_x11
#4 0x007f20f1274fb1 in vdp_imp_device_create_x11
#5 0x007f20f1275638 in vdp_imp_device_create_x11
#6 0x007f20f13a54e8 in vdp_imp_device_create_x11
#7 0x005637bd639382 in ApiGLES::IsVertexArray(gl::Handle<(gl::ObjectType)3>)
#8 0x005637bd64aa1a in GfxContextGLES::GetDefaultVertexArray() const
#9 0x005637bd63a885 in ApiGLES::Invalidate(GfxContextGLES const&)
#10 0x005637bd610213 in gles::InvalidatePipelineStates(GfxContextGLES const&, DeviceStateGLES&)
#11 0x005637bd61a063 in GfxDeviceGLES::InvalidateState()
#12 0x005637bce7fd24 in GLInvalidateState()
#13 0x00000040d82907 in (wrapper managed-to-native) UnityEngine.GL:InvalidateState ()
#14 0x00000040d83d47 in NoesisView:OnPostRender ()

I'm working on Gnome Wayland and i think Unity runs over XWayland. So maybe its a XWayland problem?

jsantos

jsantos

2025-05-27 19:34

manager   ~0010748

Last edited: 2025-05-27 19:35

Having a look at the call stack.... is this using GL ES on desktop? Because I don't think that's supported with Noesis right now.

#11 0x005637bd61a063 in GfxDeviceGLES::InvalidateState()

We are calling GL.InvalidateState from our PostRender function:

public static void RenderOnscreen(Noesis.View view, bool flipY, UnityEngine.Rendering.CommandBuffer commands,
    bool invalidate, bool clearStencil)
{
    FixCommandBuffer(commands);

    if (clearStencil)
    {
        commands.ClearRenderTarget(UnityEngine.Rendering.RTClearFlags.Stencil, UnityEngine.Color.black, 1.0f, 0);
    }

    var eventId = flipY ? EventId.RenderOnscreenFlipY : EventId.RenderOnscreen;

    #if UNITY_2022_2_OR_NEWER
    commands.IssuePluginEventAndDataWithFlags(_renderOnscreenCallback, (int)eventId,
        invalidate ? CustomMarkerCallbackForceInvalidateStateTracking : CustomMarkerCallbackDefault,
        view.Renderer.CPtr.Handle);
    #else
    commands.IssuePluginEventAndData(_renderOnscreenCallback, (int)eventId, view.Renderer.CPtr.Handle);
    if (invalidate) InvalidateState(commands);
    #endif
}

It seems Unity is giving an error when invalidating the GL state.

siebenkeim

siebenkeim

2025-05-28 15:52

reporter   ~0010752

I've checked via glxinfo. I'm running under OpenGL and Unity runs on OpenGL 4.5 (also visible in the Title bar)

jsantos

jsantos

2025-05-29 13:41

manager   ~0010759

have you tried the same project in WIndows?

If you don't have a Windows machine, could you share the project so that I can try it? (will try with D3D, GL and Vulkan renderers).

Issue History

Date Modified Username Field Change
2025-05-15 13:02 siebenkeim New Issue
2025-05-15 13:03 siebenkeim Tag Attached: OpenGL
2025-05-15 13:03 siebenkeim Tag Attached: Unity
2025-05-15 13:20 jsantos Assigned To => jsantos
2025-05-15 13:20 jsantos Status new => assigned
2025-05-15 13:20 jsantos Note Added: 0010672
2025-05-15 13:20 jsantos Status assigned => feedback
2025-05-15 14:09 siebenkeim Note Added: 0010673
2025-05-15 14:09 siebenkeim Status feedback => assigned
2025-05-19 11:33 jsantos Note Added: 0010697
2025-05-19 11:33 jsantos Status assigned => feedback
2025-05-25 15:30 siebenkeim Note Added: 0010740
2025-05-25 15:30 siebenkeim Status feedback => assigned
2025-05-27 19:34 jsantos Note Added: 0010748
2025-05-27 19:34 jsantos Note Edited: 0010748
2025-05-27 19:35 jsantos Note Edited: 0010748
2025-05-28 15:52 siebenkeim Note Added: 0010752
2025-05-29 13:41 jsantos Note Added: 0010759
2025-05-29 13:41 jsantos Status assigned => feedback
2025-10-10 13:29 jsantos Category Unity3D => Unity