DefVideoAds (plugin for Unity ADS). Video ADS native extension

I’m back! :smiley:

When building DefVideoAds v3.4.8 with the latest Defold v1.2.164 build using http://build-stage.defold.com/ I get this crash on Android:

2020-09-29 17:43:42.679 30529-30577/com.winkelgames.juump E/defold: ERROR:CRASH: CALL STACK:

# 0 pc       0x1dc8 /system/bin/app_process64 <unknown>+0




--------- beginning of crash
2020-09-29 17:43:42.679 30529-30577/com.winkelgames.juump A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7d00000000 in tid 30577 (Thread-81), pid 30529 (nkelgames.juump)
2020-09-29 17:43:42.844 1311-1404/? E/AppIdleHistory: Error writing app idle file for user 0
2020-09-29 17:43:42.899 30811-30811/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-09-29 17:43:42.899 30811-30811/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus6T/OnePlus6T:10/QKQ1.190716.003/2007171848:user/release-keys'
2020-09-29 17:43:42.899 30811-30811/? A/DEBUG: Revision: '0'
2020-09-29 17:43:42.899 30811-30811/? A/DEBUG: ABI: 'arm64'
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG: Timestamp: 2020-09-29 17:43:42+0100
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG: pid: 30529, tid: 30577, name: Thread-81  >>> com.winkelgames.juump <<<
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG: uid: 10722
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7d00000000
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x0  0000007d00000000  x1  0000007d00000000  x2  00000000001fb856  x3  00000000001fb7a6
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x4  0000000000000000  x5  0000000080000000  x6  2e6c6e61ff634873  x7  7f7f7f7f7f7f7f7f
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x8  0101010101010101  x9  0000000000000001  x10 0000000000000000  x11 0000007dcae471f7
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x12 0000000000000000  x13 0000007dcae46bcd  x14 0000007dcae47241  x15 fffffffffffffff7
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x16 0000007dcaf278d8  x17 0000007ebb3d5a60  x18 0000007dc7450000  x19 0000007e1cb96380
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x20 0000007e1cb96380  x21 0000007e1cba8fe0  x22 0000007dcaf89630  x23 0000007dcae71396
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x24 0000007dcae7224f  x25 0000000000000008  x26 0000000000000001  x27 0000007e286f3020
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     x28 0000007fdf34ccf0  x29 0000007dca93fd10
2020-09-29 17:43:42.900 30811-30811/? A/DEBUG:     sp  0000007dca93f950  lr  0000007dcacf8820  pc  0000007ebb3d5a70
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG: backtrace:
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #00 pc 000000000007fa70  /apex/com.android.runtime/lib64/bionic/libc.so (strlen+16) (BuildId: a6a4a6a4e20240bbe3173fe560b161af)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #01 pc 00000000001b481c  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (lua_pushstring+72)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #02 pc 000000000007b368  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (luaL_push_pair_str_str(lua_State*, char*, char*)+48)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #03 pc 000000000007b134  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (DefUnityCallback_invoke_callback(int, char*, char*, char*, int, DefUnityAdsListener*)+456)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #04 pc 000000000007aef8  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (DefUnityCallback_callback_updates()+188)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #05 pc 0000000000079504  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (UpdateUnityAds(dmExtension::Params*)+20)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #06 pc 0000000000196cf4  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmScript::InternalUpdateExtensions(dmScript::Context*)+244)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #07 pc 00000000001921c4  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmScript::Update(dmScript::Context*)+40)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #08 pc 00000000000acd04  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmEngine::Step(dmEngine::Engine*)+544)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #09 pc 00000000000adb1c  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmEngineUpdate(dmEngine::Engine*)+20)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #10 pc 00000000000aa154  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmEngine::RunLoop(dmEngine::RunLoopParams const*)+92)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #11 pc 00000000000aa058  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (EngineMainThread(void*)+124)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #12 pc 000000000021ac00  /data/app/com.winkelgames.juump-KdMOolGY--EI926wnRBYcw==/lib/arm64/libJUUMP.so (dmThread::ThreadStartProxy(void*)+32)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #13 pc 00000000000e6890  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a6a4a6a4e20240bbe3173fe560b161af)
2020-09-29 17:43:42.903 30811-30811/? A/DEBUG:       #14 pc 0000000000084b6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a6a4a6a4e20240bbe3173fe560b161af)
2020-09-29 17:43:43.405 1311-30814/? W/ActivityTaskManager:   Force finishing activity com.winkelgames.juump/com.dynamo.android.DefoldActivity
2020-09-29 17:43:43.410 1260-1260/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_00
2020-09-29 17:43:43.447 1311-1405/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2020-09-29 17:43:43.447 1311-1405/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2020-09-29 17:43:43.456 572-572/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1311 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2020-09-29 17:43:43.458 1311-1405/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2020-09-29 17:43:43.458 1311-1405/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2020-09-29 17:43:43.529 572-572/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1311 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2020-09-29 17:43:43.544 1311-1408/? W/libprocessgroup: Failed to open process cgroup uid 99879 pid 30730: Permission denied
2020-09-29 17:43:43.544 1311-1408/? E/libprocessgroup: Error encountered killing process cgroup uid 99879 pid 30730: Permission denied
2020-09-29 17:43:43.544 572-572/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1311 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2020-09-29 17:43:43.545 1311-3860/? W/ActivityManager: Scheduling restart of crashed service com.winkelgames.juump/org.chromium.content.app.SandboxedProcessService1:0 in 1000ms
2020-09-29 17:43:43.653 1311-1846/? W/InputDispatcher: channel '71fc6f7 com.winkelgames.juump/com.dynamo.android.DefoldActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2020-09-29 17:43:43.654 1311-1846/? E/InputDispatcher: channel '71fc6f7 com.winkelgames.juump/com.dynamo.android.DefoldActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-09-29 17:43:43.659 1311-3856/? W/InputDispatcher: Attempted to unregister already unregistered input channel '71fc6f7 com.winkelgames.juump/com.dynamo.android.DefoldActivity (server)'
2020-09-29 17:43:43.666 572-572/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1311 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2020-09-29 17:43:43.674 572-572/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1311 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2020-09-29 17:43:43.696 911-911/? E/BufferQueueConsumer: disconnect by : /system/bin/surfaceflinger my_pid = 911
2020-09-29 17:43:43.724 1311-1392/? W/ActivityManager: setHasOverlayUi called on unknown pid: 30529
2020-09-29 17:43:43.726 22072-22112/? W/WeatherProvider: the weather application is not installed, may not receive the updates
2020-09-29 17:43:43.727 22072-23049/? W/WeatherProvider: the weather application is not installed, stop querying...
2020-09-29 17:43:43.906 1311-1392/? W/ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{b9150f5 u0 com.winkelgames.juump/com.dynamo.android.DefoldActivity t-1 f}

The ad implementation in the game hasn’t changed. Any idea what might cause this? I’m not certain it’s to do with DefVideoAds, but the “DefUnityCallback” appears to suggest it is?