- Home /
[Unity Preload][Unity 5.4.3] Crash when loading asset bundle on ios
Hi guys
I am facing critical problem when loading ios,my app was crashed as long as I load asset bundle.I hope guys help me.
I used LoadAssetAsync to load asset bundle and it threw this error :
#18. Crashed: UnityPreload
0 crossyroad 0xbc13c8 dense_hashtable<std::__1::pair<int const, AssetBundle::AssetInfo const*>, int, InstanceIDHashFunctor, dense_hash_map<int, AssetBundle::AssetInfo const*, InstanceIDHashFunctor, std::__1::equal_to<int>, stl_allocator<std::__1::pair<int const, AssetBundle::AssetInfo const*>, (MemLabelIdentifier)65, 16> >::SelectKey, std::__1::equal_to<int>, stl_allocator<std::__1::pair<int const, AssetBundle::AssetInfo const*>, (MemLabelIdentifier)65, 16> >::find_position(int const&) const (functional:659)
1 ??? 0x46826 (Missing)
2 crossyroad 0xbc12e5 dense_hashtable<std::__1::pair<int const, AssetBundle::AssetInfo const*>, int, InstanceIDHashFunctor, dense_hash_map<int, AssetBundle::AssetInfo const*, InstanceIDHashFunctor, std::__1::equal_to<int>, stl_allocator<std::__1::pair<int const, AssetBundle::AssetInfo const*>, (MemLabelIdentifier)65, 16> >::SelectKey, std::__1::equal_to<int>, stl_allocator<std::__1::pair<int const, AssetBundle::AssetInfo const*>, (MemLabelIdentifier)65, 16> >::find(int const&) const (densehashtable.h:710)
3 crossyroad 0xbbccf7 AssetBundle::GetPreloadData(int, dynamic_array<int, 4ul>&) const (densehashtable.h:270)
4 crossyroad 0xbc625d AssetBundleManager::CollectPreloadData(int, AssetBundle const*, std::__1::vector<ConstantString, std::__1::allocator<ConstantString> > const&, dynamic_array<int, 4ul>&) (AssetBundleManager.cpp:183)
5 crossyroad 0xbc6167 AssetBundleManager::CollectPreloadDataRecursively(AssetBundle const*, std::__1::vector<ConstantString, std::__1::allocator<ConstantString> > const&, dynamic_array<int, 4ul> const&, InstanceIDHashTable<AssetBundle::AssetInfo const*, std::__1::pair<int const, AssetBundle::AssetInfo const*> >&) (AssetBundleManager.cpp:215)
6 crossyroad 0xbc5e8f AssetBundleManager::CollectPreloadDataDependencies(AssetBundle const*, std::__1::vector<ConstantString, std::__1::allocator<ConstantString> > const&, bool, dynamic_array<int, 4ul>&) (AssetBundleManager.cpp:141)
7 crossyroad 0xbc2bad AssetBundleLoadAssetOperation::CollectFullPreloadDataDependencies(dynamic_array<int, 4ul>&) (AssetBundleLoadAssetOperation.cpp:147)
8 crossyroad 0xbc2bf3 AssetBundleLoadAssetOperation::Perform() (AssetBundleLoadAssetOperation.cpp:157)
9 crossyroad 0xd3656f PreloadManager::ProcessSingleOperation() (PreloadManager.cpp:301)
10 crossyroad 0xd36315 PreloadManager::Run() (PreloadManager.cpp:372)
11 crossyroad 0xd362f1 PreloadManager::Run(void*) (PreloadManager.cpp:193)
12 crossyroad 0xd74927 Thread::RunThreadWrapper(void*) (Thread.cpp:44)
13 libsystem_pthread.dylib 0x2576f85b _pthread_body + 138
14 libsystem_pthread.dylib 0x2576f7cf _pthread_start + 110
15 libsystem_pthread.dylib 0x2576d724 thread_start + 8
5.3.5 f1 has same issue
find_position(functional:659) find(densehashtable.h:270) GetPreloadData(densehashtable.h:270) CollectPreloadData(AssetBundle$$anonymous$$anager.cpp:135) CollectPreloadDataRecursively(AssetBundle$$anonymous$$anager.cpp:155) CollectPreloadDataRecursively(dynamic_array.h:226) CollectPreloadDataDependencies(densehashtable.h:413) Perform(AssetBundleLoadAssetOperation.cpp:121) ProcessSingleOperation(Preload$$anonymous$$anager.cpp:302) Run(Preload$$anonymous$$anager.cpp:381) Run(Preload$$anonymous$$anager.cpp:205) RunThreadWrapper(Thread.cpp:40) 12 libsystem_pthread.dylib __pthread_body + 240 13 libsystem_pthread.dylib __pthread_body