Crash Rate at google play , developed games in cocos2dx version 3.15

Attached is the screenshots explaining details of crashes … if anyone could help to fix these crashes, will be highly appreciated thanks

1 Like

I’m not sure how to help without more information. What version of Android? What hardware? What sdk version are you targeting? Any idea what code is running when these happen? Can you reproduce any? Does logcat provide anything useful?

@slackmoehrle
This is very common for any cocos2d-x games.
We had same for all our games.
So i think To Analysis this, fix this you guys need to release your inhouse any one game into Google play-store.
This will be the only option to go deep into these crashes. (There might be Android/Java side code need to fix or cpp-core engine)
Ready to help you if you need anything.
But

This is not specific, its all random with almost all versions of Android, with cocos version from varying 3.9 to 3.16, with Android SDK varying from 23 to 28. (In our case)

2 Likes

From my daily business as Android developer, crashes you can’t easy reproduce are often “killed by the system” apps while in background. I would recommend to check into this direction. You can in set “don’t keep activities” in the developer options. This can help to simulate this behavior. It’s just an idea.

1 Like

@drelaptop many users are experiencing crashes. How can we help them?

1 Like

thanks for this suggestion, we did lack tests like this to found whether crash will occur when a cocos2d-x game was “killed by the system”, we should try to simulate this behavior to found any defect on destructor.

Is it possible to publish one of tests project for example cpp-tests or tests project used in docs to Google play-store? @slackmoehrle @zhangxm

Yep, it is possible. But i don’t know how it can help to resolve it.
@smitpatel88 does the app only crash release in google play? Can we reproduce it locally?

1 Like

No, it doesnot crash locally.

+1 for release cpp-tests in google play.
I think that for each cocos2d-x release cpp-test app should be released in google play store.
Advantages:

  1. Great promotion for cocos2d-x. Link to google play can be placed here http://www.cocos2d-x.org/ and in other services
  2. Game developers can check all cocos2d-x features without environment setup, build, installation etc.
  3. Simplify bug reports (1. download cocos2d-x-3.17-cpp-test from google play 2. …)
  4. Simplify manual testing to: download cocos2d-x-3.17-cpp-test from google play
  5. cocos2d-x engineers will have access to google play console crashes/anr
  6. Automated tests: Firebase test-lab https://firebase.google.com/docs/test-lab/
4 Likes

Ok, @slackmoehrle could you please release v3.17 cpp-tests in google play store? Thanks.

Ok I will do it.

This is actually a good test because I need to setup Android Studio and get things compiling. I need to sign up for a Play account also.

@mars3142 you offering to help if I have some difficulties?

2 Likes

Sure, I’ll help - It’s way more easier than iOS with all the different certificates :wink:

1 Like

After that, it would be very nice to release latest version after each commit to master. There is API https://developers.google.com/api-client-library/python/apis/androidpublisher/v3

1 Like

I would prefer fastlane (it’s also from Google) for such tasks, but I never tested it yet. It’s not so low level like your advice :wink:

@slackmoehrle
Any progress with “release cpp-tests in google play”?

This is actually a good test because I need to setup Android Studio and get things compiling. I need to sign up for a Play account also.

Definitely it will be great for you to setup android environment but it is very easy to use different ndk, sdk, build tools … than recommended.
My advise for release cocos2d-x in Google Play please use version from CI.

Below links:
cocos2d-x-3.17
https://ci.appveyor.com/project/minggo/cocos2d-x/builds/16003803/job/ca6l68h7sori61fm/artifacts
Latest version:
https://ci.appveyor.com/project/minggo/cocos2d-x/builds/20166692/job/wmk7899lnicuh9u3/artifacts

For example to release cocos2d-x-3.17:

  1. Download
    https://ci.appveyor.com/api/buildjobs/ca6l68h7sori61fm/artifacts/release%2FCppTests-release-unsigned.apk
  2. Sign package
    https://developer.android.com/studio/publish/app-signing
    Followe steps from chapter: “Sign your app from command line”
  3. Release signed apk in Google Play

Warning:
CI Appveyor keeps artifacts only for 6 months.
You have 11 days to download cocos2d-x-3.17 apk from
https://ci.appveyor.com/project/minggo/cocos2d-x/builds/16003803/job/ca6l68h7sori61fm/artifacts

Regards,
Chp

It be interesting to see the “Android Vitals” after this is deployed to Google Play. I think it will help expose bugs. Please can you give us any progress?

For some reason Google had to manually approve our play account. So I’ll get this done now.

any news?.

I’m not able to compile cpp-tests. I’m looking at it today.

Please release build from appveyor CI.

1 Like