Search Issue Tracker
Won't Fix
Votes
0
Found in
5.1.0f3
Issue ID
710014
Regression
No
[Stripping] 'Could not produce class with ID 111' and crash in ActivateAwakeRecursivelyInternal()
How to reproduce:
1. Open attached project
2. Build to iOS and run
3. Click "Open Test Scene" in device
- Wait a few seconds for it to load
4. Click "Remove Roulette" in device
- Project crashes at this point
- Does not crash when Stripping is disabled
- Reproduced in Version 5.4.0b11 (323b0238353b), Version 5.2.4f1 (98095704e6fe)
- Won't Fix: Asset bundles and code stripping don't play nicely together in any current versions of Unity. If an engine code type is used only in an asset bundle, and not in any scene that present at build time, then stripping will remove the engine code type, and an error like this will occur. We're working to correct this in a future version of Unity (likely 5.5), but the fix is pretty involved, so it cannot be back ported.
A few options are available to work around this issue.
1. The Strip Engine Code option can be disabled
2. If one would like to keep stripping enabled, a dummy game object an be added to any scene present in the build which includes the component that is missing at runtime. A list of the components is available here: http://docs.unity3d.com/Manual/ClassIDReference.html. In this case, we see the error: "Could not produce class with ID 111" in the Xcode output when this project runs. ID 111 corresponds to the Animation component. So working around this problem can be done by adding a GameObject to MainScene in the attached project, and add an Animation component to that GameObject.
Neither work around is really ideal, but until we ship the improved interaction between asset bundles and code stripping, these are the best options we have available.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Custom attribute type is not preserved when inserting a template to the VFX
- InspectorElement and AnimationMode memory leak when selecting different GameObjects in the Hierarchy with the Inspector tab open
- Previous model to world matrix is not correctly set for ASW
- More calls are made to GC.Alloc in an HDRP Sample Template when compared to the 2022.3 stream
- Generating Light Probe lighting returns inconsistent results on a specific mesh
Add comment