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 sili1771 · Aug 27, 2014 at 10:50 AM · xcodeexc_bad_access

EXC_BAD_ACCESS IN X-CODE AT CODE LINE "RESOURCES.LOAD<>()"

I have add @2x pictures to my project and change player settings for ios (Target OS version, stripping lvl, Script call optimization) after that I was trying to run the Game on Ipad and... "EXC_BAD_ACCESS". Everything works fine in Unity. I was trying to go back to oldest player settings - and still nothing. By using Debug.log i track the line where bug was: "Resources.load(path)" i check the path, it was correct, I was trying to use "Resources.load(path,typeof(TextAsset) as TextAsset" - still nothing. So... i just erase that line and... next bug at line "Startcoroutine(Function)" Propably in this "Function" is more "Resources.Load<>()" cals...

I have no idea what is going on, please help -_-

EDIT: (Here is first bug)
string[] str = Resources.Load("Localization/loc "+language+"/localizable").text.Split(";"); the path is good - it works fine in unity.

Comment
Add comment · Show 6
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 sili1771 · Aug 27, 2014 at 09:34 AM 0
Share

EDIT: (Here is first bug) string[] str = Resources.Load("Localization/loc "+language+"/localizable").text.Split(";"); the path is good - it works fine in unity.

avatar image sili1771 · Aug 27, 2014 at 12:47 PM 0
Share

alt text

screenshot 2014-08-27 14.42.38.png (282.5 kB)
avatar image sili1771 · Aug 27, 2014 at 12:57 PM 0
Share

TIP: $$anonymous$$eybe its a problem with project size - i add a @2x textures (textures with double res for retina display), so project size is now double - can it be problem with "Resources.Load<>()"?

avatar image smoggach · Aug 27, 2014 at 01:28 PM 0
Share

Yes this can be a problem. Once you create a build go into the data folder of the build and look at your Resources.assets file. If it's anywhere around 2gb then it's probably corrupt. This can happen if the total memory taken up by every asset in the resources folder (after importing) is greater than unity and xcode are allowed to have at once.

avatar image sili1771 · Aug 27, 2014 at 01:48 PM 0
Share

resources.assets (in iOS build folder) size is 1GB

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by smoggach · Aug 27, 2014 at 01:51 PM

That SHOULD be okay but I don't know how much RAM your computer has. I'd recommend using StreamingAssets or AssetBundles instead. Maybe one day Unity will break Resources.assets into smaller pieces.

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 sili1771 · Aug 27, 2014 at 02:05 PM 0
Share

thx it think the S$$anonymous$$$$anonymous$$gAssets could solve the problem

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Xcode build & run "innocent" (?) problem 0 Answers

EXEC_BAD_ACCESS question 2 Answers

Strange behavior while running in Xcode: error only when "Development Build" is unchecked 0 Answers

EXC Bad Access In Xcode but runs fine in Unity. iPhone 1 Answer

EXC_BAD_ACCESS on try/catch block 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