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

Bug: ImFontAtlas' ClearInputData method crashes without any error. #229

Open
Mjrlun opened this issue Apr 20, 2024 · 1 comment
Open

Bug: ImFontAtlas' ClearInputData method crashes without any error. #229

Mjrlun opened this issue Apr 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Mjrlun
Copy link

Mjrlun commented Apr 20, 2024

Version

1.86.11

What happened?

Upon calling the method in the title, the JVM hangs and hard-crashes with no outputted error.

What I expected to happen is the font atlas to clear the input data.

I've tried to find a solution online for week, still can't find one.

Reproduction

This method splits all of the clear() methods in order to make sure none of them break. Hopefully once this is solved, I'll switch back to the generic version. Yes, the same error occurs with clear(), so this may be an imgui issue, rather than with the binding.
image
Upon starting the program, the font atlas is cleared (for code generality reasons). This has no effect; the method returns normally.
However, upon fully loading a font, and then calling clearInputData() (font pointer still fully valid), the JVM crashes with no logged error. However, the behavior is very similar to a typical JVM crash in that it immediately terminates the process (leaving loggers not able to communicate).

Relevant log output

There is no error to report, sadly.

If this error is resolved as not a fault of the binding, I will bump it to the ImGUI issue tracker

@Mjrlun Mjrlun added the bug Something isn't working label Apr 20, 2024
@SpaiR
Copy link
Owner

SpaiR commented Aug 30, 2024

@Mjrlun Apologies for the delayed response. I've recently started working more closely on the library and I'm reviewing the list of reported issues.

Would it be possible for you to provide a more complete code example that reproduces the issue, preferably within the Application context if possible? Also, could you check if the problem still occurs with the latest versions? It's possible the issue has already been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants