Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Crash when migrating from 2019.3.3f1 to 2020.1.4f1 due to UnityAdsSettings_Get_Custom_PropTestMode()

Discussion in 'Editor & General Support' started by unity_OSeBXw9aivkTJg, Sep 8, 2020.

  1. unity_OSeBXw9aivkTJg

    unity_OSeBXw9aivkTJg

    Joined:
    Jul 8, 2019
    Posts:
    19
    Hi, we are trying to migrate to new version of Unity, and everything works from the editor - the game runs properly, but when we build an APK file and launch it on the phone it crashes with attached log.

    The cause is null pointer dereference and the only useful line that I see in the logs is:
    /data/app/com.distillgames.raceduels-HSHViyjijabkBazKU7Xsmg==/lib/arm64/libunity.so (UnityAdsSettings_Get_Custom_PropTestMode()+44) (BuildId: d915ad471ca47dbe07aa874a318b1d62c0871111)

    We are using the Advertisement package and the only lines that are called in the scene that is crashing are:
    Advertisement.Initialize (gameId, gameplaySettings.advertisementTestMode);
    Advertisement.AddListener(this);

    Is this related to Advertisement at all, or is there some other issue?

    Thanks in advance.
     

    Attached Files:

  2. unity_OSeBXw9aivkTJg

    unity_OSeBXw9aivkTJg

    Joined:
    Jul 8, 2019
    Posts:
    19
    If anyone faces the same issue - we fixed this by configuring Unity Ads in the Editor Window "Services" - looks like it somehow got lost when migrating between Unity versions.
     
    PNUMIA-Rob and legitgamesco like this.
  3. dsb7

    dsb7

    Joined:
    Jan 19, 2018
    Posts:
    7
  4. PNUMIA-Rob

    PNUMIA-Rob

    Joined:
    Jan 7, 2015
    Posts:
    33
    Thank the Maker for you sir, I can't believe the setting to enable Ads got auto switched off. Been banging my head on this for days and just ran across this and it's stopped the torture. =)
     
  5. Zubairworking

    Zubairworking

    Joined:
    Feb 8, 2022
    Posts:
    2
    Hi Hope you all are good is there any Possibility to run unity ads on mobile without active the services ads Panel in the unity If anyone knows please share his/her Knowledge Please
     
  6. armnotstrong

    armnotstrong

    Joined:
    Mar 3, 2017
    Posts:
    21
    thanks, this saved my day
     
  7. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    80
    The latest Unity Ads 4.4.1 doesn’t have it as it seems it automatically enables it