# Font::getStringWidth on non-message thread

**URL:** <https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853>\
**Category:** General JUCE discussion\
**Created:** [February 6, 2017, 2:58pm UTC](https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853 "2017-02-06T14:58:43Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [May 18, 2018, 1:22pm UTC](https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853/21 "2018-05-18T13:22:16Z")

</div>

Bump too, just got that jassert issue because I was doing some background rendering

---

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [May 23, 2020, 6:45pm UTC](https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853/22 "2020-05-23T18:45:47Z")

</div>

So I just ran into this assert while debugging under Catalina and XCode 11.5

The odd thing it’s showing in the call stack for a worker thread which isn’t blocking the Message Thread… and it’s happening by the main Document Window trying to repaint the title bar in Standalone.

The problem is that MessageManager::getInstanceWithoutCreating() is returning nullptr

It’s impossible to debug properly since Xcode is showing some weird stuff when trying to look at the MessageManager class values… it thinks it’s a Timer Thread??

The same code in XCode 9.4.1 under Mojave never hits the assertions.

Rail

---

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [February 7, 2021, 10:15pm UTC](https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853/23 "2021-02-07T22:15:55Z")

</div>

I’m gonna bump this… since it’s still hitting this assert (when it shouldn’t)

[Previous page](https://forum.juce.com/t/font-getstringwidth-on-non-message-thread/20853.md?page=1)
