-
Notifications
You must be signed in to change notification settings - Fork 68
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
Editing a label, rotate to ~311 degrees, open font menu -> segfault #1093
Comments
@dlonie it might be VTK issue so assigning to you. |
@dlonie Any update on this? I'm probably going to be doing a workaround for this issue tomorrow if nothing looks promising. |
@chaosphere2112 I haven't had a chance to look into it yet. Feel free to do a workaround. |
Moving this to 2.3 for now as we have the workaround for 2.2 |
👍 |
Is this still an issue? I'm trying to reproduce, but can you clarify what you mean by "font menu"? I don't see this. So far I've:
Not sure what's next. |
@dlonie I removed the font menu (which was a button you could click in the configure menu to open a list of all of the fonts available, styled using those fonts) and replaced with one button you click through to cycle which font you're using. It's not ideal, but it'll work for now. We can look into this further in a week or two. |
Aha, that would explain it :D Let me know when this is ready to look into again. |
Actually, I just triggered a segfault by clicking through the available font faces. I'll see if this is the same one (need to recompile so python's unicode matches my debugger...) |
Ok, cool; let me know if you find anything. |
It is the same crash. Interesting, because the docs say face->size is always initialized for new fonts (and indeed, the freetype sources do this). I'll poke around a bit and see what I can find. |
Found the issue: The FreeType library sets Then we query the kerning information, and an unguarded dereference of I'm going to put this back on the backburner for now. I have some pending changes to VTK that add DPI awareness to the toolkit, and part of these changes involve rewriting how we access cached font faces. The new implementation actually looks up FT_Size objects in the cache (rather than faces), so we will definitely have valid sizes after that change lands. I just got the greenlight to work on that feature again, and I should have this in upstream VTK within a few weeks. After that, we can bump VTK/uvcdat-master and this problem should disappear. I'll leave this bug open so I remember to test then.... |
Cool! When I did my spelunking, that was my best guess as to the root cause. |
@chaosphere2112 should we close that? |
@dlonie Did the fix get merged into VTK? |
@chaosphere2112 It did. Want to try removing your workaround and make sure it's working? CDAT/VTK@07e728b is the patch that should fix it. |
Yup, I'll give this a test and report back. |
Fixed by #1514 |
When you edit a text object and rotate it to somewhere around 311 degrees and open the font menu, we segfault.
Discussion on #1081
The text was updated successfully, but these errors were encountered: