Unity AR Foundation/ARCore/OpenGLES3 Bug: Texture must have width greater than 0; Exception: Failed to create texture because of invalid parameters

How to reproduce:

  1. Open Project for Android Target Platform.
  2. Build & Run with Development Build checked.
  3. See the error in the console.

I used Raw Project with Unity 6000.1.5 and “AR Mobile” Official Template with the Development Build option checked.

Other Environment:

  • MacBook Air M2
  • Samsung Galaxy A71
  • Android 13

As my observations show on different projects, it’s because of OpenGLES3 API.

When we add Vulkan API by the manual for the 1st place in the list of API in the Player Settings, and check “Auto Graphics API” flag, there is no such error: Universal Render Pipeline | AR Foundation | 6.1.1

I Created a Bug Report: 104388

Hey makaka-org,

Thank you for bringing this to our attention, this should be fixed in 6.2. We have put out a public pre-release of this package (6.2.0-pre.1 to 6.2.0-pre.4) if you would like to confirm the fix with it, or wait until the full 6.2 package is released.

I was notified in IN-104388 about fixing in 6.1.1, but I’ve not tested it.

Yes now that you mention it we did back-port this fix to 6.1.x also.

Unity Issue Tracker — Solved: