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

Answers

  • BenoitRenaudBenoitRenaud CAMember ✭✭
    edited December 2015

    It was version 1.6.2.0, on windows phone 8.1
    I tried on a new project (version 1.7.0.0 / 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?
    Thanks

Sign In or Register to comment.