mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
Crach when missing EllipsisChar glyph #6480
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#6480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version: commit
3418d50949Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_sdl2.cpp
Compiler: Xcode
Operating System: macOS
My Issue/Question:
I updated ImGui after very long time. It compiles fine, no code changes required on my end, but now I get immediately during startup procedure a crash in imgui_draw.cpp, line 3223:
EllipsisWidth = EllipsisCharStep = FindGlyph(EllipsisChar)->X1;The FindGlyph returns FallbackGlyph, and that is NULL. I am using default font, it is pretty simple init procedure, do I miss something, was API changed or I need to additionally init font or something?
Thanks in advance.
Oh, it seems that's my bug, I had in the font setup code:
font_cfg.EllipsisChar = (ImWchar)0x0085;It seems that char is not there and the ellipsis char was changed to 0x2026.
I wonder if that should not be an assert?
Thank you, I can confirm that it shouldn't crash bluntly. I'll look now.
Fixed with
075b975