-
Notifications
You must be signed in to change notification settings - Fork 19
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
HTML5 error when adding font #29
Comments
It looks like it is font related. Are you using a custom font and imgui.font_add_ttf_data()? If so, is the font available and loaded correctly? |
yes, it works like a charm on all available devices and browsers, but i got this error in sentry |
this error never happens if we run directly html page |
Interesting. How are you loading the font? |
|
I should probably update to the latest version of DearImGUI. The version used in this extension is two years old. It might help. One thing which you could do is to add some printf()'s in imgui_draw.cpp:1899 to check what exactly it is asserting on. |
@SalavatR would you mind trying with the latest version? It was updated to ImGui 1.89.9. And if it doesn't work then please provide a sample project that I can try. |
Hello! https://yandex.ru/games/app/183506 if i open many tabs very fast i got error: But i got it only in iframes, can't get when open direct links from cnd |
I can also reproduce this. I looked more closely at the code when the font is loaded from memory and there is a memory allocation that might fail. I've now added a check for this and a dmLogWarning(). Perhaps you could try the new version and see if the failed allocation was the reason? https://github.com/britzl/extension-imgui/releases/tag/2.3.1 |
That is not exactly the same error though. Initially it was |
What is the size you are passing to |
hi! after release on html5 platform, we got errors, can't reproduce local
"RuntimeError: abort(Assertion failed: font_cfg->FontData != 0L && font_cfg->FontDataSize > 0, at: upload/imgui/src/imgui/imgui_draw.cpp,1899,AddFont). Build with -s ASSERTIONS=1 for more info.","abort@:1:12355","___assert_fail@:1:19145"
The text was updated successfully, but these errors were encountered: