Search Unity

Unity Ads chrashes on Android after changing the Product Name

Discussion in 'Unity Ads' started by belindavetesi, Dec 4, 2019.

  1. belindavetesi

    belindavetesi

    Joined:
    Jan 27, 2019
    Posts:
    5
    Hello!
    I have build a game for Android and iOS, the first version is public in the Play Store and in the App Store. On Play Store I published with "Project Settings -> Player -> Product Name -> PokerTowerDefense" and on App Store I published with "Project Settings -> Player -> Product Name -> Poker TD". Until now everything works fine and the ads are working on both published versions.
    Now I wanted to release an update for it. When i am building for Android and test it, the App crashes when I want to show an ad. But only if I have the settings at "Project Settings -> Player -> Product Name -> PokerTowerDefense". If I have "Project Settings -> Player -> Product Name -> Poker TD" the ads are working.
    I want to build with "PokerTowerDefense", because the App also uses Application.persistentDataPath for saving Data, but the path changes if I use "Poker TD".

    Here is a Log from the crash:
    Code (CSharp):
    1. 12-04 11:32:58.091: I/UnityAds(1489): com.unity3d.services.ads.UnityAdsImplementation.show() (line:222) :: Unity Ads opening new ad unit for placement ChangeCardColor
    2. 12-04 11:32:58.202: I/UnityAds(1489): com.unity3d.services.core.api.Sdk.logInfo() (line:82) :: Opening performance ad unit with orientation LANDSCAPE, hardware acceleration enabled
    3. 12-04 11:32:58.275: I/Unity(1489): windowFocusChanged: false
    4. 12-04 11:32:58.275: I/Unity(1489): onPause
    5. 12-04 11:32:58.384: W/google-breakpad(1489): ### ### ### ### ### ### ### ### ### ### ### ### ###
    6. 12-04 11:32:58.384: W/google-breakpad(1489): Chrome build fingerprint:
    7. 12-04 11:32:58.384: W/google-breakpad(1489): 0.2
    8. 12-04 11:32:58.384: W/google-breakpad(1489): 2
    9. 12-04 11:32:58.384: W/google-breakpad(1489): ### ### ### ### ### ### ### ### ### ### ### ### ###
    10. 12-04 11:32:58.386: E/CRASH(1489): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000000000028
    11. 12-04 11:32:58.386: E/CRASH(1489): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    12. 12-04 11:32:58.386: E/CRASH(1489): Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    13. 12-04 11:32:58.386: E/CRASH(1489): Build fingerprint: 'HONOR/FRD-L19/HWFRD:7.0/HUAWEIFRD-L19/C432B405:user/release-keys'
    14. 12-04 11:32:58.386: E/CRASH(1489): Revision: '0'
    15. 12-04 11:32:58.386: E/CRASH(1489): pid: 1489, tid: 1532, name: UnityMain  >>> com.TesiGames.PokerTowerDefense <<<
    16. 12-04 11:32:58.386: E/CRASH(1489):     x0   0000000000000028  x1   0000000000000000  x2   0000007ce6a7b010  x3   f97d71eccafe551e
    17. 12-04 11:32:58.386: E/CRASH(1489):     x4   0000007cd322124c  x5   00000000ffffffff  x6   00000000ffffffff  x7   000000000000004d
    18. 12-04 11:32:58.387: E/CRASH(1489):     x8   0000007cc2192900  x9   f97d71eccafe551e  x10  0000007ce257fa88  x11  0000000000000000
    19. 12-04 11:32:58.387: E/CRASH(1489):     x12  0000000000000000  x13  00000000375509ec  x14  00000000000048a8  x15  00000000000046e8
    20. 12-04 11:32:58.387: E/CRASH(1489):     x16  0000007cd4876948  x17  0000007ce6a1d22c  x18  0000007cdc23df72  x19  0000000000000028
    21. 12-04 11:32:58.387: E/CRASH(1489):     x20  0000007cd4874000  x21  0000007ce257fa80  x22  0000007cc74c4530  x23  0000007ce25814e8
    22. 12-04 11:32:58.387: E/CRASH(1489):     x24  0000000000000004  x25  f97d71eccafe551e  x26  0000007cd96e1a98  x27  0000000000000000
    23. 12-04 11:32:58.387: E/CRASH(1489):     x28  0000000000000001  x29  0000007ce257fc28  x30  0000007cd32213b8
    24. 12-04 11:32:58.387: E/CRASH(1489):     sp   0000007ce257f9a0  pc   0000007ce6a1d22c  pstate 0000000060000000
    25. 12-04 11:32:58.387: E/CRASH(1489): backtrace:
    26. 12-04 11:32:58.764: I/HwCust(1710): Constructor found for class android.app.HwCustActivityImpl
    27. 12-04 11:32:58.767: I/HwCust(1710): Constructor found for class android.app.HwCustHwWallpaperManagerImpl
    28. 12-04 11:32:58.772: E/UnityAds(1710): com.unity3d.services.ads.adunit.AdUnitActivity.onCreate() (line:61) :: Unity Ads web app is null, closing Unity Ads activity from onCreate
    I have tried building on a Mac and on a Windows machine. The Problem happens on both.
    I'm looking forward for any help!

    Edit: In the Editor also everything is working fine.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,340
    @belindavetesi

    Thanks for reporting this issue. Would you be able to provide a few more details:
    • Which version of Unity were you using?
    • Which version of the Ads SDK did you use?
    • How did you install the Ads SDK? Package Manager, Services Window, or Asset Store?
    • Just want to confirm that you only changed the Product Name, but did not change the bundle ID?
    • What device did this crash occur on?
    • Are you only seeing this issue on Android or iOS as well?
     
    belindavetesi likes this.
  3. belindavetesi

    belindavetesi

    Joined:
    Jan 27, 2019
    Posts:
    5
    Hello @ap-unity
    I use 2019.2.9f1 (On Mac and on Windows, on both I get the Error)
    I use Ads SDK version 3.3.0, installed by turning on Ads on the Services Tab and then installing it with Packages tab in Unity Editor
    I only changed the Product name. The Bundle ID is always the same (com.TesiGames.PokerTowerDefense)
    The test device is a Huawei Honor 8 (FRD-L19)
    On iOS i haven't tested the new Version. I will do this as soon as possible and write again.
     
  4. belindavetesi

    belindavetesi

    Joined:
    Jan 27, 2019
    Posts:
    5
    I tested it now on iOS. The Ads are always working on iOS, no matter if the Product Name is set to "Poker TD" or "PokerTowerDefense". The Problem only occurs on Android with Product Name "PokerTowerDefense" (which is the product name of the published version).
     
  5. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,340
    Thanks for providing that information. We will try to reproduce and determine where the issue might be.
     
    belindavetesi likes this.
  6. belindavetesi

    belindavetesi

    Joined:
    Jan 27, 2019
    Posts:
    5
    @ap-unity Have you tried to figure out what is wrong? Do you know any solution or work around for this problem?

    I don't want to hold the update back much longer.
     
  7. payalzariya07

    payalzariya07

    Joined:
    Oct 5, 2018
    Posts:
    35
    can you change the Build version number in an android manifest file?

    Player setting -> other settings -> version number

    it is the same version for manifest file and apk build version.
     
  8. belindavetesi

    belindavetesi

    Joined:
    Jan 27, 2019
    Posts:
    5
    I have changed the version number, like you described it @payalzariya07, but the game is still crashing, when I want to watch an add.
    Nevertheless thank you very much for your suggestion!