CCTransitionFadeTR causes crash

App crashes after replacing scene about ~30 times with the following

node.Director.ReplaceScene(new CCTransitionFadeTR(0.75f, scene));

without the transition everything is fine (I stop trying to make it crash after ~300 ReplaceScene)

Stack Trace:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at SharpDX.ResultDescriptor.Find(Result result)
   at SharpDX.SharpDXException..ctor(Result result)
   at SharpDX.Result.CheckError()
   at SharpDX.Direct3D11.Device.CreateTexture2D(Texture2DDescription& descRef, DataBox[] initialDataRef, Texture2D texture2DOut)
   at Microsoft.Xna.Framework.Graphics.RenderTarget2D.GenerateIfRequired()
   at CocosSharp.CCDrawManager.CreateRenderTarget(Int32 width, Int32 height,

Happens on windows phone emulator and real device
Assuming memory isn't being properly freed somewhere, but I'm not sure what I'm missing

Best Answer


  • BenoitRenaudBenoitRenaud CAMember ✭✭
    edited December 2015

    It was version, on windows phone 8.1
    I tried on a new project (version / windows phone 8.1) and the problem still exist, although it would get to about ~100 page switch before it ran out of memory

    Should I be posting here or in github?

Sign In or Register to comment.