psydack / uimgui

UImGui (Unity ImGui) is an UPM package for the immediate mode GUI library using ImGui.NET. This project is based on RG.ImGui project.
MIT License
304 stars 52 forks source link

[BUG] 5.0.0 crashes Unity 2022.3.17f1 #61

Open flarsson87 opened 3 months ago

flarsson87 commented 3 months ago

Describe the bug Unity crashes with a SIGSEGV error when running the example prefab with URP on 2022.3.17f1

To Reproduce Steps to reproduce the behavior:

  1. Install the package from git link https://github.com/psydack/uimgui.git
  2. Follow the steps to set up URP rendering.
  3. Drag & drop prefab contained in the package
  4. Connect references
  5. Press play

Version/Branch of UImGui: Version: 5.0.0

Unity Version 2022.3.17f1

Render pipeline (HDRP / URP / Built-in) URP

Expected behavior Able to run demo script / prefab with this unity version.


Is this too old of a Unity version or is there something I'm missing?

Log

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at ImGuizmoNET.ImGuizmoNative:ImGuizmo_BeginFrame <0x00086>
      at ImGuizmoNET.ImGuizmo:BeginFrame <0x0001a>
      at UImGui.UImGui:DoUpdate <0x0011a>
      at UImGui.UImGui:Update <0x0003a>
      at System.Object:runtime_invoke_void__this__ <0x00087>
=================================================================
Received signal SIGSEGV
Obtained 2 stack frames
RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
<Missing stacktrace information>

EDIT: to circumvent you can add the defines:

UIMGUI_REMOVE_IMPLOT
UIMGUI_REMOVE_IMNODES
UIMGUI_REMOVE_IMGUIZMO
afwaxx commented 2 months ago

Any updates on this? @psydack

Orio-nn commented 2 weeks ago

EDIT: to circumvent you can add the defines:

UIMGUI_REMOVE_IMPLOT
UIMGUI_REMOVE_IMNODES
UIMGUI_REMOVE_IMGUIZMO

I've tried every combination of these, and it only seems to work when all 3 are removed