Skip to content

Imgui Crash #5293

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

Closed
FF69B3 opened this issue May 7, 2022 · 5 comments
Closed

Imgui Crash #5293

FF69B3 opened this issue May 7, 2022 · 5 comments

Comments

@FF69B3
Copy link

FF69B3 commented May 7, 2022

int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const
{
// Automatic segment count
const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy

if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts))
return _Data->CircleSegmentCounts[radius_idx]; // Crash Here
else
return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError);
}

I Use Inject ImguiDx11 Dll , When I draw the rect, and I use rounding, crash in some cases, and when I debug the code, it crashes here. return _Data->CircleSegmentCounts[radius_idx];

I don't know why。

return radius * 2;

I use like this, no crash

@rokups
Copy link
Contributor

rokups commented May 9, 2022

See #1586.

@ocornut
Copy link
Owner

ocornut commented May 9, 2022

Also same issue as #5249

@ocornut ocornut closed this as completed May 9, 2022
@FF69B3
Copy link
Author

FF69B3 commented May 10, 2022

See #1586.

I'm just submitting questions and solutions, is there anything about cheating in my question?

@FF69B3
Copy link
Author

FF69B3 commented May 10, 2022

Also same issue as #5249

Thank You.

@rokups
Copy link
Contributor

rokups commented May 10, 2022

DLL injection is commonly used for cheating and is a very unsupported configuration where million things can go wrong, 999999 of them have nothing to do with Dear ImGui.

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

3 participants