JNI log spam on every native call

Hi,

When I build my game in development mode, every native call spams debug logs as in the pictures attached.
This has been going on for a long time, and I always ignored it but lately I’m getting a lot of ANR and crash issues, so started to investigate the project throughly.

Any leads on what would cause this and how could I fix if it’s really something to be fixed.

Perhaps this?

It’s possible some library enabled that however I couldn’t find a reference to “AndroidJNIHelper.debug” anywhere in the project, even if so, should I just ignore this messages or there could be an issue underneath?

From quick look into the code something has to enable that flag for those prints to appear.
Also, that API only works in development builds. In release build that property is always false.

Oh okay then it’s certain something in my project is enabling that.

How can I go into debugging these problems and find out whats wrong though?

What are you problems exactly?

Currently I couldn’t attach any of these exception logs to an existing crash/ANR yet, so I don’t know if these are responsible for any problems at all, that’s actually what I want to know right now. All I know is development releases just spam these on every native call at the moment.

What if you set that property to false in your code?
It’s a global flag, so even if some plugin you use sets it to true, your code should be able to override that afterwards.

That would most likely disable these logs however I want to know what’s causing these logs and if there’s something I can fix about it :slight_smile:

I have the exact same problem after updating our project to Unity 2019.2. Haven’t yet figured out which of our plugins are causing it.

Very annoying, as it makes the Android debug log useless.