Pre-submission Checklist
Hexa.NET.ImGui Version
1.92.3
Bug Description
I'm trying to create a cross platform game using HexaEngine libraries using OpenGl3, GLFW and ImGUI. When running my game on MacOsx I get an error.
When running the ExampleGLFWOpenGL3 sample on MacOs I'm getting the same error:
/Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/ExampleGLFWOpenGL3 objc[54428]: Class GLFWHelper is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41810) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1158). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWApplicationDelegate is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41860) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba11a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWWindowDelegate is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41888) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba11d0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWContentView is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f418d8) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1220). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWWindow is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41950) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1298). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. Assertion failed: (g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"), function ErrorCheckNewFrameSanityChecks, file imgui.cpp, line 11475.
The sample works fine on windows.
Actually on MacOs the only sample that works is the SDL3GPU sample.
Steps to Reproduce
Clone the repo on MacOs and run the sample
Expected Behavior
Sample runs
Code Sample
Platform
macOS
.NET Version
net9.0
Additional Context
No response
Pre-submission Checklist
Hexa.NET.ImGui Version
1.92.3
Bug Description
I'm trying to create a cross platform game using HexaEngine libraries using OpenGl3, GLFW and ImGUI. When running my game on MacOsx I get an error.
When running the ExampleGLFWOpenGL3 sample on MacOs I'm getting the same error:
/Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/ExampleGLFWOpenGL3 objc[54428]: Class GLFWHelper is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41810) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1158). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWApplicationDelegate is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41860) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba11a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWWindowDelegate is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41888) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba11d0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWContentView is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f418d8) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1220). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. objc[54428]: Class GLFWWindow is implemented in both /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/libglfw.dylib (0x102f41950) and /Users/bart/Development/external/Hexa.NET.ImGui/Examples/ExampleGLFWOpenGL3/bin/Debug/net9.0/runtimes/osx-arm64/native/ImGuiImplGLFW.dylib (0x107ba1298). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. Assertion failed: (g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"), function ErrorCheckNewFrameSanityChecks, file imgui.cpp, line 11475.The sample works fine on windows.
Actually on MacOs the only sample that works is the SDL3GPU sample.
Steps to Reproduce
Clone the repo on MacOs and run the sample
Expected Behavior
Sample runs
Code Sample
Platform
macOS
.NET Version
net9.0
Additional Context
No response