what does this mean?

Software: Away3D 4.x

alpoman, Jr. Member
Posted: 08 March 2016 02:01 AM   Total Posts: 40

here is my error, maybe someone can help….

Error: Error #3691: Resource limit for this resource type exceeded.
at flash.display3D::Context3D/createVertexBuffer()
at away3d.core.base::SubGeometry/activateVertexBuffer()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/base/SubGeometry.as:75]
at away3d.core.base::SubMesh/activateVertexBuffer()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/base/SubMesh.as:187]
at away3d.materials.passes::OutlinePass/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/materials/passes/OutlinePass.as:213]
at away3d.materials::MaterialBase/renderPass()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/materials/MaterialBase.as:443]
at away3d.core.render::DefaultRenderer/drawRenderables()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:224]
at away3d.core.render::DefaultRenderer/draw()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:117]
at away3d.core.render::RendererBase/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:281]
at away3d.core.render::DefaultRenderer/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:62]
at away3d.core.render::RendererBase/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:245]
at away3d.containers::View3D/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/containers/View3D.as:696]
at gridmaker6d_fla::MainTimeline/proxyonEnterFrame()[gridmaker6d_fla.MainTimeline::frame1:1680]


I get this when I create 100 cubes, put them into a 3dcontainer, remove them all, and re-populate.  This error occurs after 9 times of repopulating.
I think its a memory thing, but I’ thought I was clearing the meshes correctly.  Can someone look at my code to see if I am removing things right?

thanks in advance,

andy


and my code to remove cubes…...


try{
while (my3dContainer.numChildren != 0)
{
my3dContainer.getChildAt(0).dispose()
my3dContainer.removeChildAt(0);
}

} catch(e:Error){
}

my3dContainer.dispose()

try{
view.scene.removeChild(my3dContainer)
} catch(e:Error){
}

cardContainer=null

   

therealloft, Member
Posted: 08 March 2016 03:02 AM   Total Posts: 65   [ # 1 ]

yeah its a memory issue cos air only 32bit platform as stated on the 1st line Error: Error #3691: Resource limit for this resource type exceeded.
keep running in to this myself waiting for adobe to create 64bit versions

   

rdoi, Member
Posted: 08 March 2016 05:38 PM   Total Posts: 86   [ # 2 ]

Probably you having a memory leak.

Disposing just the mesh doesn’t dispose the assets assigned to it (material, textures, methods, etc). You may be recreating them all the time unnecessarily when you just could share them.

Just check in profiler/scout if you are handling all the related assets correctly.

   

alpoman, Jr. Member
Posted: 08 March 2016 08:30 PM   Total Posts: 40   [ # 3 ]

thanks everyone, it is a problem with cloning a material with an outline method effect applied.  i removed it and bug is gone.  i suppose i will have to remove those methods before i respawn everything.  thanks again, i hope this info helps someone else seeing this.

andy

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X