Error when running game on iOS - Assertion failed: InTexture != NULL in CanvasItem.h

I am using version 4.3 on OS X, and deploying to an running iOS 7. When I deploy my game on iOS, it will open to the main menu and run just fine. But whenever I press a button, which is supposed to flip a boolean in a custom HUD Blueprint to display another menu, I get the following error message in the Output Log:

LogPlayLevel:Display: env: 2014-08-14 18:28:56.312 MattieMathBot[10213:3a07] /Users/build/BuildFarm/build_++depot+UE4-Releases+4.3/Engine/Source/Runtime/Engine/Public/CanvasItem.h(183): Assertion failed: InTexture != NULL

I tracked down the FCanvasTileItem method that is throwing the error, in the latest build it is between lines 157 and 180 in the following file: latest-preview/Engine/Source/Runtime/Engine/Public/CanvasItem.h (you can find it on GitHub).

I am getting this error only on iOS. When I run the game in the Editor on OS X, and in the Editor on Windows, everything runs fine and I don’t receive any warnings or errors. When I run the app after deploying it to the iPad (after shutting down the editor and just running the app off of the iPad; the game crashes.

Here’s what the crash log on iOS says:

12786-screen+shot+2014-08-14+at+6.47.49+pm.png

Any ideas?

Things to check:

  • An error saying that the texture wasn’t able to be packaged for that platform
  • Make sure the texture is a power of 2 size (if it’s not, post back as that’s good info)

I think I had a texture for the UI that wasn’t a power of two. I’ll check when I get to work and update when I find out for sure. Thanks for the reply.

I found several textures that weren’t power of 2. After resizing them so that they were all power of 2, I was able to run the game on iOS 7 without any issues. Thank you for the help!

how on gods green earth can we check how to change the power of 2???