Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Ovno · Apr 24, 2012 at 05:23 PM · bugcrashflashunity3.5

Flash: The file 'MemoryStream' is corrupted! when Instantiate CharacterMotor

Hi, I'm having a problem with the flash export in Unity 3.5

When running the game in the flash content debugger and I try and Instantiate a prefab containing a CharacterMotor component I get this message.

The file 'MemoryStream' is corrupted! Remove it and launch unity again!
[Position out of bounds!]
LogCallStackError
    at com.unity::UnityNative$/Ext_Flash_LogCallstack()
    at com.unity::UnityNative$/_Z17DebugStringToFilePKciS0_iiii()
    at com.unity::UnityNative$/_ZN12CachedReader16OutOfBoundsErrorEjj()
    at com.unity::UnityNative$/_ZN12CachedReader4ReadEPvj()
    at com.unity::UnityNative$/_ZN18StreamedBinaryReadILb0EE21TransferSTLStyleArrayI13dynamic_arrayI11KeyframeTplIfEEEEvRT_17TransferMetaFlags()
    at com.unity::UnityNative$/ReadAnimationCurveAndReturnPtr()
    at UnityEngine.Serialization::SerializedStateReader/ReadAnimationCurve()
    at global::CharacterMotorMovement/Deserialize()[C:\Users\Gick\Development\Unity Projects\FlashTest\Temp\StagingArea\Data\ConvertedDotNetCode\global\CharacterMotorMovement.as:66]
    at UnityEngine.Serialization::SerializedStateReader/ReadIDeserializable()
    at global::CharacterMotor/Deserialize()[C:\Users\Gick\Development\Unity Projects\FlashTest\Temp\StagingArea\Data\ConvertedDotNetCode\global\CharacterMotor.as:369]
    at UnityEngine.Serialization::ActionScriptDeserializer$/Deserialize()
    at com.unity::UnityNative$/Ext_DeserializeMonoBehaviour()
    at com.unity::UnityNative$/_ZN13MonoBehaviour23VirtualRedirectTransferER18StreamedBinaryReadILb0EE()
    at com.unity::UnityNative$/_ZL15CloneObjectImplP6ObjectR10vector_mapIllSt4lessIlE13stl_allocatorISt4pairIllEL18MemLabelIdentifier93ELi4EEE()
    at com.unity::UnityNative$/Object_CUSTOM_Internal_CloneSingle()
    at UnityEngine::_Object$/Object_Internal_CloneSingle_Object()
    at UnityEngine::_Object$/Object_Instantiate_Object()
    at global::Spawner/Spawner_Update()[C:\Users\Gick\Development\Unity Projects\FlashTest\Temp\StagingArea\Data\ConvertedDotNetCode\global\Spawner.as:22]
    at com.unity::UnityNative$/Ext_Flash_InvokeMethodOnObject()
    at com.unity::UnityNative$/_ZN13MonoBehaviour16CallUpdateMethodEi()
    at com.unity::UnityNative$/_ZN13MonoBehaviour6UpdateEv()
    at com.unity::UnityNative$/_ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv()
    at com.unity::UnityNative$/_ZN16BehaviourManager6UpdateEv()
    at com.unity::UnityNative$/_Z10PlayerLoopbb()
    at com.unity::UnityNative$/NativeExt_PlayerLoop()
    at com.unity::UnityContentInternal/playerLoop()
    at com.unity::UnityContent/onEnterFrame()

I'm planning on getting round it for now by creating all of the required CharacterMotor containing objects in the editor and then enabling them at run time but I would like a better solution.

Thanks in advance.

n.b. I've tried this in both c# and js, using the flash content debugger 11.2.

I've also created an example project (download here) showing the problem, you will need to build a swf and then run it in the content debugger...

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BlastOffProductions · May 23, 2016 at 09:38 PM 0
Share

Here is how I fixed it. Go to Build Settings, then Player Settings, select Other Settings, then go to Bundle Identifier. When you get there, delete the text that is in Bundle Identifier.

.alt text

helpdesktop.jpg (18.0 kB)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Hunting for gamecrashing bug, does disabling game objects and scripts mean they don't affect the game anymore? 1 Answer

Are coroutines freezing my game? 0 Answers

Stop Editor From Crashing 1 Answer

Unity freezes up completely without explanation 1 Answer

Unable to open existing project after crash 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges