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 Orly · Mar 12, 2013 at 05:13 PM · androidaudioeclipse

Unity Android -> ADT (Eclipse) Assets are corrupted ?

When exporting an Eclipse layered project from Unity (v4.0.1) of my game I get some strange bugs that don't happen in the editor that make the game unplayable. (animations don't advance, neither does gameplay etc.).

I checked the logcat and the most serious error that I can see is something like as follows :

03-12 11:59:58.170: E/Unity(20839): The file '/data/app/com.acompany.agame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again! 03-12 11:59:58.170: E/Unity(20839): [Position out of bounds! 120381268 > 116722232] 03-12 11:59:58.170: E/Unity(20839):
03-12 11:59:58.170: E/Unity(20839): (Filename: Runtime/Serialize/CacheWrap.cpp Line: 269) 03-12 11:59:58.175: E/Unity(20839): Mismatched serialization in the builtin class 'AudioClip'. (Read 52 bytes but expected 56 bytes) 03-12 11:59:58.175: E/Unity(20839):
03-12 11:59:58.175: E/Unity(20839): (Filename: Runtime/Serialize/SerializedFile.cpp Line: 1148) 03-12 11:59:59.135: E/Unity(20839): The file '/data/app/com.acompany.agame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again! 03-12 11:59:59.135: E/Unity(20839): [Position out of bounds! 118433732 > 117002376] 03-12 11:59:59.135: E/Unity(20839):
03-12 11:59:59.135: E/Unity(20839): (Filename: Runtime/Serialize/CacheWrap.cpp Line: 269) 03-12 11:59:59.135: E/Unity(20839): Mismatched serialization in the builtin class 'AudioClip'. (Read 44 bytes but expected 48 bytes) 03-12 11:59:59.135: E/Unity(20839):
03-12 11:59:59.135: E/Unity(20839): (Filename: Runtime/Serialize/SerializedFile.cpp Line: 1148)

Anybody had similar problems ? Why would assets get corrupted like this ?

Following on from this error, I then get the side-effect :

03-12 16:54:39.380: W/Unity(4283): Audio could not be started! 03-12 16:54:39.380: W/Unity(4283):
03-12 16:54:39.380: W/Unity(4283): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Orly · Mar 13, 2013 at 11:42 AM

Following on from this. I have some success with Unity 4.0.1 and the export of an Eclipse project -> imported into ADT as follows (I'm including these exact steps because I couldn't find exact instructions myself) :

  • From Build Settings dialog in Unity select 'Create Eclipse project Layer' and then export somewhere away from the ADT workspace.

  • Open ADT and select Import -> 'Existing projects into workspace' WITHOUT copying the files to the workspace. [Note : I assume copying into workspace doesn't work because of a relative path or Symlink issue...guess].

  • Right-click on your project and select Run As->Android Application.

The corruption problem that I had above went away when I decompressed all of the audio files into memory but I'll have to try compressing again because that is too much.

From experience, what are the best practises for Android audio settings ? Assuming the game will only run on more capable devices (512mb RAM+).

Comment
Add comment · Show 1 · Share
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 Orly · Mar 13, 2013 at 12:38 PM 0
Share

Ultimately reimporting the audio assets fixed the corruption problem.

avatar image
0

Answer by dylanfries · Jun 14, 2013 at 06:43 PM

This is usually because of naming conflicts, so if you have a script called Blah.js and a script called Blah.cs in the same project directory it'll do this when you build. Look for imported script packs or old scripts hanging around. Good luck!

Comment
Add comment · Share
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

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

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

When exporting android project to an eclipse project the music doesn't export 0 Answers

I Need a script for a guitexture enableing a spotlight and play a sound when pressed 1 Answer

using NAudio library with Android to play Icecast stream 0 Answers

[ANDROID]Set Java Plugin on Unity 0 Answers

Read audio/music currently playing on speakers? 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