Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 aquilis007 · Aug 20, 2017 at 07:44 AM · exitram

Game closes unexpectedly

I'm creating a game in 2D, it runs perfect on devices with 1GB of RAM, but on lower devices, with 512 RAM the game starts but after seconds it closes alone.

I've already reduced the textures, maybe it might have something to do with tris or verts but I'm not sure.

My version is 2017.1.0f3, thanks any help possible.

EDIT: The fact is that my mobile device has 512 RAM and not my computer, when the game is played on my (cell phone) it happens that this problem of the game comes out inexpertly.

I already tested the game in 1GB RAM device and it did not give this problem, interesting to say that the design is light has 27 mb, there are no light effects, shadows, it also has background music.

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 fafase · Aug 20, 2017 at 11:26 AM 0
Share

If you run the app from xcode or Android Studio, you can use the IDE profiler in there.

avatar image aquilis007 · Aug 21, 2017 at 11:56 PM 0
Share

Personally I came back again, after exa$$anonymous$$ing the scripts through the Profile, and remove possible errors or bottlenecks, still the game closes after 7-15 seconds after being initialized in the android phone ..

Any other suggestions on this case? Thank you

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Aug 20, 2017 at 08:22 AM

Well, you're probably running out of memory but there really isn't enough information to be able to say more than that (and 512Mb is really a very small amount of memory - how many of your target devices only have that?).

You need to use the Profiler to determine where your memory is being allocated.

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 aquilis007 · Aug 21, 2017 at 01:36 AM 0
Share

It seems that I found the problem, I followed the comment of tanoshimi and when using Profiler I discovered that the allocated memory exceeded 590 $$anonymous$$b, due to a script that I am lapping to try to break this abuse of memory, I believe it is some loop in the code , Perhaps Time.deltaTime.

Thanks for the help, friends.

avatar image
0

Answer by aquilis007 · Aug 26, 2017 at 10:14 PM

Now I found the cause of this disorder, the big problem was that my cell that had this error of leaving the game alone, had some applications running, which consumed RAM of the device, consequently I had only a few free RAM's, which was not enough to run my game.

SOLUTION: Stop the application process that is not necessary, or it is not used in the background, (this can be done in the storage settings of the device), so it will free up memory space. Of course, remember that the less memory your Game need to run, less problem will have so I am working to further reduce weight in memory.

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

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

Related Questions

Using Tags with OnTriggerExit 3 Answers

[Solved] Exit scene OnCollisionEnter not working 2 Answers

How do I Stop a Function ? 2 Answers

Raycast, OnCollisionExit - most efficient way to get outcome or exit point on Collider? 1 Answer

How does Unity/Android use/manage SWAP and RAM files ? 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