Im trying to use the following library:
And the library is working fine and is doing whats expected until i get a random crash, after some profiling i noticed a pattern on GC Allocation being released every N times i did a certain action, which matched the crashing.
I mapped a button to directly call Resources.UnloadUnusedAssets and if i press it after doing a call to the android library, the app dies.
The logcat is showing the following: https://ghostbin.co/paste/vt9t4
I am at a loss for what to do to get it working? My idea is that somehow the native plugin is grabbing memory that Unity is later trying to clear and panicking when doing it. If thats the case how would I go about preventing that?
Thanks, and if you are helping out you’re great and a saviour!