Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

2018.2.14f1 App stucks after splashscreen with error in UnityAdsSettings_Get_Custom_PropEnabled()

Discussion in 'Unity Ads' started by FixItFelix, Nov 6, 2018.

  1. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    Hi,

    after updating from Unity 2018.2.4f1 to 2018.2.14f1 our game is not starting anymore. It shows the splashscreen and afterwards it stucks in a blank screen. If anybody had the issue and find a solution for it, I would appreciate help with it.
    Following the android log:

     
  2. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    Hey, we just tested by downgrading the unity version step by step.
    In 2018.2.12f1 is works and it starts crashing with 2018.2.13f1.
    Maybe that helps.
     
  3. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    @FixItFelix
    Hello,

    I am currently looking at the issue. Please, can you submit a bug report with the small repro project/repro steps?
     
  4. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    @DenisasK
    Update: In 2018.2.12f1 is works for Android but not for ios.

    image (3).png

    That is the log xcode log.

    An other hint: We building on batch mode, maybe it has something to do with that?

    I will make more tests with our build and afterwards I will try it with an empty project. If this will also fail, I will send it.
     
    Last edited: Nov 7, 2018
  5. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    Nobody has this issue out there?
     
  6. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    Update: It seem that Unity is not setting correctly the m_gameID in the UnityConnectSettings.asset. The GameIDs field is correctly set with android and ios but the m_gameID field below is empty.
    On build which are working Unity set the m_gameID to the android or ios one depending on the platform.
     
  7. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    Question to @DenisasK : After some tests and debug logs I realised after building asset bundles in our batch mode build script the return value of AdvertisementSettings.enabled is true but in the UnityConnectSettings.asset file it was written with m_Enabled: 0.

    How the ads can be active and non active at the same time?
     
  8. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    @FixItFelix Actually, It can not be. It is the reason for the crash. Also, this bug looks like the regression.
     
  9. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    @DenisasK: Okay, We found out that starting the process of building assets bundles or building the player is changing the UnityConnectSettings by turning off the whole services. (m_Enabled: 0)
    I guess you have some checks for the services during building the player.

    Do you have an idea why this will be deactivated. It is frustrating because when it gets deactivated during the build the whole build process is still running through. You can notice the problem when the starting the game and the game crashed because of an exception in the native call "at libunity.UnityAdsSettings_Get_Custom_PropEnabled()(UnityAdsSettings_Get_Custom_PropEnabled:44)"

    Please help out, we need to update to the newest unity version to get some fixed for our game. But the ads started to make problems after updating. On Unity 2018.2.4f1 everything was okay.
     
  10. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    @FixItFelix
    I guess you are using Unity Ads via Package Manager. Please, update the com.unity.ads package to the latest version or get rid of that package and use Asset Store integration. It should help you.
     
  11. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    37
    @DenisasK: I updated to the newest package version 2.3.1 and the problem still exists.
     
  12. LuisGGS

    LuisGGS

    Joined:
    Nov 25, 2015
    Posts:
    2
    From the same issue, If I also enable crash reports the crash happens when initializing something else, but seems consistent. Something feels wrong with unity connect, like if our builds were missing enabling something.

    Code (CSharp):
    1. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000034
    2. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    3. Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.012/4923214:user/release-keys'
    4. Revision: '0'
    5. pid: 22047, tid: 22072, name: UnityMain  >>> com.something.something <<<
    6.     eax 0000002c  ebx d5a7d1e8  ecx 00000013  edx c828b780
    7.     esi cd1754a0  edi d37120d8
    8.     xcs 00000023  xds 0000002b  xes 0000002b  xfs 0000006b  xss 0000002b
    9.     eip d3b36fb0  ebp 4c105829  esp d37120d0  flags 00210282
    10. backtrace:
    11.     #00  pc 00422fb0  /data/app/com.something.something-C3LUj1DAlVKnRS7VS_MEjg==/lib/x86/libunity.so (CrashReportManager::OnPlayerSessionStateChanged(unsigned int, unsigned long long, unsigned long long)+262)
    12. 2018-11-21 13:31:39.995 22047-22072/com.something.something E/MessageQueue: IdleHandler threw exception
    13.     java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000034
    14.     Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.012/4923214:user/release-keys'
    15.     Revision: '0'
    16.     pid: 22047, tid: 22072, name: UnityMain  >>> com.something.something <<<
    17.    
    18.         at libunity.CrashReportManager::OnPlayerSessionStateChanged(unsigned int, unsigned long long, unsigned long long)(OnPlayerSessionStateChanged:262)
    *When unity crash report is disable then the crash is on UnityAdsSettings GetCustomPropEnabled*
     
  13. LuisGGS

    LuisGGS

    Joined:
    Nov 25, 2015
    Posts:
    2
    @DenisasK I don't think it is a Unity Ads issue related but more like Unity Services, I have the feeling that if we had analytics or IAP enabled those would crash too when initializing the app.
     
  14. AndBje

    AndBje

    Joined:
    Jun 5, 2016
    Posts:
    15
    Hi! Found this thread when searching for a very similar problem. See included crashlog (sorry it is a picture but I could not save it as text). AdCrash.PNG

    Since we don't use ads I simply removed the package and now everything is working fine again. I can therefore not give so much more info... but I thought it was worth mentioning. Happy coding, Anders
     
  15. hexaust_

    hexaust_

    Joined:
    Mar 7, 2015
    Posts:
    23
    This is still present with the latest Unity Ads package (2.3.2) and Unity 2018.3.f1. Any fix available?
     
  16. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,847
  17. hexaust_

    hexaust_

    Joined:
    Mar 7, 2015
    Posts:
    23
    @JeffDUnity3D Yes, nothing changes if I build in batch mode.
     
  18. hexaust_

    hexaust_

    Joined:
    Mar 7, 2015
    Posts:
    23
    I solved it in my case by disabling Crash Reporting. In ProjectSettings/UnityConnectSettings.asset

    Code (CSharp):
    1.  
    2. CrashReportingSettings:
    3.     m_EventUrl: https://perf-events.cloud.unity3d.com
    4.     m_Enabled: 0
    5.     m_LogBufferSize: 10
    6.     m_CaptureEditorExceptions: 1
    7.