Search Issue Tracker

Fixed in 2018.1.X

Fixed in 2017.1.X, 2017.2.X, 2017.3.X

Votes

0

Found in

5.6.3f1

Issue ID

938640

Regression

Yes

[IL2CPP][iOS] Build crashes on QueryComponentByType() [inlined] when code stripping is enabled

Animation

-

To reproduce:
1. Open project attached by the user
2. In player settings make sure that scripting backend is set to IL2CPP and code stripping is enabled
3. Build for iOS
4. In build project press on the button
-- Button will activate the Animator which then enters a state that has an animation trying to animate a field on a missing component that is not used anywhere else in the project.

Expected: Nothing should happen after pressing the button
Actual: Build crashes with this stack trace:
frame #0: 0x00000001003d0f24 crash`::QueryComponentByType() [inlined] IsDerivedFrom at TypeInfo.h:80 [opt]
frame #1: 0x00000001003d0f24 crash`::QueryComponentByType() [inlined] IsBaseOf at TypeInfo.h:279 [opt]
frame #2: 0x00000001003d0f24 crash`::QueryComponentByType() at GameObject.cpp:295 [opt]
frame #3: 0x000000010039e718 crash`::BindGenericComponent() at GenericAnimationBindingCache.cpp:587 [opt]
frame #4: 0x000000010039b1f4 crash`::CreateAnimatorGenericBindings() at AnimatorGenericBindings.cpp:768 [opt]
frame #5: 0x0000000100367d9c crash`::SetupBindingsDataSet() at Animator.cpp:2225 [opt]
frame #6: 0x000000010036c2b0 crash`::CreateBindings() at Animator.cpp:2289 [opt]
frame #7: 0x00000001003672a4 crash`::CreateObject() at Animator.cpp:2400 [opt]
frame #8: 0x0000000100366dd8 crash`::Rebind() at Animator.cpp:382 [opt]

Reproduced with: Unity 5.6.3f1, 2017.1.0p2, 2017.2.0b5, 2017.3.0a2
Iphone 7+ OS 10.3.2, iPhone SE OS 9.3.3
IL2CPP scripting backend

Not reproducible with: Unity 5.5.0f3
Lge LG D855 (G3)*, OS:5.0, CPU:armeabi-v7a, GPU:Adreno (TM) 330, Build:lge/g3_global_com/g3:5.0/LRX21R.A1445306351/1445306351:user/release-keys
Mono scripting backend

Fixed in: 2018.1.0a2
Backported to: 2017.3.1p1, 2017.2.1p4, 2017.1.3p2

Comments (1)

  1. ghostatspirit

    Dec 03, 2017 10:04

    I've encountered this bug. You need to make sure there is no missing component in any animation if you want to run the player on iOS.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.