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 /
  • Help Room /
avatar image
0
Question by Phiru · Sep 23, 2016 at 09:26 PM · loadfromcacheordownload

www.LoadFromCacheOrDonwload Crash on Android!!!

I'm using Unity 5.3.5f1 Personal Edition.

I made sort of a patch system by using AssetbundleManager(https://www.assetstore.unity3d.com/kr/#!/content/45836).

And everything seems to work well.

However, some android phone ( in this case, i tested it on LG GPad 4.0) says an error on a certain assetbundle.

These are my steps.

  1. Download ManifestFile which contains assetbundes' info.

  2. Call www.LoadFromCashOrDownload.

And here's my code. ( I have about 50 asset bundles.)

  for (int nIndex = 0; nIndex < m_lDownloadList.Count; nIndex++)
 {
     Debug.Log("###############1" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
 
     while (Caching.ready == false)
         yield return null;
     Debug.Log("###############2" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
     WWW www = WWW.LoadFromCacheOrDownload(GetCDNBasicURL() + m_lDownloadList[nIndex], m_cManifest.GetAssetBundleHash(m_lDownloadList[nIndex]));            
             
     while (www.isDone == false)
     {
         yield return null;
     }
     Debug.Log("###############3" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
     if (!string.IsNullOrEmpty(www.error))
     {                
         Debug.Log("PcAssetBundleManager] IEDownloadManifest() - Download manifest has an error : " + www.error.ToString());
         www.Dispose();
         yield break;
     }            
     Debug.Log("###############4" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
     AssetBundle bundle = www.assetBundle;
     if ( bundle != null )
     {
         Debug.Log("###############5" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
         bundle.Unload( false );
     }
             
     Debug.Log("###############6" + GetCDNBasicURL() + m_lDownloadList[nIndex] );
 
     www.Dispose();
 }

When I download about 15 assetbundles, then it crashed right after WWW.LoadFromCacheOrDownload function. I can say it because I put the logs.

And here's crash log.

 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37): com.phiru.speedtapper
 I Unity   : : com.phiru.speedtapper
 D libc    : getaddrinfo called from pid =19407: com.phiru.speedtapper
 I Vold    : [LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0: /system/bin/vold
 I Vold    : [LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0: /system/bin/vold
 I Vold    : [LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0: /system/bin/vold
 F libc    : invalid address or address of corrupt block 0x66e6f020 passed to try_realloc_chunk: com.phiru.speedtapper
 F libc    : Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 19435 (AsyncReadManage): com.phiru.speedtapper
 I ThermalEngine: Sensor:pa_therm1:47000 mC: /system/bin/thermal-engine
 I ThermalEngine: Sensor:pa_therm1:47000 mC: /system/bin/thermal-engine
 I ThermalEngine: TM Id 'MONITOR_BATTERY' Sensor 'pa_therm1' - alarm raised 1 at 47.0 degC: /system/bin/thermal-engine
 I ThermalEngine: ACTION: BATTERY - Setting battery charging mitigation to 1100: /system/bin/thermal-engine
 I ThermalEngine: Mitigation:Battery:1100: /system/bin/thermal-engine

Did I do something wrong?

Please help me out :(

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
1
Best Answer

Answer by alejandro-unity · Nov 04, 2016 at 11:45 PM

Do you have the full log file ?

Comment
Add comment · Show 2 · 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 alejandro-unity ♦♦ · Nov 04, 2016 at 11:46 PM 0
Share

Or the call-stack ?

avatar image Phiru · Nov 06, 2016 at 04:40 PM 0
Share

Thank you for reply. I don't have the full log file now. And I found one of my asset bundles make my game crashed. So i just removed that asset bundle and it works fine. but i really want to know why the asset bundle is abnormal. When I make the full log file, i will attach it.

avatar image
0

Answer by keht-ns · Oct 09, 2017 at 11:15 AM

Similar problem for me on loading cached asset bundle using www.LoadFromCacheOrDownload:

 10-12 13:30:43.100 ? A/libc: invalid address or address of corrupt block 0x86aba020 passed to try_realloc_chunk
 10-12 13:30:43.100 ? A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 22917 (AsyncReadManage)
 10-12 13:30:43.150 ? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 10-12 13:30:43.160 ? I/DEBUG: Build fingerprint: 'google/occam/mako:4.4.2/KOT49H/937116:user/release-keys'
 10-12 13:30:43.160 ? I/DEBUG: Revision: '11'
 10-12 13:30:43.160 ? I/DEBUG: pid: 22788, tid: 22917, name: AsyncReadManage  >>> com.bigfishgames.robinhoodlegendsgooglef2p <<<
 10-12 13:30:43.160 ? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
 10-12 13:30:43.160 ? I/DEBUG: Abort message: 'invalid address or address of corrupt block 0x86aba020 passed to try_realloc_chunk'

Reproducible only on few Android devices (Nexus 4, Redmi 3 are affected). iOS version works without any problems.

The crash was disappeared after I set Caching.compressionEnabled to FALSE

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

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

Related Questions

AssetBundle LoadAsset and LoadAssetAsync causes brief lag or frame loss 1 Answer

How do I retreive the cached assetbundles??~!!! 0 Answers

LoadFromCacheOrDownload. 0 Answers

Encapsulating scenes in Adressables to reduce loading times in Web GL 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