首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >闪存加载失败:

闪存加载失败:
EN

Stack Overflow用户
提问于 2013-07-03 00:09:04
回答 1查看 561关注 0票数 0

我已经使用Unity3D构建了一个Flash文件。Flash文件偶尔无法加载到网页上。这种行为在web浏览器和操作系统之间是零星的。例如,我只在Mac上使用Google Chrome时看到过这种行为。其他报告声称,这种行为在Windows上的不同浏览器中都会发生。我想知道这是不是内部错误。

在视图区域的左上角,我收到一个Fatal error: "null" in a red background

来自Flash Player内容调试器的反馈显示了以下所有内容:

代码语言:javascript
运行
复制
Fatal Error : ArgumentError: Error #3672: Buffer creation failed. Internal error.
at flash.display3D::Context3D/createVertexBuffer()
at com.unity::UnityNative$/Ext_Stage3D_Create_VertexBuffer()
at com.unity::UnityNative$/_ZN14GfxMolehillVBO16UpdateVertexDataERK16VertexBufferData()
at com.unity::UnityNative$/_ZN4Mesh15CreateSharedVBOEm()
at com.unity::UnityNative$/_ZN4Mesh12GetSharedVBOEm()
at com.unity::UnityNative$/_ZN8DrawUtil11DrawMeshRawERKN9ShaderLab14ChannelAssignsER4Meshi()
at com.unity::UnityNative$/_ZThn28_N12MeshRenderer6RenderEiRKN9ShaderLab14ChannelAssignsE()
at com.unity::UnityNative$/_ZN13BatchRenderer5FlushEv()
at com.unity::UnityNative$/_Z25DoForwardShaderRenderLoopR23ForwardShaderRenderLoopR17RenderLoopContextR13dynamic_arrayI16RenderObjectDataLj4EL18MemLabelIdentifier52EEbbP13RenderTextureb()
at com.unity::UnityNative$/_Z12DoRenderLoopR10RenderLoop13RenderingPathRSt6vectorI11VisibleNodeSaIS3_EEbP6ShaderRKSs()
at com.unity::UnityNative$/_ZN6Camera6RenderEiP6ShaderRKSs()
at com.unity::UnityNative$/_ZN13RenderManager13RenderCamerasEv()
at com.unity::UnityNative$/NativeExt_PlayerLoop()
at com.unity::UnityContentInternal/playerLoop()
at com.unity::UnityContent/onEnterFrame()

一个load后来提供了这个反馈:

代码语言:javascript
运行
复制
Fatal Error : Error: Error #1000: The system is out of memory.
at flash.utils::ByteArray/set length()
at com.unity::UnityNative$/sbrk()
at com.unity::UnityNative$/malloc()
at com.unity::UnityNative$/_ZN21UnityDefaultAllocatorI17LowLevelAllocatorE8AllocateEji()
at com.unity::UnityNative$/_ZN13MemoryManager8AllocateEji10MemLabelIdiPKci()
at com.unity::UnityNative$/_Z15malloc_internalji10MemLabelIdiPKci()
at com.unity::UnityNative$/_ZN9Texture2D8TransferI18StreamedBinaryReadILb0EEEEvRT_()
at com.unity::UnityNative$/_ZN9Texture2D23VirtualRedirectTransferER18StreamedBinaryReadILb0EE()
at com.unity::UnityNative$/_ZN14SerializedFile10ReadObjectEli18ObjectCreationModebPP8TypeTreePbPP6Object()
at com.unity::UnityNative$/_ZN17PersistentManager26LoadFileCompletelyThreadedERKSsPlS2_ibP12LoadProgress()
at com.unity::UnityNative$/_ZN21PreloadLevelOperation7PerformEv()
at com.unity::UnityNative$/_ZN14PreloadManager26UpdatePreloadingSingleStepEb()
at com.unity::UnityNative$/NativeExt_LoadFirstLevel()
at com.unity::UnityContentInternal/loadFirstLevel()
at com.unity::UnityContent/onFrameInitStep()
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-03 00:15:00

在收到一个不同的区域后,我意识到我的Flash文件是一个大内存占用大量内存的。我已经将问题的根源缩小为纹理问题。

在我的例子中,有几个纹理组成了一个3D球体,每个纹理的大小大约为2MB。我把每个纹理压缩到100KB以下。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17430463

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档