jni error has occurred local reference table overflow (max=512) Android crashes on start.

I get this crash error in my 2d game after 600 levels. There is no problem about first levels, but it collapses on start after 500 - 600 levels.

My SDK’s

  • Appsflyer
  • Google Analytics
  • Heyzap and some ads SDK
  • OneSignal

I am using Unity 5.5.1

Hi, zippro:
I met this issue also, using Unity 5.5.2. It only happen when multi-threaded rendering is open.

Seems Unity not able to handle the JNI local reference on multi-threaded rendering.

You can release these JNI local reference by calling DeleteLocalRef .