JNI Error (app bug): accessed stale local reference
Hi, I'm trying to access whispersync from native c++. Setting up GameCircle works so far (leaderboars/achievements). Also Whispersync is logcating: "Whispersync is ENABLED" But as soon i try to access my gamedatamap with WhispersyncClient::getGameData() the app crashes with: "JNI Error (app bug): accessed stale local reference" What am I doing wrong?
I dont see so far why calling WhispersyncClient::getGameData() in a while(1) loop should cause a problem, since every game loop is more or less a while(1) loop. And a call during the game loop should be always expected. As i understand this article the problem lies somewhere between local and global JNI references when calling java methods. But this seems to be a bug in the wrapper to which i have no access, since the source code is already compiled to the library. Maybe it is possible to give me an example of how to call WhispersyncClient::getGameData() in a correct way during a game.