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 jjennings1990 · Mar 21, 2014 at 07:17 PM · androidcrashmemory

Limit on the amount of data I can store on Android Devices?

Hello I am working on a project available for android devices and in this project we save a large amount of data .

Basically we record and objects movements and save it so that the user can come back and review the playback later . We are trying to optimize our save data but currently we are recording roughly 4 MB's data for every 30 seconds of recording .

The purpose of saying that is i am seeing a pattern that when I save a certain amount of data ( 12 MB's on on the HTC 1X and 36 MB's on the MOTO G) my apps stop opening and DDMS is telling me that the app is crashing with a memory error .

I checked to make sure the act of saving isn't crashing and when i don't approach the memory thresholds I am seeing the app is fine but once too much data is saved the app starts crashing on load and when i erase the app data I can open the project again .

So I have come to ask two questions , has anyone else experienced this before ? and are there any suggestions on how I can fix this issue ?

the big head scratcher is the fact that though I save all of this data I don't load it into memory unless the player goes through the Load data flow , if that's the case why would the app throw a memory error for data that is not even referred to at start up ?

Comment
Add comment · Show 2
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 ShadoX · Mar 21, 2014 at 08:45 PM 0
Share

Probably would help if you'd tell us what kind of data you are storing and how much. At those sizes that you mentioned I'd imagine you saving the position of an object every second, and a bunch of other data .. so my guess would be to not do something like that and just store every important part and do the rest via code..

An example would be moving a character - just store what the player us doing at that moment and for how long.. on a PC it would mean something like:

hold W for 30 seconds - so you'd just save that as 1 line in the file and then read it and do exactly what the line says.. do an action according to the W key for 30 seconds.

Only problem with this would probably be physics as they might generate a lot more data than simple player input.

avatar image jjennings1990 · Mar 21, 2014 at 10:30 PM 0
Share

you are very right I am recording the position every second , unfortunately I don't know of any way to fix it for my particular case because our project is a very physics based mobile experience so the input is through touch interactions . Thankfully the largest amount of recorded data aside from the audio files is this list of position vectors but this list get's very large very quickly .

I can try to research the best way to implement a solution like what you mentioned though , I hadn't thought to do that before .

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

21 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

HELP!! My Unity Crashed and scenes and objects are gone 1 Answer

Restarting UnityPlayer inside of Android activity 0 Answers

unity main crash 0 Answers

Game crash after splash screen (Unity Logo showup-than crash) 1 Answer

My mobile game crashes once a certain number of textures have been loaded. What can I do about that? 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