Description

An assertion failure is thrown when using nativized functions on an Android device.

Steps to Reproduce

Download Project: [Link Removed]
or:

  1. Create a new project
  2. Create a function library
  3. Create a very simple function with a "Switch by int" and Return nodes that return asset references:
  • Get Mesh > Switch on Int > Return Node (Corresponding Mesh Cube) > Return Node (Corresponding Mesh Sphere) > Return Node (Corresponding Mesh Cylinder)
  1. Use it's output from a blueprint
  2. Test it in editor, it will work perfectly
  3. Package it without nativizing assets, again it will work fine.
  4. Package with "Nativize Assets" enabled

Result: When you click on the static mesh button, the game crashes on the mobile device with an assertion failure.
Expected: The static mesh to appear without an assertion failure.

Callstack

10-25 09:24:09.120: D/UE4(30787): [2016.10.25-16.24.09:131][-6981052]Assertion failed: Assertion failed: (Index >= 0) & (Index < ArrayNum) [Link Removed] [Line: 804]
10-25 09:24:09.120: D/UE4(30787): Array index out of bounds: 2 from an array of size 0

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

0
Login to Vote

Fixed
ComponentGameplay - Blueprint
Affects Versions4.134.13.1
Target Fix4.15
Fix Commit3196874
Main Commit3236017
CreatedOct 25, 2016
ResolvedNov 14, 2016
UpdatedSep 16, 2019