# The Jucer bug

**URL:** <https://forum.juce.com/t/the-jucer-bug/8179>\
**Category:** General JUCE discussion\
**Created:** [February 22, 2012, 5:23pm UTC](https://forum.juce.com/t/the-jucer-bug/8179 "2012-02-22T17:23:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xavi](https://avatars.discourse-cdn.com/v4/letter/x/8e8cbc/32.png) [@Xavi](https://forum.juce.com/u/Xavi)\
**Post date:** [February 22, 2012, 5:23pm UTC](https://forum.juce.com/t/the-jucer-bug/8179/1 "2012-02-22T17:23:16Z")

</div>

I’ve compiled The Jucer with the latest sources and there’s a bug resizing the preferences window (about).  
juce\_Range.h, line 63, pointer invalid. But the problem comes from class TokenList, line 357 file juce\_TextLayout.cpp, currentRun pointer is null.

I only tested this on XP Pro SP3.

Stack:

> Jucer.exe!juce::Range::operator=(const juce::Range & other) Line 63 + 0x8 bytes C++  
> Jucer.exe!juce::TextLayoutHelpers::TokenList::addRun(juce::TextLayout::Line \* glyphLine, juce::TextLayout::Run \* glyphRun, const juce::TextLayoutHelpers::Token \* const t, const int start, const int end) Line 392 + 0x22 bytes C++  
> Jucer.exe!juce::TextLayoutHelpers::TokenList::createLayout(const juce::AttributedString & text, juce::TextLayout & layout) Line 357 + 0x23 bytes C++  
> Jucer.exe!juce::TextLayout::createStandardLayout(const juce::AttributedString & text) Line 601 C++  
> Jucer.exe!juce::TextLayout::createLayout(const juce::AttributedString & text, float maxWidth) Line 235 C++  
> Jucer.exe!juce::AttributedString::draw(juce::Graphics & g, const juce::Rectangle & area) Line 215 C++  
> Jucer.exe!AboutPage::paint(juce::Graphics & g) Line 91 + 0x80 bytes C++  
> Jucer.exe!juce::Component::paintComponentAndChildren(juce::Graphics & g) Line 1888 C++  
> Jucer.exe!juce::Component::paintEntireComponent(juce::Graphics & g, const bool ignoreAlphaLevel) Line 1976 C++  
> Jucer.exe!juce::Component::paintWithinParentContext(juce::Graphics & g) Line 1870 C++  
> Jucer.exe!juce::Component::paintComponentAndChildren(juce::Graphics & g) Line 1934 C++  
> Jucer.exe!juce::Component::paintEntireComponent(juce::Graphics & g, const bool ignoreAlphaLevel) Line 1976 C++  
> Jucer.exe!juce::Component::paintWithinParentContext(juce::Graphics & g) Line 1870 C++  
> Jucer.exe!juce::Component::paintComponentAndChildren(juce::Graphics & g) Line 1934 C++  
> Jucer.exe!juce::Component::paintEntireComponent(juce::Graphics & g, const bool ignoreAlphaLevel) Line 1976 C++  
> Jucer.exe!juce::ComponentPeer::handlePaint(juce::LowLevelGraphicsContext & contextToPaintTo) Line 136 C++  
> Jucer.exe!juce::HWNDComponentPeer::handlePaintMessage() Line 1492 C++  
> Jucer.exe!juce::HWNDComponentPeer::peerWindowProc(HWND\_\_ \* h, unsigned int message, unsigned int wParam, long lParam) Line 2155 C++  
> Jucer.exe!juce::HWNDComponentPeer::windowProc(HWND\_\_ \* h, unsigned int message, unsigned int wParam, long lParam) Line 2107 + 0x18 bytes C++  
> user32.dll!7e398734()   
> [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]   
> user32.dll!7e398816()   
> user32.dll!7e3a8ea0()   
> user32.dll!7e3a8eec()   
> ntdll.dll!7c91e453()   
> user32.dll!7e3994d2()   
> user32.dll!7e3a8f10()   
> user32.dll!7e399402()   
> user32.dll!7e3991f1()   
> ntdll.dll!7c9233f6()   
> Jucer.exe!\_ismbblead(unsigned int tst) Line 172 + 0xf bytes C++

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 23, 2012, 1:42pm UTC](https://forum.juce.com/t/the-jucer-bug/8179/2 "2012-02-23T13:42:45Z")

</div>

Thanks! Should be fixed now.
