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 paatz04 · Dec 16, 2013 at 09:03 PM · androidcrashassetbundlewwwsignal11

Loading multiple Assetbundles causes a Crash

Good evening,

I have the following problem: when I load an assetbundle, and then i unload everything from it and load another one and so on, mabye i only switch between 2 assetbundles the app after a while 20-30 trys on nexus 10 and a bit more on Nexus 5 crashs... but I have no Idea why....

First i thought it could be the Memory.. but i checked everything with the profiler and it looks ok. I get a Signal 11! This is a small part of it:

 #01 pc 003c9b38 /data/app-lib/com.xx.xx-1/libunity.so (std::basic_string<char, std::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)45, 16> >::operator=(char const*)+20)
 #02 pc 003ca314 /data/app-lib/com.xx.xx-1/libunity.so (MemoryProfiler::RegisterRootAllocation(void*, BaseAllocator*, char const*, char const*)+108) 
 #03 pc 000b2958 /data/app-lib/com.xx.xx-1/libunity.so (set_root_allocation(void*, MemLabelId, char const*, char const*)+72)
 #04 pc 001e0454 /data/app-lib/com.xx.xx-1/libunity.so (WWW::FeedUnityWebStream(bool)+480) 
 #05 pc 004b4d34 /data/app-lib/com.xx.xx-1/libunity.so (AndroidWWW::ReadCallback(void*, void*, int, void*, int)+200)

Thanks

Comment
Add comment · Show 7
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 paatz04 · Dec 16, 2013 at 08:50 PM 0
Share

i tryed to reproduce this with 2 assetbundles with a cube and a sphere, but there after 200-300 trys nothing happend.

It crashs using 10-15mb big Assetbundles with shader, materials, textures and meshes with gameojbects and so on.

I'm using Unity 4.2.0f4 and a Android 4.4.2

avatar image JChilton · Dec 16, 2013 at 09:09 PM 0
Share

Are you properly unloading and garbage collecting everything? If you're just using a straight loop, you may have to throw a System.GC.Collect() in there to force it to clear up leftover assets.

avatar image paatz04 · Dec 17, 2013 at 06:43 AM 0
Share

Thanks a lot for your tipp. Im not using collect yet, i will post a snippet of my routine and try to use collect. Thanks a lot

avatar image paatz04 · Dec 17, 2013 at 05:12 PM 0
Share

i tried to add the Collect, but it is still crashing. Im Loading the Assetbundle in a Courutine... but that shoudent be the problem. Thanks anyway

avatar image paatz04 · Dec 17, 2013 at 05:34 PM 0
Share

This is the error i get on my Nexus 10 Device at the moment the Application crashes... no Fingertip.. no signal 11 just this:

D/ExynosCameraHAL2( 122): (m_sensorThreadFunc): scp frame drop1 request_scp(1 t o 0) W/CameraService( 122): Disconnecting camera client 0xb8431550 since the binder for it died (this pid 122) W/InputDispatcher( 442): channel '41d26150 com.xxxxxxx.xxxxxxxx/com.qualcomm.Q CARUnityPlayer.QCARPlayerNativeActivity (server)' ~ Consumer closed input channe l or an error occurred. events=0x9 E/InputDispatcher( 442): channel '41d26150 com.xxxxxxxx.xxxxxxxx/com.qualcomm.Q CARUnityPlayer.QCARPlayerNativeActivity (server)' ~ Channel is unrecoverably bro ken and will be disposed! I/Activity$$anonymous$$anager( 442): Process com.xxxxxxxx.xxxxxx(pid 22777) has died. I/WindowState( 442): WIN DEATH: Window{41d26150 u0 com.xxxxxxxx.xxxxxxxxx/com.qu alcomm.QCARUnityPlayer.QCARPlayerNativeActivity} W/InputDispatcher( 442): Attempted to unregister already unregistered input cha nnel '41d26150 com.xxxxxxxx.xxxxxxxx/com.qualcomm.QCARUnityPlayer.QCARPlayerNati veActivity (server)' E/Surface ( 122): queueBuffer: error queuing buffer to SurfaceTexture, -32 W/Activity$$anonymous$$anager( 442): Force removing ActivityRecord{41c9cda0 u0 com.xxxxxxx .xxxxxxx/com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity t71}: app died, no saved state

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Simbraska · Dec 17, 2014 at 08:28 AM

Had exact same issue on our game. We were loading/unloading about 15MB of assetbundle per level, and unity client crashes frequently(depending one device, galaxy s4 lasts about 15 levels, nexus 7 lasts about 35 levels). Log indicates "signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000" and . Spent almost 100 engineering hours trying to find the issue. It finally comes down to replace "new WWW() " with "WWW.LoadFromCacheOrDownload()". It's apparently a Unity bug but they refused to fix it.

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

22 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

Related Questions

Android crash when using www load/unload frequently 0 Answers

crash on android devices (unity 4.6f1) 2 Answers

Unity3D Android plugins and SIGSEGV 0 Answers

webplayer crash when use www download assetbundle 0 Answers

[ANDROID] signal 11 (SIGSEGV) ON ANDROID 8.0/8.1 WHEN PLAYING GOOGLE INTERSTITIAL/VIDEO AD 2 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