Game crashes after trying to make button interactable

Hello, I am using Admob Rewarded Ads. I want to make “Watch ad” button interactable when I get info that video is loaded. I am using OnAdLoaded event like this

//rewardedAd is instance of RewardedAd class
this.rewardedAd.OnAdLoaded += this.HandleRewardBasedVideoLoaded;
public void HandleRewardBasedVideoLoaded(object sender, EventArgs args)
    {
        //WatchAdBtn - public Button
        Debug.Log("Ad loaded");
        WatchAdBtn.interactable = true;
    }

But when the ad is loaded my app crashes. I can see text “Ad loaded” in my device logs… When function HandleRewardBasedVideoLoaded is empty everything works fine :confused:

07-27 18:45:48.898 9396 9729 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000024a0
07-27 18:45:48.898 9396 9729 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-27 18:45:48.898 9396 9729 E CRASH : Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
07-27 18:45:48.898 9396 9729 E CRASH : Build fingerprint: 'HUAWEI/RNE-L21/HWRNE:8.0.0/HUAWEIRNE-L21/335(C738):user/release-keys'
07-27 18:45:48.898 9396 9729 E CRASH : Revision: '0'
07-27 18:45:48.898 9396 9729 E CRASH : pid: 9396, tid: 9729, name: Thread-100 >>> pl.starslab.spaceroll <<<
07-27 18:45:48.898 9396 9729 E CRASH : r0 00000000 r1 000024a0 r2 00000000 r3 00000000
07-27 18:45:48.898 9396 9729 E CRASH : r4 00000000 r5 9a7d2428 r6 9a7d2428 r7 9a7d2ad0
07-27 18:45:48.898 9396 9729 E CRASH : r8 9a7d2590 r9 d7df380c sl d7df37f8 fp d7df3800
07-27 18:45:48.898 9396 9729 E CRASH : ip c0889cc0 sp 9a7d2420 lr bfdf65f8 pc bf2dab48 cpsr 00002601
07-27 18:45:48.898 9396 9729 E CRASH :
07-27 18:45:48.898 9396 9729 E CRASH : backtrace:
07-27 18:45:48.908 9396 9729 E CRASH : #00 pc 003c8b48 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (UnityEngine::PlatformWrapper::GetRendererAPI()+28)
07-27 18:45:48.908 9396 9729 E CRASH : #01 pc 003f40e0 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (CrashReporting::CrashReport::CaptureMetadata()+852)
07-27 18:45:48.908 9396 9729 E CRASH : #02 pc 003f7454 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (CrashReporting::CrashReporter::PopulateReportSharedData(CrashReporting::CrashReport&, bool)+40)
07-27 18:45:48.908 9396 9729 E CRASH : #03 pc 003f6ff8 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (CrashReporting::CrashReporter::SendReport(CrashReporting::CrashReport&, bool)+36)
07-27 18:45:48.908 9396 9729 E CRASH : #04 pc 003f6f38 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/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)
07-27 18:45:48.908 9396 9729 E CRASH : #05 pc 003f6c44 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (CrashReporting::CrashReporter::OnLogCallbackStatic(DebugStringToFileData const&, LogType, bool)+252)
07-27 18:45:48.908 9396 9729 E CRASH : #06 pc 003c7260 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (CallbackArray3<bool, bool, int>::Invoke(bool, bool, int)+104)
07-27 18:45:48.908 9396 9729 E CRASH : #07 pc 011bcc54 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&)+192)
07-27 18:45:48.908 9396 9729 E CRASH : #08 pc 011bd364 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (DebugStringToFile(DebugStringToFileData const&)+488)
07-27 18:45:48.908 9396 9729 E CRASH : #09 pc 00c160a8 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool)+428)
07-27 18:45:48.909 9396 9729 E CRASH : #10 pc 00cbef28 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/lib/arm/libunity.so (UnityJavaProxy_LogLastJNIInvokeException(_JNIEnv*, _jobject*)+56)
07-27 18:45:48.909 9396 9729 E CRASH : #11 pc 00000767 /data/app/pl.starslab.spaceroll-pqn-2vP3GRZeDamuQEX2UQ==/oat/arm/base.odex (oatexec+4294756199)

You should probably look at the crash report instead of the log, which merely shows that you’ve correctly logged the crash report.