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

Sample Projects broken since ImGuizmo, imnodes, ImPlot merge to master #241

Closed
BlizzCrafter opened this issue Mar 23, 2021 · 1 comment
Closed

Comments

@BlizzCrafter
Copy link

BlizzCrafter commented Mar 23, 2021

Both the Veldrid and the XNA sample project are not working anymore since the above mentioned update to the master branch #218

They are both crashing at the same line in ImGuiRenderer:
https://github.com/mellinoe/ImGui.NET/blob/master/src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs#L336

With a System.AccessViolationException and the following StackTrace:

at System.Runtime.CompilerServices.Unsafe.Read[T](Void* source)
   at ImGuiNET.RangePtrAccessor`1.get_Item(Int32 index) in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET\RangeAccessor.cs:line 56
   at ImGuiNET.SampleProgram.XNA.ImGuiRenderer.UpdateBuffers(ImDrawDataPtr drawData) in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET.SampleProgram.XNA\ImGuiRenderer.cs:line 308
   at ImGuiNET.SampleProgram.XNA.ImGuiRenderer.RenderDrawData(ImDrawDataPtr drawData) in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET.SampleProgram.XNA\ImGuiRenderer.cs:line 267
   at ImGuiNET.SampleProgram.XNA.ImGuiRenderer.AfterLayout() in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET.SampleProgram.XNA\ImGuiRenderer.cs:line 134
   at ImGuiNET.SampleProgram.XNA.SampleGame.Draw(GameTime gameTime) in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET.SampleProgram.XNA\SampleGame.cs:line 66
   at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop()
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   at ImGuiNET.SampleProgram.XNA.Program.Main(String[] args) in C:\Users\mhaer\Source\Repos\ImGui.NET2\src\ImGui.NET.SampleProgram.XNA\Program.cs:line 7

It is also pointing to this line in the RangeAccessor:
https://github.com/mellinoe/ImGui.NET/blob/master/src/ImGui.NET/RangeAccessor.cs#L56

Is there anything I need to setup with the new update before the sample projects will work again?

I tested with the current, unmodified master branch.

@mellinoe
Copy link
Collaborator

The native binaries were out of sync there, but everything should be fixed if you sync again.

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

2 participants