Game crash on android after integrating Unity Ads

Hi everyone,
I am developing a small mobile game and wanted to integrate Unity Ads into it in the form of rewarded videos.
My project was working perfectly fine without unity ads. But now that I put Unity ads in the mixture it behaves strangely.
If I run in editor, everything goes perfectly, and I can see the test ad.
But when I upload it to android, it just executes for around 5 seconds and suddenly the application crashes.
Here is the Script integrating unity ads:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Monetization;

public class Monetizer : MonoBehaviour
{

    // Variables for unityAds
    static string gameID = "2999979";
    static bool testMode = true;
    string placementId = "rewardedVideo";
    bool internet;

    //GUI Variables
    public GameObject monetizePanel;

    // Start is called before the first frame update
    void Start()
    {
        internet = false;
        Debug.Log("Starting monetization");
        try
        {
            Monetization.Initialize(gameID, testMode);
          
        }
        catch (System.Exception e)
        {
            Debug.Log(e.Message);
        }
    }
    public void ShowAD()
    {
        StartCoroutine(ShowAdWhenReady());
    }
    private IEnumerator ShowAdWhenReady()
    {
        if (!internet) yield return null;
        while (!Monetization.IsReady(placementId))
        {
            yield return new WaitForSeconds(0.25f);
        }

        ShowAdPlacementContent ad = null;
        ad = Monetization.GetPlacementContent(placementId) as ShowAdPlacementContent;

        if (ad != null)
        {
            ad.Show(AdFinished);
        }
    }
    void AdFinished (ShowResult res)
    {
        if (res == ShowResult.Finished) //reward player;
            monetizePanel.SetActive(false);
    }

    //Shows the panel with the 'watch ad' button
    public void ShowMonetizePanel()
    {
        monetizePanel.SetActive(true);
    }
    //Closes the panel with the 'watch ad' button
    public void CloseMonetizePanel()
    {
        monetizePanel.SetActive(false);
    }

}

And if this helps, I run adb logcat during the execution and got this:

01-11 19:07:48.744 3144 3144 D KeyguardUpdateMonitor: handleBatteryUpdate
01-11 19:07:49.553 30321 30413 D Unity : Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
01-11 19:07:49.599 30321 30337 D Unity : UnloadTime: 32.850000 ms
01-11 19:07:49.731 3144 3144 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
01-11 19:07:49.735 3144 3144 D KeyguardUpdateMonitor: handleBatteryUpdate
01-11 19:07:49.745 30321 30337 I Unity : /storage/emulated/0/Android/data/com.Kekstar.KeksNBriks/files/kek.lol
01-11 19:07:49.745 30321 30337 I Unity : UnityEngine.DebugLogHandler:Internal_Log()
01-11 19:07:49.745 30321 30337 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
01-11 19:07:49.745 30321 30337 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-11 19:07:49.745 30321 30337 I Unity : UnityEngine.Debug:Log(Object)
01-11 19:07:49.745 30321 30337 I Unity : ProgressManager:LoadGameProgress() (at E:\Carrera\shiny-potato\Assets\Scripts\Managers\ProgressManager.cs:24)
01-11 19:07:49.745 30321 30337 I Unity : GameManager:LoadGameProgress() (at E:\Carrera\shiny-potato\Assets\Scripts\Managers\GameManager.cs:114)
01-11 19:07:49.745 30321 30337 I Unity : GameManager:Awake() (at E:\Carrera\shiny-potato\Assets\Scripts\Managers\GameManager.cs:26)
01-11 19:07:49.745 30321 30337 I Unity :
01-11 19:07:49.745 30321 30337 I Unity : (Filename: E Line: 0)
01-11 19:07:49.745 30321 30337 I Unity :
01-11 19:07:50.705 30321 30337 D Unity : System memory in use before: 14.3 MB.
01-11 19:07:50.708 30321 30337 D Unity : System memory in use after: 14.3 MB.
01-11 19:07:50.708 30321 30337 D Unity :
01-11 19:07:50.708 30321 30337 D Unity : Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 437.
01-11 19:07:50.708 30321 30337 D Unity : Total: 2.420000 ms (FindLiveObjects: 0.536000 ms CreateObjectMapping: 0.060000 ms MarkObjects: 1.710000 ms DeleteObjects: 0.108000 ms)
01-11 19:07:50.708 30321 30337 D Unity :
01-11 19:07:50.875 30321 30337 I Unity : Starting monetization
01-11 19:07:50.875 30321 30337 I Unity : UnityEngine.DebugLogHandler:Internal_Log()
01-11 19:07:50.875 30321 30337 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
01-11 19:07:50.875 30321 30337 I Unity : UnityEngine.Logger:Log(LogType, Object)
01-11 19:07:50.875 30321 30337 I Unity : UnityEngine.Debug:Log(Object)
01-11 19:07:50.875 30321 30337 I Unity : Monetizer:Start() (at E:\Carrera\shiny-potato\Assets\Scripts\Monetizer.cs:22)
01-11 19:07:50.875 30321 30337 I Unity :
01-11 19:07:50.875 30321 30337 I Unity : (Filename: E Line: 0)
01-11 19:07:50.875 30321 30337 I Unity :
01-11 19:07:51.032 30321 30337 D UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.Kekstar.KeksNBriks/files/UnityAdsStorage-public-data.json
01-11 19:07:51.033 30321 30337 D UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:82) :: Couldn't send storage event to WebApp
01-11 19:07:51.046 30321 30337 D UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.Kekstar.KeksNBriks/files/UnityAdsStorage-public-data.json
01-11 19:07:51.047 30321 30337 D UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:82) :: Couldn't send storage event to WebApp
01-11 19:07:51.061 30321 30337 D UnityAds: com.unity3d.services.monetization.UnityMonetization.initialize() (line:63) :: ENTERED METHOD
01-11 19:07:51.062 30321 30337 D UnityAds: com.unity3d.services.UnityServices.initialize() (line:41) :: ENTERED METHOD
01-11 19:07:51.063 30321 30337 I UnityAds: com.unity3d.services.UnityServices.initialize() (line:79) :: Initializing Unity Services 3.0.0 (3000) with game id 2999979 in production mode
01-11 19:07:51.074 30321 30337 I UnityAds: com.unity3d.services.UnityServices.initialize() (line:90) :: Unity Services environment check OK
01-11 19:07:51.089 2405 6454 D CompatibilityInfo: mCompatibilityFlags - 0
01-11 19:07:51.089 2405 6454 D CompatibilityInfo: applicationDensity - 480
01-11 19:07:51.089 2405 6454 D CompatibilityInfo: applicationScale - 1.0
01-11 19:07:51.406 30321 30448 I UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateConfig.execute() (line:191) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/3.0.0/release/config.json
01-11 19:07:51.456 2405 6454 D CompatibilityInfo: mCompatibilityFlags - 0
01-11 19:07:51.456 2405 6454 D CompatibilityInfo: applicationDensity - 480
01-11 19:07:51.456 2405 6454 D CompatibilityInfo: applicationScale - 1.0
01-11 19:07:51.734 3144 3144 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
01-11 19:07:51.738 3144 3144 D KeyguardUpdateMonitor: handleBatteryUpdate
01-11 19:07:52.043 2405 15918 I ActivityManager: Process com.xiaomi.hm.health (pid 28837) has died: cch+6CEM
01-11 19:07:52.043 2405 2431 W zygote64: kill(-28837, 9) failed: No such process
01-11 19:07:52.043 2405 2431 I zygote64: Successfully killed process cgroup uid 10107 pid 28837 in 0ms
01-11 19:07:52.138 30321 30448 I UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateLoadCache.execute() (line:244) :: Unity Ads init: webapp loaded from local cache
01-11 19:07:52.147 30321 30326 I zygote : Do partial code cache collection, code=29KB, data=30KB
01-11 19:07:52.147 30321 30326 I zygote : After code cache collection, code=27KB, data=29KB
01-11 19:07:52.147 30321 30326 I zygote : Increasing code cache capacity to 128KB
01-11 19:07:52.234 30321 30321 I WebViewFactory: Loading com.android.chrome version 71.0.3578.99 (code 357809952)
01-11 19:07:52.293 30321 30321 I cr_LibraryLoader: Time to load native libraries: 7 ms (timestamps 7169-7176)
01-11 19:07:52.326 30321 30321 I chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
01-11 19:07:52.327 30321 30321 I cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99"
01-11 19:07:52.342 30321 30457 W cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
01-11 19:07:52.349 30321 30321 I cr_BrowserStartup: Initializing chromium process, singleProcess=false 01-11 19:07:52.354 30321 30321 W ResourceType: Failure getting entry for 0x7f120515 (t=17 e=1301) (error -2147483647)
01-11 19:07:52.358 30460 30460 E /system/bin/webview_zygote32: Failed to make and chown /acct/uid_99308: Permission denied
01-11 19:07:52.358 30460 30460 E Zygote : createProcessGroup(99308, 0) failed: Permission denied
01-11 19:07:52.359 2405 15918 I ActivityManager: Start proc 30460:com.android.chrome:sandboxed_process0/u0i308 for webview_service com.Kekstar.KeksNBriks/org.chromium.content.app.SandboxedProcessService0
01-11 19:07:52.361 30460 30460 I /system/bin/webview_zygote32: Late-enabling -Xcheck:jni
01-11 19:07:52.362 30460 30460 W /system/bin/webview_zygote32: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
01-11 19:07:52.382 30321 30321 W star.KeksNBriks: type=1400 audit(0.0:5405): avc: denied { read } for name="vmstat" dev="proc" ino=4026532377 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
01-11 19:07:52.403 2405 15918 D CompatibilityInfo: mCompatibilityFlags - 0
01-11 19:07:52.403 2405 15918 D CompatibilityInfo: applicationDensity - 480
01-11 19:07:52.403 2405 15918 D CompatibilityInfo: applicationScale - 1.0
01-11 19:07:52.406 2405 15918 D CompatibilityInfo: mCompatibilityFlags - 0
01-11 19:07:52.406 2405 15918 D CompatibilityInfo: applicationDensity - 480
01-11 19:07:52.406 2405 15918 D CompatibilityInfo: applicationScale - 1.0
01-11 19:07:52.452 30460 30460 W dboxed_process0: type=1400 audit(0.0:5406): avc: denied { search } for name="/" dev="mmcblk0p27" ino=2 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=0
01-11 19:07:52.456 30460 30460 D : Regionalization Environment load packages for Carrier error!

01-11 19:07:52.464 30488 30488 E asset : setgid: Operation not permitted
01-11 19:07:52.508 30460 30460 I cr_ChildProcessService: Creating new ChildProcessService pid=30460
01-11 19:07:52.649 30321 30332 I zygote : Background concurrent copying GC freed 6667(636KB) AllocSpace objects, 8(9MB) LOS objects, 66% free, 6MB/18MB, paused 13.917ms total 40.149ms
01-11 19:07:52.682 30321 30479 W cr_media: Requires BLUETOOTH permission
01-11 19:07:52.733 30460 30489 I cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 7617-7618)
01-11 19:07:52.736 30460 30489 I chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
01-11 19:07:52.736 30460 30489 I cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99"
01-11 19:07:52.740 3144 3144 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
01-11 19:07:52.743 3144 3144 D KeyguardUpdateMonitor: handleBatteryUpdate
01-11 19:07:52.761 30321 30494 W cr_CrashFileManager: /data/user/0/com.Kekstar.KeksNBriks/cache/WebView/Crash Reports does not exist or is not a directory
01-11 19:07:52.771 30321 30490 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
01-11 19:07:52.772 30321 30490 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
01-11 19:07:52.776 30321 30490 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
01-11 19:07:52.776 30321 30490 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
01-11 19:07:52.784 30321 30490 W VideoCapabilities: Unsupported mime video/divx
01-11 19:07:52.787 30321 30490 W VideoCapabilities: Unsupported mime video/divx311
01-11 19:07:52.791 30321 30490 W VideoCapabilities: Unsupported mime video/divx4
01-11 19:07:52.815 30321 30490 W VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
01-11 19:07:52.831 2405 6367 I ActivityManager: Process com.whatsapp (pid 29157) has died: cch+6CEM
01-11 19:07:52.819 30321 30490 W VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
01-11 19:07:52.831 30321 30490 W VideoCapabilities: Unsupported mime video/x-ms-wmv
01-11 19:07:52.831 2405 2431 W zygote64: kill(-29157, 9) failed: No such process
01-11 19:07:52.835 30321 30490 W VideoCapabilities: Unsupported mime video/x-ms-wmv
01-11 19:07:52.839 30321 30490 W VideoCapabilities: Unsupported mime video/x-ms-wmv
01-11 19:07:52.843 30321 30326 I zygote : Do partial code cache collection, code=62KB, data=50KB
01-11 19:07:52.843 30321 30326 I zygote : After code cache collection, code=58KB, data=48KB
01-11 19:07:52.843 30321 30326 I zygote : Increasing code cache capacity to 256KB
01-11 19:07:52.860 30321 30490 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
01-11 19:07:52.860 30321 30490 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
01-11 19:07:52.861 2405 2431 W zygote64: kill(-29157, 9) failed: No such process
01-11 19:07:52.861 2405 2431 I zygote64: Successfully killed process cgroup uid 10115 pid 29157 in 30ms
01-11 19:07:52.883 30321 30490 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
01-11 19:07:52.888 30321 30490 W Utils : could not parse long range '175-174'
01-11 19:07:53.887 30321 30509 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: Requesting configuration from https://publisher-config.unityads.unity3d.com/games/2999979/configuration?bundleId=com.Kekstar.KeksNBriks&encrypted=false&rooted=false&platform=android&sdkVersion=3000&osVersion=8.1.0&deviceModel=Mi%20A1&language=es_ES&test=false&analyticsUserId=31856414651ae8d36855504de90250a5&analyticsSessionId=3757875461421780140&deviceMake=Xiaomi&advertisingTrackingId=839da588-f406-482b-a390-473f998cea7c&limitAdTracking=false&frameworkName=Unity&frameworkVersion=2018.3.0f2&adapterName=AssetStore&adapterVersion=3.0.0
01-11 19:07:54.689 30321 30509 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWMiOjM0LCJjcGkiOjIxMiwiaWFwIjoxMDYsImx0diI6NDgsInBybyI6MTM2LCJ4cHIiOjE2OCwic3ViIjoiMngwN1ZlcHBZMzMxZTBSOUJYaW9tU2hraTZNelNhRjZmZDVIUmV5SDhHb2Y1VVN4VEVBMFI3ZjBlNzBNM2M2cTZnc2R6Zz09IiwiaWF0IjoxNTQ3MjMwMDc1LCJleHAiOjE1NDg0Mzk2NzUsImlzcyI6ImNvbWV0LnVuaXR5YWRzLnVuaXR5M2QuY29tIiwiY3JlYXRlZCI6MTUzNjAxMzgzMDAwMH0.cE3mJl9i4pSijDnsP8rRaKmrVQgNfmVHajUEIUYoSmI (A/B group 14)
01-11 19:07:54.740 3144 3144 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
01-11 19:07:54.744 3144 3144 D KeyguardUpdateMonitor: handleBatteryUpdate
01-11 19:07:55.042 30513 30321 F google-breakpad: Microdump skipped (uninteresting)
01-11 19:07:55.067 30321 30321 W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
01-11 19:07:55.067 30321 30321 W google-breakpad: Chrome build fingerprint:
01-11 19:07:55.067 30321 30321 W google-breakpad: 71.0.3578.99
01-11 19:07:55.067 30321 30321 W google-breakpad: 357809952
01-11 19:07:55.067 30321 30321 W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
01-11 19:07:55.370 30321 30321 D Unity : NativeCrashSerializer::EndReport() Success!
01-11 19:07:55.370 30321 30321 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000024a0
01-11 19:07:55.370 30321 30321 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-11 19:07:55.370 30321 30321 E CRASH : Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
01-11 19:07:55.370 30321 30321 E CRASH : Build fingerprint: 'xiaomi/tissot/tissot_sprout:8.1.0/OPM1.171019.026/V9.6.8.0.ODHMIFE:user/release-keys'
01-11 19:07:55.370 30321 30321 E CRASH : Revision: '0'
01-11 19:07:55.370 30321 30321 E CRASH : pid: 30321, tid: 30321, name: star.KeksNBriks >>> com.Kekstar.KeksNBriks <<<
01-11 19:07:55.370 30321 30321 E CRASH : r0 00000000 r1 000024a0 r2 00000000 r3 80000000
01-11 19:07:55.370 30321 30321 E CRASH : r4 00000000 r5 ffd32cc0 r6 ffd32cc0 r7 ffd33368
01-11 19:07:55.370 30321 30321 E CRASH : r8 ffd32e28 r9 dda2464c sl dda24638 fp dda24640
01-11 19:07:55.370 30321 30321 E CRASH : ip cbf09cc0 sp ffd32cb8 lr cb4765f8 pc ca95ab48 cpsr 00007671
01-11 19:07:55.370 30321 30321 E CRASH :
01-11 19:07:55.370 30321 30321 E CRASH : backtrace:
01-11 19:07:55.375 30321 30321 E CRASH : #00 pc 003c8b48 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (UnityEngine::PlatformWrapper::GetRendererAPI()+28)
01-11 19:07:55.375 30321 30321 E CRASH : #01 pc 003f40e0 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CrashReporting::CrashReport::CaptureMetadata()+852)
01-11 19:07:55.375 30321 30321 E CRASH : #02 pc 003f7454 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CrashReporting::CrashReporter::PopulateReportSharedData(CrashReporting::CrashReport&, bool)+40)
01-11 19:07:55.375 30321 30321 E CRASH : #03 pc 003f6ff8 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CrashReporting::CrashReporter::SendReport(CrashReporting::CrashReport&, bool)+36)
01-11 19:07:55.375 30321 30321 E CRASH : #04 pc 003f6f38 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CrashReporting::CrashReporter::HandleLog(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, LogType)+468)
01-11 19:07:55.375 30321 30321 E CRASH : #05 pc 003f6c44 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CrashReporting::CrashReporter::OnLogCallbackStatic(DebugStringToFileData const&, LogType, bool)+252)
01-11 19:07:55.375 30321 30321 E CRASH : #06 pc 003c7260 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (CallbackArray3<bool, bool, int>::Invoke(bool, bool, int)+104)

01-11 19:07:55.375 30321 30321 E CRASH : #07 pc 011bcc54 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)+192)
01-11 19:07:55.375 30321 30321 E CRASH : #08 pc 011bd364 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (DebugStringToFile(DebugStringToFileData const&)+488)
01-11 19:07:55.375 30321 30321 E CRASH : #09 pc 00c160a8 /data/app/com.Kekstar.KeksNBriks-aOeqK0TBcviGPP7nITk4-g==/lib/arm/libunity.so (Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool)+428)
01-11 19:07:55.375 30321 30321 E CRASH : #10 pc 000043e4 ( (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_LogException (System.Exception,UnityEngine.Object) {0xc16cd228} + 0x4c (0xdd884398 0xdd884438) [0xdf9a4f00 - Unity Root Domain]+17380)
01-11 19:07:55.375 30321 30321 E CRASH : #11 il 0000003b at (wrapper managed-to-native) UnityEngine.DebugLogHandler.Internal_LogException (System.Exception,UnityEngine.Object) <0x0003b>
01-11 19:07:55.375 30321 30321 E CRASH : #12 il 000000c3 at UnityEngine.DebugLogHandler.LogException (System.Exception,UnityEngine.Object) [0x00014] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.375 30321 30321 E CRASH : #13 il 000000e3 at UnityEngine.Logger.LogException (System.Exception,UnityEngine.Object) [0x00014] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.375 30321 30321 E CRASH : #14 il 00000097 at UnityEngine.Debug.LogException (System.Exception) [0x00008] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.375 30321 30321 E CRASH : #15 il 00000277 at UnityEngine.Monetization.Analytics.InitializeStandardEvents () [0x0006e] in <92abc20ef04340d8b0100d941d694adb>:0
01-11 19:07:55.375 30321 30321 E CRASH : #16 il 0000004f at UnityEngine.Monetization.Analytics.SetAnalyticsEventExtra (string,object) [0x00000] in <92abc20ef04340d8b0100d941d694adb>:0
01-11 19:07:55.376 30321 30321 E CRASH : #17 il 00000283 at UnityEngine.Monetization.Analytics.SetAnalyticsEventExtra (string) [0x0002b] in <92abc20ef04340d8b0100d941d694adb>:0
01-11 19:07:55.376 30321 30321 E CRASH : #18 il 0000004f at UnityEngine.Monetization.Android.AndroidAnalytics.onAddExtras (string) [0x00001] in <92abc20ef04340d8b0100d941d694adb>:0
01-11 19:07:55.376 30321 30321 E CRASH : #19 il 000000fb at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) [0x00053] in <92abc20ef04340d8b0100d941d694adb>:0
01-11 19:07:55.376 30321 30321 E CRASH : #20 il 00000043 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[ ],System.Exception&) <0x00043>
01-11 19:07:55.376 30321 30321 E CRASH : #21 il 0000026f at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo) [0x00038] in <ac823e2bb42b41bda67924a45a0173c3>:0
01-11 19:07:55.376 30321 30321 E CRASH : #22 il 00000097 at System.Reflection.MethodBase.Invoke (object,object[ ]) [0x00006] in <ac823e2bb42b41bda67924a45a0173c3>:0
01-11 19:07:55.376 30321 30321 E CRASH : #23 il 000003ab at UnityEngine.AndroidJavaProxy.Invoke (string,object[ ]) [0x00063] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.376 30321 30321 E CRASH : #24 il 0000033f at UnityEngine.AndroidJavaProxy.Invoke (string,UnityEngine.AndroidJavaObject[ ]) [0x0004d] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.376 30321 30321 E CRASH : #25 il 000003ef at UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy,intptr,intptr) [0x00066] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.376 30321 30321 E CRASH : #26 il 000000a3 at (wrapper runtime-invoke) <Module>.runtime_invoke_intptr_object_intptr_intptr (object,intptr,intptr,intptr) [0x0002c] in <004fc436a9154f7fab4df9679445af6c>:0
01-11 19:07:55.436 2405 16544 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=897, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@1b056c5)
01-11 19:07:55.436 2405 4218 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=899, [ Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN&FOREGROUND] ], android.os.BinderProxy@10db93c)
01-11 19:07:55.436 2405 16544 I ActivityManager: Process com.Kekstar.KeksNBriks (pid 30321) has died: fore TOP
01-11 19:07:55.436 612 664 E SurfaceFlinger: Failed to find layer (SurfaceView - com.Kekstar.KeksNBriks/com.unity3d.player.UnityPlayerActivity#0) in layer parent (no-parent).
01-11 19:07:55.437 2405 4192 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@3e3281a)
01-11 19:07:55.437 2405 4195 I WindowManager: WIN DEATH: Window{466f254 u0 com.Kekstar.KeksNBriks/com.unity3d.player.UnityPlayerActivity}
01-11 19:07:55.437 2405 2431 W zygote64: kill(-30321, 9) failed: No such process
01-11 19:07:55.439 30460 30460 I cr_ChildProcessService: Destroying ChildProcessService pid=30460
01-11 19:07:55.439 2405 16544 W ActivityManager: Force removing ActivityRecord{5c9c2ea u0 com.Kekstar.KeksNBriks/com.unity3d.player.UnityPlayerActivity t5696}: app died, no saved state
01-11 19:07:55.439 3144 3144 D StatusBar: disable<e i a s b h r c s q >
01-11 19:07:55.448 2405 16544 D ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{bcff8f7 com.android.launcher3} is now in focus and seems to be in full-screen mode
01-11 19:07:55.448 2405 16544 E ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.launcher3/com.android.searchlauncher.SearchLauncher/27
01-11 19:07:55.449 594 621 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
01-11 19:07:55.453 2405 16544 I ActivityManager: Killing 30460:com.android.chrome:sandboxed_process0/u0a169i308 (adj 0): isolated not needed
01-11 19:07:55.454 3144 23710 D KeyguardViewMediator: setOccluded false
01-11 19:07:55.456 3144 3144 D KeyguardViewMediator: adjustStatusBarLocked: mShowing=false mOccluded=false isSecure=true --> flags=0x0
01-11 19:07:55.468 2405 2441 W ActivityManager: setHasOverlayUi called on unknown pid: 30321
01-11 19:07:55.475 2405 2431 W zygote64: kill(-30321, 9) failed: No such process
01-11 19:07:55.478 2057 2057 I Zygote : Process 30321 exited due to signal (11)
01-11 19:07:55.484 2405 2434 D KernelUidCpuTimeReader: Removing uids 99308-99308
01-11 19:07:55.487 612 612 D SurfaceFlinger: duplicate layer name: changing com.android.launcher3/com.android.searchlauncher.SearchLauncher to com.android.launcher3/com.android.searchlauncher.SearchLauncher#1
01-11 19:07:55.505 2405 4195 D CompatibilityInfo: mCompatibilityFlags - 0
01-11 19:07:55.505 2405 4195 D CompatibilityInfo: applicationDensity - 480
01-11 19:07:55.505 2405 4195 D CompatibilityInfo: applicationScale - 1.0
01-11 19:07:55.512 30231 30231 W ThreadPoolDumper: Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
01-11 19:07:55.512 30231 30261 W SessionLifecycleManager: Handover failed. Creating new session controller.
01-11 19:07:55.521 2405 2431 W zygote64: kill(-30321, 9) failed: No such process
01-11 19:07:55.521 2405 2431 I zygote64: Successfully killed process cgroup uid 10169 pid 30321 in 84ms

Any help would be apreciated!

2 Likes

Forgot to delete internet variable.
It has no use. I tried to check if this was because of no internet connection but it was not the case.

Ok, I managed to make it work, although I’m not quite sure if it’s just a surface banndage…
I turned on Unity Analytics and now ads are shown perfectly and no signs of crashing.
It seems like some ProjectSettings and UnityConnectSettings attributes are not correctly set if you do not enable
Analytics. For example the cloudProjectId attribute had no value and now it has it.
Hope this can help someone!

3 Likes

@Unlimitedcsf

I have this same problem but turning on Unity Analytics didn’t fix it for me, did you do anything else?

1 Like

Thanks Unlimetedcsf it helped me right now! A weird solution to a weird problem, an ok workaround, but this must be a bug? ( My project was working fine with ads on Android, until today, then when I updated Unity to the latest version. Then I got the same crash after 5 seconds.)

MaxRim: I have also removed the Advertisement Package from my project Windows > Package Manager.
(I am really confused about what to use and not, this is my first Unity project with ads)

Hello, please, can you submit a ticket via BugRepoter?

Also getting this issue. Ruled out everything else, Monetization.Initialize(gameID,true); crashed my android build a few seconds after being called. No errors in the Editor.

I’m getting the same on Monetization.Initialize(gameID,true);

I’ll raise a ticket

Raised as Case 1123439
Note this wasnyw raieed on the latesr version,but I’ve just upgraded to the latest stable build and the same thing happens

I have the same problem. When I initialize advertisement game starts crashing and stops working. I have turned on all services. My script is the same as in unity documentation. Please help

same issue here, not exactly convincing us to change from ironSource with this…

also, can i get the link to the bug report? tried searching the issue tracker for “1123439” and nothing came up, cheers :slight_smile:

Same issue, when Calling Advertisement.Show(), game would freeze…

@andrewpmoore issue, was related to Unity Issue Tracker - [Android] App in CrashReporting::CrashReport::CaptureMetadata when handling a managed exception.

@wadit_tqveni-yvelasi-shuriano-elfebo @AlCaTrAzzGames @CyberInteractiveLLC If disabling CrashReporting service will not help you, please submit a bug report and post a ticket ID here. I will take a look.

so, whats the workaround? disabling crashreporting? where do I do that

EDIT finally found it, but, will ads work? Im testing it

Ads will work, let me know if it helped.

yes, they worked, thank you

1 Like

how do you turn off crash reporter?

You can find it under YourProjectName>ProjectSettings>UnityConnectSettings.asset find the line CrashReportingSettings and change m_Enabled to 0.

Thanks…I found this file and edited it using Notepad … and I get the same crash on Android.

4432132--405082--upload_2019-4-15_16-4-52.png

What is also strange is that it works fine running in the editor so I know the code is right. The code has compile directives that only compile ads for Android. I am running the editor on windows but with build settings set to Android. It shows the Ad like it is suppose to. I only get the crash if I am running on my Note 8 on Android.

Any other ideas… is editing with Notepad a problem?

@GamerRob
So it looks like your issue is unrelated to CrashReporting service. Please, can you make a development build, and share a stacktrace? Or just you can fill out a bug report with the repro steps and I will take a look.