IAP crashes on Android (DEF-3298) (SOLVED)

I also have a lots crashes with com.defold.iap module. Some screens from Google console crash reports:

Most “popular” is null pointer exception on init() function:

What engine version is it?

1.2.127
But it’s old issue and was in previous versions of engine.

Added DEF-3298 to track this.

2 Likes

yea, I have the same crashes (screnshot from one of the projects):



Hi @AGulev!
Regarding that callstack, we did a fix in IapGooglePlay.java a few months back (April 26th) to fix something else, and line 166 no longer has any code on it. Can you see if you can get a slightly newer callstack?

1 Like

Hi, yeah, those screenshot from old game with old Defold onboard.
I’ll try to update version on the week, and recheck.
Thank you.

3 Likes

Seems like there are no issue on init(), but still on handleMessage()
July report (and last version of app):
2018-07-18_19-07-36

2 Likes

We have a fix for these in review now. Thx! :slight_smile:

7 Likes

Released in Defold 1.2.134

1 Like