Answered
Getting error in Compose call
In the latest Gumbo release 5022, using TLF, I am getting the
following error after I call compose...
Error: Error #2175: One or more elements of the content of the TextBlock has a null ElementFormat.
at flash.text.engine::TextBlock/DoCreateTextLine()
at flash.text.engine::TextBlock/createTextLine()
at flashx.textLayout.compose::ComposeState/createTextLine()
at flashx.textLayout.compose::ComposeState/composeNextLine()
at flashx.textLayout.compose::BaseCompose/composeParagraphElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeInternal()
at flashx.textLayout.compose::ComposeState/composeInternal()
at flashx.textLayout.compose::BaseCompose/composeTextFlow()
at flashx.textLayout.compose::ComposeState/composeTextFlow()
at flashx.textLayout.compose::StandardFlowComposer/ http://ns.adobe.com/textLayout/internal/2008::callTheComposer()
at flashx.textLayout.compose::StandardFlowComposer/internalCompose()
at flashx.textLayout.compose::StandardFlowComposer/compose()
When I look at the container, prior to the call, it has a content length of 0, so maybe this is a proper error. Still, I am switching over from the previous TLF format API (Container/Paragraph/Character to TextLayoutFormat), and I get this error where I never did previously.
From a code standpoint, I am essentially uising the recomputeContainers function from the Pagination Example that has been on your blog for a while, it loops to create 10 containers at a time, then compose call is made, and this process happens until the full content has been composed. This loop works a few times, but then around the 4th time (I have 30 pages and 40 controllers), I get the error on the call to compose.
My migration was not very creative, I simply found everywhere that I was using the previous format APIs and changed them to the TextLayoutFormat. Additionally, I am doing a significant TextFilter.import call from markup of which I did not make any changes to for the migration (do i need to?) at all.
Is there something in the migration step that I am missing, or is there a specific reason why Compose generates this exception now versus previous releases of Vellum/
Thanks for you attention to this,
Tim
Error: Error #2175: One or more elements of the content of the TextBlock has a null ElementFormat.
at flash.text.engine::TextBlock/DoCreateTextLine()
at flash.text.engine::TextBlock/createTextLine()
at flashx.textLayout.compose::ComposeState/createTextLine()
at flashx.textLayout.compose::ComposeState/composeNextLine()
at flashx.textLayout.compose::BaseCompose/composeParagraphElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeBlockElement()
at flashx.textLayout.compose::BaseCompose/composeInternal()
at flashx.textLayout.compose::ComposeState/composeInternal()
at flashx.textLayout.compose::BaseCompose/composeTextFlow()
at flashx.textLayout.compose::ComposeState/composeTextFlow()
at flashx.textLayout.compose::StandardFlowComposer/ http://ns.adobe.com/textLayout/internal/2008::callTheComposer()
at flashx.textLayout.compose::StandardFlowComposer/internalCompose()
at flashx.textLayout.compose::StandardFlowComposer/compose()
When I look at the container, prior to the call, it has a content length of 0, so maybe this is a proper error. Still, I am switching over from the previous TLF format API (Container/Paragraph/Character to TextLayoutFormat), and I get this error where I never did previously.
From a code standpoint, I am essentially uising the recomputeContainers function from the Pagination Example that has been on your blog for a while, it loops to create 10 containers at a time, then compose call is made, and this process happens until the full content has been composed. This loop works a few times, but then around the 4th time (I have 30 pages and 40 controllers), I get the error on the call to compose.
My migration was not very creative, I simply found everywhere that I was using the previous format APIs and changed them to the TextLayoutFormat. Additionally, I am doing a significant TextFilter.import call from markup of which I did not make any changes to for the migration (do i need to?) at all.
Is there something in the migration step that I am missing, or is there a specific reason why Compose generates this exception now versus previous releases of Vellum/
Thanks for you attention to this,
Tim
