Can't "Alpha" test from play

Okay maybe look at some code from 4.3 version engine then. As I had 103 achievements with a released game and it doesn’t have any issues on loading / unloading them. I really think it’s something simple as not destroying/clearing an local reference after creating it

DeleteLocalRef on cls reference should work when getting achievements (after reading a lot on Inet)

http://jaljale.com/blog/titanium-appcelerator-crossing-the-bridge-dalvikvm-jni-error-app-bug-local-reference-table-overflow--512/

If you can point me in right direction with a code project as where achievements get cached I can have a look at it myself and see if I can get a local fix working

Since 4.3 way we deal with achievements has completely changed to use a library.
problem is caused by an interaction between how we deal with JNI and library.
There isn’t a quick and easy fix for this as it is a fundamental issue which requires some rethinking and rewriting of that interaction layer.

Okay so for now it’s not possible/useless to release/build a game with achievements.

Well at least we found source/problem (I hope)

If there is anything else you need please let me know.

It seems to be part of your problem yes; it might not be related to others but one thing at a time I feel.

I should let you know that a fix is unlikely to make it until 4.10 due to timing with planned 4.9 release date. Depending on extent of fix I might be able to get it moved up however at this point I wouldn’t like to give an false impression of when it will make it out.

Thanks for update, for now Ill start working on a new project and see what happens when I only add 5 to 10 achievements.

Is this reported as a bug now so I’m able to track it? Or will you just keep updating this topic? I would like to keep on top of this if possible.

I’m working on this right now, however if you want to track bug to see if it has been completed then I’ve entered it as UE-19190

aim is to get it done for 4.10.

Sorry to ask this but where can I find/track this? It’s not on trello?

It is on our board which isn’t public right now I’m afraid.

Is there any you can give me some more details (screen shot or project access?) as to how you are querying and setting up things when this happens.

I’ve got a local test application with 110 achievements (title + description only) and using ‘cache achievements’ and ‘get cached achievement progress’ to get and loop over them (much like how Tappy is doing so) isn’t causing things to crash out.

Ill upload project to drive and send you link when I get home later today.

I have same setup as tappy as well with only difference that I have more progress based achievements ( ones that show how many % you have done before unlocking)

Ill also post some screenshots once I get home.

I have send you e-mail to the -drive share. You should be able to download source now.

We don’t do anything different that I can see; however based on call stack error seems to be coming from inside a supplied library.

Hopefully supplied project will let me get to a point where I can repro it and thus get things fixed.

From my 104 achievements 57 are Incremental achievements, and as far as I can see from crash these are achievements causing the:

07-31 12:21:38.247: E/dalvikvm(29394): JNI ERROR (app bug): local reference table overflow (=512)
07-31 12:21:38.247: W/dalvikvm(29394): JNI local reference table (0x7220d170) dump:
07-31 12:21:38.247: W/dalvikvm(29394):   Last 10 entries (of 512):

Error, I don’t know if they are handled differently from normal achievements or not (in UE4).

It’s hard for me to understand why it’s “working” for you locally,

I updated old 4.3 original project “Balloony PoP” to 4.8 and recompiled it with new 4.8 engine, uploaded it to play

https://play…com/store/apps/details?id=com.epicgames.BaloonyPoP

And yet again it fails after play services login. 4.3 version worked fine. So it’s hard for me to believe that it’s an error on my side as going from 4.3 to 4.8 went without problems except for redoing the “Set Text” blueprint nodes, I left all other things intact and filled in new 4.8 project settings (keystore / etc)

So I can now certainly say it’s not an error on my side but really an error with 4.8. So I would love to know how you get it working with a 4.8 engine build and 100+ achievements.

I now have to re-compile project yet again with 4.3 when I get home and re-upload it.

EDIT:

4.9 preview still has same issues. Even with new sign in blueprints that let you sign in manually. Although I love feature and UE4 actually complies with “rules” now (not signing in automatically) it’s a shame it still crashes after signing in (haven’t done logcat yet, but I guess it’s same issue)

Yeah, it is very confusing.
I’m hoping it is just a setup difference between my simple test case and your game, which is why I asked for a copy of it.

Hopefully now with both I can figure out why I can’t reproduce it and in doing so find a fix for it - only fundamental change to how it works has been introduction of a Library between 4.3 and 4.8 to handle achievements, which is source of problem in stack trace in the .

Can I ask how many entries you have in your leader boards?

As with 110 achievements being cached, queried and updated I can’t create problem, however it looks like leadboards get updated first, so I’m wondering if maybe that is factoring in to things in some way.

Thanks for update. Like I said going through error’s it seems that Incremental Achievements are what’s making it crash.

catch 100 zebra balloons etc (0 to 100% - 100 balloons must be popped) I have 50+ incremental achievements set up for game Maybe there’s a limit?

No, I don’t think it’s a limit like that, I think we are just interacting badly with a Android lib (it expects to be used in a certain way, we aren’t doing that), which might even be fixed in a later version, however until I have a reproduction case that can’t be tested.

I have 3 leader boards setup, one for each difficulty level (Easy Normal Hard) Although it was already producing above error’s when I only had one.

As you can see from my project It’s an copy of Tappy Chicken achievements (at least blueprint setup).

I could make a new build where I hook up leaderboards caching to once button is pressed.

EDIT: Still crashes for me with 4.9 Preview1 even with all LeaderBoards related entries disabled (PollGameCenter - not running in blueprints)

Still crashes when ever I start game on my Tablet.

EDIT 2:
So same issue with 4.8.3 even if I unhook all the “PollGameCenter” nodes so it doesn’t check leaderboards. Make me believe that it’s actually not Blueprint nodes functions but entries for engine itself in project settings “Achievements Map” / “Leaderboatds Map” I’m making a new build that doesn’t map them as everything is already mapped in blueprints as well (Tappy Chicken Way).

Ill let you know what happens

EDIT 3

on 4.8.3 even without achievement and leaderboards maps in project settings it still crashes with same issues.

EDIT 4

On 4.9 preview 2 issue remains. Also without leaderboards polling. Again I think it’s mapping in project settings itself that is handled wrong and not blueprints setup.

EDIT 5

maybe this will help:

http://jaljale.com/blog/titanium-appcelerator-crossing-the-bridge-dalvikvm-jni-error-app-bug-local-reference-table-overflow--512/

EDIT 6

Changed all incremental achievements to normal achievements and still have same issue. I’m totally out of ideas now…