<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scaleform Crash after many Invokes in Scaleform Forum (Read Only)</title>
    <link>https://forums.autodesk.com/t5/scaleform-forum-read-only/scaleform-crash-after-many-invokes/m-p/5605558#M3377</link>
    <description>&lt;P&gt;We are experiencing a random crash on Unity 4.5.3f3 using Scaleform 4.2.2 (which also happened on previous version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It happens after using Invoke too many times passing parameters, or doing .split to a string on the AS side, or creating/removing movieclips.&lt;/P&gt;&lt;P&gt;We narrowed to ANY swf (trying only one at the time) which receives a single String as parameter and doing a split to it or doing work with MovieClips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we found is that the game works for around 20/30 minutes before crashing, but what's interesting is that it crashes A LOT faster if we add a loop of 50 iterations to each Invoke we make.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It throws different typs of exceptions, but the simplest one which is just an Invoke and doing split of large string (1kb) causes this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(0x77E1E38A) (ntdll): (filename not available): TpCallbackMayRunLong + 0x228&lt;BR /&gt;(0x77DDE0D2) (ntdll): (filename not available): RtlAllocateHeap + 0xac&lt;BR /&gt;(0x7601EA43) (ole32): (filename not available): CoFreeUnusedLibrariesEx + 0x33e2&lt;BR /&gt;(0x7601EA5F) (ole32): (filename not available): CoTaskMemAlloc + 0x13&lt;BR /&gt;(0x1003C515) (mono): (filename not available): mono_get_method_constrained + 0x1b0e&lt;BR /&gt;(0x04741E20) (Mono JIT code): (filename not available): (wrapper managed-to-native) object:__icall_wrapper_mono_string_to_lpstr (object) + 0x28 (04741DF8 04741E47) [00844E70 - Unity Root Domain] + 0x0&lt;BR /&gt;(0x0A493548) (Mono JIT code): (filename not available): (wrapper managed-to-native) Scaleform.Value:SF_AllocateString (string,long) + 0x28 (0A493520 0A49358F) [00844E70 - Unity Root Domain] + 0x0&lt;BR /&gt;(0x0A4934F3) (Mono JIT code): (filename not available): Scaleform.Value:.ctor (string,long) + 0x1b (0A4934D8 0A493512) [00844E70 - Unity Root Domain] + 0x0&lt;BR /&gt;(0x0A490E5F) (Mono JIT code): (filename not available): Scaleform.Value:CreateValue (object) + 0x277 (0A490BE8 0A490F8A) [00844E70 - Unity Root Domain] + 0x0&lt;BR /&gt;(0x0A490B10) (Mono JIT code): (filename not available): Scaleform.Value:Serialize (object[]) + 0xc8 (0A490A48 0A490BBD) [00844E70 - Unity Root Domain] + 0x0&lt;BR /&gt;(0x0A49047A) (Mono JIT code): (filename not available): Scaleform.Value:Invoke (string,object[]) + 0x22 (0A490458 0A4904C5) [00844E70 - Unity Root Domain] + 0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: If you check the stack calls, there is a "&lt;SPAN&gt;F_AllocateString", which I assume is entirely related to this "split" call causing the crash. Probably it's not the split function that it's broken, but the memory managed by SF or maybe some memory leak or bad ptr when allocating memory, any memory.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 17:18:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-23T17:18:02Z</dc:date>
  </channel>
</rss>

