Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

iOS - Advert Package Throws Webkit Error

Discussion in 'Unity Ads' started by akaBase, Jan 30, 2020.

  1. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    34
    Hello,

    Since iOS 13.2 Unity Advert Packages have been throwing a Webkit error in the Xcode debug console.

    This is the log produced when the Advert package is initialized.
    • 2020-01-30 14:13:20.423387+0000 AdvertPackageTesting[551:81143] I/UnityAds: +[UnityAds initialize:delegate:testMode:] (line:66) :: Initializing Unity Ads 2.1.0 (2100) with game id 3450194 in test mode
    • 2020-01-30 14:13:20.490919+0000 AdvertPackageTesting[551:81420] I/UnityAds: -[UADSInitializeStateConfig execute] (line:139) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/2.1.0/release/config.json
    • 2020-01-30 14:13:21.096914+0000 AdvertPackageTesting[551:81420] I/UnityAds: -[UADSInitializeStateLoadCache execute] (line:178) :: Unity Ads init: webapp loaded from local cache
    • 2020-01-30 14:13:21.235571+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.263238+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.263333+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.266393+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.283739+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.292397+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.344273+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.344404+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.344965+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.346157+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.346400+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.347070+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.419933+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.422322+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.435607+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.437295+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.439173+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.440333+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.440901+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.442039+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.444747+0000 AdvertPackageTesting[551:81143] I/UnityAds: +[UADSApiSdk WebViewExposed_logInfo:callback:] (line:59) :: Requesting configuration from https://publisher-config.unityads.unity3d.com/games/3450194/configuration?bundleId=com.WhatonaEntertainment.AdvertPackageTesting&encrypted=false&rooted=false&platform=ios&sdkVersion=2100&osVersion=13.3.1&deviceModel=iPhone10,4&language=en_GB&connectionType=[object Promise]&screenHeight=[object Promise]&screenWidth=[object Promise]&test=true&advertisingTrackingId=5AFF2E1A-9064-4558-91B1-CDC508B736A4&limitAdTracking=false&frameworkName=Unity&frameworkVersion=2018.4.9f1&adapterName=Engine&adapterVersion=2.1.0
    • 2020-01-30 14:13:21.445222+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.794574+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:13:21.801747+0000 AdvertPackageTesting[551:81143] I/UnityAds: +[UADSApiSdk WebViewExposed_logInfo:callback:] (line:59) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWMiOjE1NiwiYXpwIjoiZmMwMWM2NGQtMWZjMi00YTJhLWJmMzEtMzdmMDUwYTg4ZTBlIiwiY3BpIjoyNTAsImNyZWF0ZWQiOjE1MzI4MDgxMzEwMDAsImV4cCI6MTU4MTYwMzIwMSwiaWFwIjoyNDgsImlhdCI6MTU4MDM5MzYwMSwiaXNzIjoiYWRzLWdhbWUtY29uZmlndXJhdGlvbi51bml0eWFkcy51bml0eTNkLmNvbSIsImx0diI6NDAsInBybyI6MTg4LCJzdWIiOiJ5d0E4cUdQU3V0Nk95NExZUWpEVkJsVkdFMnBza0RQdlc4MWNOSDczbUVZNVE3K3lFd1hvTUZGVElaOVdrVEJnNWdEVk93PT0iLCJ4cHIiOjUxfQ.j0gXcTtOayQz7SxlKEgCQeOXm1IHTa-kZ8_8BI0xgjE (A/B group 4)

    This is the masses of logs produced when an advert is shown.

    • AdvertPackageTesting[551:81143] I/UnityAds: +[UADSApiSdk WebViewExposed_logInfo:callback:] (line:59) :: Unity Ads event: sending midpoint event to https://impact.applifier.com/events/v2/video/midpoint/3450194/000000000000000000000000
    • 2020-01-30 14:14:08.254832+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.255477+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.259542+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.267760+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.268044+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.270239+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.271046+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.271896+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.272682+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.273057+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.273566+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.274287+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.274678+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.275085+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.485459+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.491524+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.495065+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.527302+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.735543+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.741594+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.744769+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.859740+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.984741+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.989038+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:08.994866+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.228399+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.236365+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.236765+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.240301+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.244716+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.335117+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.335282+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.350786+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.367306+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.384085+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.400793+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.434131+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.436872+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.437149+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.445763+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.448043+0000 AdvertPackageTesting[551:81143] LTE
    • 2020-01-30 14:14:09.448463+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.451815+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.452636+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.454484+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.454768+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.456201+0000 AdvertPackageTesting[551:81143] LTE
    • 2020-01-30 14:14:09.486126+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.486676+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.489385+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:09.815177+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.138995+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.139287+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.151289+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.167707+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.184730+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.201000+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.249875+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.264913+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.265732+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.271257+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.283571+0000 AdvertPackageTesting[551:81143] [Process] kill() returned unexpected error 1
    • 2020-01-30 14:14:10.283974+0000 AdvertPackageTesting[551:81143] I/UnityAds: +[UADSApiSdk WebViewExposed_logInfo:callback:] (line:59) :: Closing Unity Ads ad unit


    As you can see from the timestamps the main error is thrown 10s(100s?) of times a second.

    This has stopped me from releasing an app as I can't see it passing review with an issue like this, and due to it still happening in the latest iOS version (13.3.1 as of writing) I am now worrying about the current app I'm working on as it too could end up just sat here waiting to be published.

    With all that said and shown my questions are..

    Is this a known issue?
    If so is there a workaround?
    Is there a timeframe for when it will be fixed?

    Thanks

    Alan

    (PS: Sorry for all the logs, I wanted to show minimal but complete sections)
     
    Last edited: Jan 30, 2020
  2. sbankhead

    sbankhead

    Unity Technologies

    Joined:
    Jul 27, 2014
    Posts:
    92
    It looks like your using Unity Ads 2.1.0. Can you try updating to the latest version and see if this issue reproduces. There have been a few ios 13 specific issues fixed recently and you may be running in to something related. I can't say I have seen this specific issue before though. If it does reproduce in the latest ads sdk can you please share any scripts or a repro project as that would help us get to a fix quicker. thanks.
     
  3. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    34
    Hello sbankhead,

    I already tried several package versions with that testing project already and had the same issues with each.

    Edit: Forgot to add code snippet sorry

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4. using UnityEngine.Advertisements;
    5.  
    6. public class Adverts : MonoBehaviour
    7. {
    8.  
    9.     public UnityEngine.UI.Text versionText;
    10.  
    11.     private bool _testing = true;
    12.     private string _appID = "12345";//FIXME edit to your test id
    13.  
    14.     private void Start()
    15.     {
    16.         Advertisement.Initialize(_appID, testMode:_testing);
    17.         versionText.text = "Advert Package Version: " + Advertisement.version;
    18.     }
    19.  
    20.  
    21.     public void ShowAd()
    22.     {
    23.         Advertisement.Show();
    24.     }
    25. }
    Thats all it was for the testing project to keep it simple and the ShowAd method was called with a ButtonClick event set in the inspector.

    Also the Unity Version I was using is 2018.4, but it happens with newer versions too.
     
    Last edited: Feb 2, 2020
  4. Aiursrage2k

    Aiursrage2k

    Joined:
    Nov 1, 2009
    Posts:
    4,834
    I have the same problem, i wasted a whole day on this which I thought would be like an hour/5 minute job.
     
    akaBase likes this.
  5. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    34
    Anyone?
     
    louiseleal likes this.
  6. louiseleal

    louiseleal

    Joined:
    Aug 21, 2017
    Posts:
    3
    I am having the same problem. Some update ?
     
    akaBase likes this.
  7. Jmonroe

    Jmonroe

    Joined:
    Jul 7, 2012
    Posts:
    94
    Update: Got Ads 3.4.2 to initialize. Seeing the same problem... spamming the console with kill process.
     
    Last edited: Feb 7, 2020
    akaBase likes this.
  8. Jmonroe

    Jmonroe

    Joined:
    Jul 7, 2012
    Posts:
    94
    Well the good news is at least Apple just approved my app... so yay

    The details are:
    Unity2018.4.16, Ads2.08, Xcode11.3.1
    I rolled back to Ads2.08 b/c the methods changed and I didn't have time to update.
     
    Last edited: Feb 7, 2020
  9. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    34
    Thanks, with that being the case I might just put the 1 I have ready in for review and see what happens.
     
  10. LemanColt

    LemanColt

    Joined:
    Oct 17, 2014
    Posts:
    4
    I'm also having same problem with this line spamming the xcode log:
    [Process] kill() returned unexpected error 1

    Unity version 2019.2.17f1
    Unity Ads version 3.4.2
    Xcode version 11.3.1
    iOS version 13.3.1

    Has anyone found a fix or workaround for this?
     
    dakshilmehta likes this.
  11. Robosaru

    Robosaru

    Joined:
    Mar 31, 2013
    Posts:
    8
    I am also seeing this issue with 3.4.2. Any update on a fix?
     
  12. kkl888

    kkl888

    Joined:
    Dec 6, 2014
    Posts:
    24
    Same here~

    Unity Ad 3.4.2
    Xcode 11.3
    Unity 2019.3.4f1
     
  13. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    357
    Likewise, heard latest xcode beta fixes it, but that can only be on latest Mac OS Carolina?
    A pain as i cannot update to Carolina yet, hoping they accept my app even with the glitchy xcode 11
     
  14. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    331
  15. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    34
    Hello SamOYUnity3D,

    Have you (Unity) got any news from Apple about it as I can only assume you have spoken with them?

    All was told they were aware of it and had a possible fix and then told that I would need to keep an eye on the Feedback channel.

    Since release notes for XCode and iOS have been put through (See them below)

     
  16. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    331
    Yes, I believe Apple is aware of this problem, but when to fix it is out of our control and it's up to them. I just tested Xcode version 11.4 beta 3 (11N132i) and unfortunately it looks like the problem still persists.
     
    akaBase likes this.
  17. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    357
    Just to let you know, my game was accepted, even with this error spamming (occasionally).
     
    SamOYUnity3D and akaBase like this.
unityunity