com.unity.webrtc
com.unity.webrtc copied to clipboard
[BUG] Android app crash on launch
Android build crashes as soon as it launches if the plugin is installed. The crash happens before any C# script runs. This is not a solution but just to check, if I disable "Load On Start Up", the app launches then crashes when it tries to initialize the library. IL2CPP and arm64 are selected, I have also tried various android API versions but no luck. Are there anything else to check? What related software versions do I need to use for this lib? Any info appreciated.
Reproducible step on my system is quite easy as follows;
- create a new empty 3d unity2020.3 project (currently trying on 2020.3.0f1)
- set the build target to android, select IL2CPP and arm64 --> try to build and run at this point. It works.
- import webrtc 2.4.0.exp3 (no need to write any code.). --> now build and run again, then you get the error.
The log looks like this;
06-13 15:48:12.153: E/CRASH(17882): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-13 15:48:12.153: E/CRASH(17882): Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a' 06-13 15:48:12.153: E/CRASH(17882): Build fingerprint: 'google/flame/flame:11/RQ1A.210205.004/7038034:user/release-keys' 06-13 15:48:12.153: E/CRASH(17882): Revision: 'MP1.0' 06-13 15:48:12.153: E/CRASH(17882): ABI: 'arm64' 06-13 15:48:12.153: E/CRASH(17882): Timestamp: 2021-06-13 15:48:12+0900 06-13 15:48:12.153: E/CRASH(17882): pid: 17882, tid: 17904, name: UnityMain >>> com.DefaultCompany.IL2CPPTEST <<< 06-13 15:48:12.153: E/CRASH(17882): uid: 10321 06-13 15:48:12.153: E/CRASH(17882): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 06-13 15:48:12.153: E/CRASH(17882): Cause: null pointer dereference 06-13 15:48:12.153: E/CRASH(17882): x0 0000007afe64da90 x1 0000007a87015dbc x2 0000000000000013 x3 737968507465476b 06-13 15:48:12.153: E/CRASH(17882): x4 0000007a87015b76 x5 0000007a859e9e8c x6 7665447465476b76 x7 41636f7250656369 06-13 15:48:12.153: E/CRASH(17882): x8 0000007afe64da90 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000 06-13 15:48:12.153: E/CRASH(17882): x12 6563697665447465 x13 72646441636f7250 x14 0000000000000107 x15 0000000000000012 06-13 15:48:12.153: E/CRASH(17882): x16 00000079a7f73208 x17 0000007d7e9e02c0 x18 00000000ac3b7fa9 x19 0000007a01083f78 06-13 15:48:12.153: E/CRASH(17882): x20 0000007a872efd78 x21 0000007afe64da90 x22 0000007afe64d990 x23 0000007bae6a8110 06-13 15:48:12.153: E/CRASH(17882): x24 0000007a01083f60 x25 0000007a01083f78 x26 0000000000000000 x27 0000000000000000 06-13 15:48:12.153: E/CRASH(17882): x28 0000000000000000 x29 0000007a00c43d80 06-13 15:48:12.153: E/CRASH(17882): sp 0000007a859e9ec0 lr 0000007a86c0365c pc 0000000000000000 06-13 15:48:12.238: E/CRASH(17882): Tombstone written to: /storage/emulated/0/Android/data/com.DefaultCompany.IL2CPPTEST/files/tombstone_00
@unnamed7 Please tell the android device name. We have received reports that the same issue from users.
@karasusan do-mo, It's Pixel4 - Android V11.
@karasusan Hi Matsumotosan, I checked with another device, ZTE AXON7 Android7.0. Also changed Unity version to the latest 3.11f1. The result was the same, crash as soon as it launches. This time though, I got a better crash dump than on pixel4, looks like something to do with the vulkan lib. Hope this helps, yoroshiku onegaishimasu.
06-13 23:11:36.921: E/CRASH(24972): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-13 23:11:36.921: E/CRASH(24972): Version '2020.3.11f1 (99c7afb366b3)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a' 06-13 23:11:36.921: E/CRASH(24972): Build fingerprint: 'ZTE/P996A04_JP/ailsa_ii:7.1.1/NMF26V/20180808.170213:user/release-keys' 06-13 23:11:36.921: E/CRASH(24972): Revision: '0' 06-13 23:11:36.921: E/CRASH(24972): ABI: 'arm64' 06-13 23:11:36.921: E/CRASH(24972): Timestamp: 2021-06-13 23:11:36+0900 06-13 23:11:36.921: E/CRASH(24972): pid: 24972, tid: 24993, name: UnityMain >>> com.DefaultCompany.IL2CPPTEST <<< 06-13 23:11:36.921: E/CRASH(24972): uid: 10143 06-13 23:11:36.921: E/CRASH(24972): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2c 06-13 23:11:36.921: E/CRASH(24972): Cause: null pointer dereference 06-13 23:11:36.921: E/CRASH(24972): x0 0000000000000001 x1 0000007f67165508 x2 0000000000000046 x3 0000000000000045 06-13 23:11:36.921: E/CRASH(24972): x4 0000000000000000 x5 09020d08070a0619 x6 19060a07080d0209 x7 00000000e05a88cc 06-13 23:11:36.921: E/CRASH(24972): x8 0000007f874d7540 x9 0000000000000004 x10 0101010101010101 x11 0000000000000003 06-13 23:11:36.921: E/CRASH(24972): x12 000000000ccccccc x13 000000008000002f x14 0000007f89a71fa8 x15 0000007f89a71c4c 06-13 23:11:36.921: E/CRASH(24972): x16 0000007f874d7da8 x17 0000007f899e7b5c x18 0000000000000000 x19 0000007f67165505 06-13 23:11:36.921: E/CRASH(24972): x20 000000000000002c x21 7647f46340162d6c x22 0000007f874d7320 x23 0000007f874d6ce0 06-13 23:11:36.921: E/CRASH(24972): x24 0000000000000000 x25 0000000000000000 x26 0000007f874d7320 x27 0000007f671658f2 06-13 23:11:36.921: E/CRASH(24972): x28 0000007f6b5e3000 x29 0000007f7e567fd0 06-13 23:11:36.921: E/CRASH(24972): sp 0000007f7e567f70 lr 0000007f874c484c pc 0000007f874c4850 06-13 23:11:36.921: E/CRASH(24972): backtrace: 06-13 23:11:36.921: E/CRASH(24972): #00 pc 000000000000b850 /system/lib64/libvulkan.so (BuildId: 612cfc3ae220c6dc5432dad35ee9e3a5) 06-13 23:11:36.921: E/CRASH(24972): #01 pc 0000000000122764 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libwebrtc.so (unity::webrtc::LoadInstanceVulkanFunction(VkInstance_T*)+36) 06-13 23:11:36.921: E/CRASH(24972): #02 pc 00000000001231c4 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libwebrtc.so (unity::webrtc::Hook_vkCreateInstance(VkInstanceCreateInfo const*, VkAllocationCallbacks const*, VkInstance_T**)+520) 06-13 23:11:36.921: E/CRASH(24972): #03 pc 0000000000339644 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #04 pc 0000000000337d4c /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #05 pc 0000000000464dfc /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #06 pc 00000000002eef04 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #07 pc 00000000002dbb2c /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #08 pc 00000000002dc654 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #09 pc 00000000002f0aa0 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:36.921: E/CRASH(24972): #10 pc 00000000000950e0 /data/app/com.DefaultCompany.IL2CPPTEST-1/oat/arm64/base.odex 06-13 23:11:36.951: E/choj(2629): ~~~ Channel {0} was not shutdown properly!!! ~~~ 06-13 23:11:36.951: E/choj(2629): Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true. 06-13 23:11:37.141: E/CRASH(24972): Tombstone written to: /storage/emulated/0/Android/data/com.DefaultCompany.IL2CPPTEST/files/tombstone_01 06-13 23:11:37.151: E/AndroidRuntime(24972): FATAL EXCEPTION: UnityMain 06-13 23:11:37.151: E/AndroidRuntime(24972): Process: com.DefaultCompany.IL2CPPTEST, PID: 24972 06-13 23:11:37.151: E/AndroidRuntime(24972): java.lang.Error: FATAL EXCEPTION [UnityMain] 06-13 23:11:37.151: E/AndroidRuntime(24972): Unity version : 2020.3.11f1 06-13 23:11:37.151: E/AndroidRuntime(24972): Device model : ZTE ZTE A2017G 06-13 23:11:37.151: E/AndroidRuntime(24972): Device fingerprint: ZTE/P996A04_JP/ailsa_ii:7.1.1/NMF26V/20180808.170213:user/release-keys 06-13 23:11:37.151: E/AndroidRuntime(24972): Build Type : Release 06-13 23:11:37.151: E/AndroidRuntime(24972): Scripting Backend : IL2CPP 06-13 23:11:37.151: E/AndroidRuntime(24972): ABI : arm64-v8a 06-13 23:11:37.151: E/AndroidRuntime(24972): Strip Engine Code : true 06-13 23:11:37.151: E/AndroidRuntime(24972): Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-13 23:11:37.151: E/AndroidRuntime(24972): Version '2020.3.11f1 (99c7afb366b3)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a' 06-13 23:11:37.151: E/AndroidRuntime(24972): Build fingerprint: 'ZTE/P996A04_JP/ailsa_ii:7.1.1/NMF26V/20180808.170213:user/release-keys' 06-13 23:11:37.151: E/AndroidRuntime(24972): Revision: '0' 06-13 23:11:37.151: E/AndroidRuntime(24972): ABI: 'arm64' 06-13 23:11:37.151: E/AndroidRuntime(24972): Timestamp: 2021-06-13 23:11:36+0900 06-13 23:11:37.151: E/AndroidRuntime(24972): pid: 24972, tid: 24993, name: UnityMain >>> com.DefaultCompany.IL2CPPTEST <<< 06-13 23:11:37.151: E/AndroidRuntime(24972): uid: 10143 06-13 23:11:37.151: E/AndroidRuntime(24972): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2c 06-13 23:11:37.151: E/AndroidRuntime(24972): Cause: null pointer dereference 06-13 23:11:37.151: E/AndroidRuntime(24972): x0 0000000000000001 x1 0000007f67165508 x2 0000000000000046 x3 0000000000000045 06-13 23:11:37.151: E/AndroidRuntime(24972): x4 0000000000000000 x5 09020d08070a0619 x6 19060a07080d0209 x7 00000000e05a88cc 06-13 23:11:37.151: E/AndroidRuntime(24972): x8 0000007f874d7540 x9 0000000000000004 x10 0101010101010101 x11 0000000000000003 06-13 23:11:37.151: E/AndroidRuntime(24972): x12 000000000ccccccc x13 000000008000002f x14 0000007f89a71fa8 x15 0000007f89a71c4c 06-13 23:11:37.151: E/AndroidRuntime(24972): x16 0000007f874d7da8 x17 0000007f899e7b5c x18 0000000000000000 x19 0000007f67165505 06-13 23:11:37.151: E/AndroidRuntime(24972): x20 000000000000002c x21 7647f46340162d6c x22 0000007f874d7320 x23 0000007f874d6ce0 06-13 23:11:37.151: E/AndroidRuntime(24972): x24 0000000000000000 x25 0000000000000000 x26 0000007f874d7320 x27 0000007f671658f2 06-13 23:11:37.151: E/AndroidRuntime(24972): x28 0000007f6b5e3000 x29 0000007f7e567fd0 06-13 23:11:37.151: E/AndroidRuntime(24972): sp 0000007f7e567f70 lr 0000007f874c484c pc 0000007f874c4850 06-13 23:11:37.151: E/AndroidRuntime(24972): backtrace: 06-13 23:11:37.151: E/AndroidRuntime(24972): #00 pc 000000000000b850 /system/lib64/libvulkan.so (BuildId: 612cfc3ae220c6dc5432dad35ee9e3a5) 06-13 23:11:37.151: E/AndroidRuntime(24972): #01 pc 0000000000122764 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libwebrtc.so (unity::webrtc::LoadInstanceVulkanFunction(VkInstance_T*)+36) 06-13 23:11:37.151: E/AndroidRuntime(24972): #02 pc 00000000001231c4 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libwebrtc.so (unity::webrtc::Hook_vkCreateInstance(VkInstanceCreateInfo const*, VkAllocationCallbacks const*, VkInstance_T**)+520) 06-13 23:11:37.151: E/AndroidRuntime(24972): #03 pc 0000000000339644 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #04 pc 0000000000337d4c /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #05 pc 0000000000464dfc /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #06 pc 00000000002eef04 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #07 pc 00000000002dbb2c /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #08 pc 00000000002dc654 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #09 pc 00000000002f0aa0 /data/app/com.DefaultCompany.IL2CPPTEST-1/lib/arm64/libunity.so (BuildId: fdea918006aec52a7f2bfda788f14328c9198f1d) 06-13 23:11:37.151: E/AndroidRuntime(24972): #10 pc 00000000000950e0 /data/app/com.DefaultCompany.IL2CPPTEST-1/oat/arm64/base.odex 06-13 23:11:37.151: E/AndroidRuntime(24972): at libvulkan.0xb850(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libwebrtc.unity::webrtc::LoadInstanceVulkanFunction(VkInstance_T*)(LoadInstanceVulkanFunction:36) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libwebrtc.unity::webrtc::Hook_vkCreateInstance(VkInstanceCreateInfo const*, VkAllocationCallbacks const*, VkInstance_T**)(Hook_vkCreateInstance:520) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x339644(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x337d4c(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x464dfc(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x2eef04(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x2dbb2c(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x2dc654(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at libunity.0x2f0aa0(Native Method) 06-13 23:11:37.151: E/AndroidRuntime(24972): at base.0x950e0(Native Method)
Tried to remove vulkan from player settigs -> graphics API and forcing it to use openGLes3 and now it launches!
(looks like it is having networking troubles now though. Seems still a long way to go..).
Cheers,
Takashi
@unnamed7 This is valuable information for supporting Android.
@unnamed7 We released the latest version of the package. Is the issue reproduced with it?
I am having the same situation but moreover have this error "Unable to find libwebrtc". I created a new project using Unity 2019.4.29f with URP template. Download WebRTC 2.4.0-exp.4 not via package manager but directly source code from github repo (because I thought I could workaround the issue somehow but nope). Build successfully with IL2CPP, arm64 (with armv7 disabled) and WebRTC package's sample scene but the app instantly crashes when opening.
I opened the app in emulator with android 7 due to not owning any android devices right now.
Here the log I got:
08-25 17:06:28.513: I/Unity(3711): MemoryManager: Using 'Dynamic Heap' Allocator.
08-25 17:06:28.549: W/PlayCommon(1777): [63] atno.m(1): No account for auth token provided
08-25 17:06:28.549: I/PlayCommon(1777): [63] atno.h(166): Connecting to server: https://play.googleapis.com/play/log?format=raw&proto_v2=true
08-25 17:06:28.553: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.553: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.553: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.553: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.553: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.assetpacks.AssetPackStateUpdateListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.553: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.553: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.553: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.553: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.553: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.553: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.553: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$d>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/tasks/OnCompleteListener;
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.tasks.OnCompleteListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.554: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$e>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/tasks/OnCompleteListener;
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.tasks.OnCompleteListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.554: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.554: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.assetpacks.AssetPackStateUpdateListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.554: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.554: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.554: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.554: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.554: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.554: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.555: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$c>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/tasks/OnSuccessListener;
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.555: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.555: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.555: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.555: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.tasks.OnSuccessListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.555: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.555: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.555: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.555: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.555: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.555: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.555: I/art(3711): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.555: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.555: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.555: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.555: I/art(3711): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.assetpacks.AssetPackStateUpdateListener" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/lib/arm64, /data/app/com.DefaultCompany.TestRenderStreamingAndroid2-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-25 17:06:28.555: I/art(3711): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
08-25 17:06:28.555: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
08-25 17:06:28.555: I/art(3711): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
08-25 17:06:28.555: I/art(3711): at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
08-25 17:06:28.555: I/art(3711): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
08-25 17:06:28.555: I/art(3711): at void android.os.Looper.loop() (Looper.java:154)
08-25 17:06:28.555: I/art(3711): at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
08-25 17:06:28.558: I/Unity(3711): SystemInfo CPU =
@zshin1996 We have not tested it on Android simulator. I will try that. Thanks for the info.
Hello !
I am affected by the same bug. Forcing OpenGL ES 3, as @unnamed7 instructed, also fixed the bug.
I managed to get the tombstone from the crash (the coredump) with way more information than ADB logs. It might interest you @karasusan.
Tested on :
- Samsung Galaxy S20 FE - Android 11
- OnePlus 9 (LE2113) - Android 11
Unity Version :
- 2020.3.18f1
WebRTC Plugin version
- 2.4.0-exp.4 from this git (no modification)
Compilations config :
- IL2CPP, ARM64, Api Compat Level .NET 4.X & .NET Standard 2.0, Debug & Release (all crashed)
Only fix found : Forcing OpenGL ES 3
@maeln Thanks, we will check this issue.
memo: WRS-190, WRS-191
Android build crashes as soon as it launches if the plugin is installed. The crash happens before any C# script runs. This is not a solution but just to check, if I disable "Load On Start Up", the app launches then crashes when it tries to initialize the library. IL2CPP and arm64 are selected, I have also tried various android API versions but no luck. Are there anything else to check? What related software versions do I need to use for this lib? Any info appreciated.
Reproducible step on my system is quite easy as follows;
- create a new empty 3d unity2020.3 project (currently trying on 2020.3.0f1)
- set the build target to android, select IL2CPP and arm64 --> try to build and run at this point. It works.
- import webrtc 2.4.0.exp3 (no need to write any code.). --> now build and run again, then you get the error.
The log looks like this;
06-13 15:48:12.153: E/CRASH(17882): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-13 15:48:12.153: E/CRASH(17882): Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a' 06-13 15:48:12.153: E/CRASH(17882): Build fingerprint: 'google/flame/flame:11/RQ1A.210205.004/7038034:user/release-keys' 06-13 15:48:12.153: E/CRASH(17882): Revision: 'MP1.0' 06-13 15:48:12.153: E/CRASH(17882): ABI: 'arm64' 06-13 15:48:12.153: E/CRASH(17882): Timestamp: 2021-06-13 15:48:12+0900 06-13 15:48:12.153: E/CRASH(17882): pid: 17882, tid: 17904, name: UnityMain >>> com.DefaultCompany.IL2CPPTEST <<< 06-13 15:48:12.153: E/CRASH(17882): uid: 10321 06-13 15:48:12.153: E/CRASH(17882): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 06-13 15:48:12.153: E/CRASH(17882): Cause: null pointer dereference 06-13 15:48:12.153: E/CRASH(17882): x0 0000007afe64da90 x1 0000007a87015dbc x2 0000000000000013 x3 737968507465476b 06-13 15:48:12.153: E/CRASH(17882): x4 0000007a87015b76 x5 0000007a859e9e8c x6 7665447465476b76 x7 41636f7250656369 06-13 15:48:12.153: E/CRASH(17882): x8 0000007afe64da90 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000 06-13 15:48:12.153: E/CRASH(17882): x12 6563697665447465 x13 72646441636f7250 x14 0000000000000107 x15 0000000000000012 06-13 15:48:12.153: E/CRASH(17882): x16 00000079a7f73208 x17 0000007d7e9e02c0 x18 00000000ac3b7fa9 x19 0000007a01083f78 06-13 15:48:12.153: E/CRASH(17882): x20 0000007a872efd78 x21 0000007afe64da90 x22 0000007afe64d990 x23 0000007bae6a8110 06-13 15:48:12.153: E/CRASH(17882): x24 0000007a01083f60 x25 0000007a01083f78 x26 0000000000000000 x27 0000000000000000 06-13 15:48:12.153: E/CRASH(17882): x28 0000000000000000 x29 0000007a00c43d80 06-13 15:48:12.153: E/CRASH(17882): sp 0000007a859e9ec0 lr 0000007a86c0365c pc 0000000000000000 06-13 15:48:12.238: E/CRASH(17882): Tombstone written to: /storage/emulated/0/Android/data/com.DefaultCompany.IL2CPPTEST/files/tombstone_00
Same issue Please any help unity version 2020.3.19f1
This issue still happens on 2.4.0-exp.5.
Tested on : Pixel3a - Android 12
Unity Version : 2020.3.10f1 WebRTC Plugin version
2.4.0-exp.5 from this git (no modification) Compilations config : IL2CPP, ARM64, Api Compat Level .NET 4.X & .NET Standard 2.0, Debug & Release
Only works when we force the OpenGL ES 3.
I listed devices which are reported on this issue.
- Samsung Galaxy S20 FE - Android 11
- OnePlus 9 (LE2113) - Android 11
- Pixel4 - Android V11
- Pixel3a - Android 12
Not sure these issues are the same cause, but we are going to get the device in the list.
We found the issue that setting enable Optimized Frame Pacing
in Player Settings Window occurs the crash when using Android vulkan. Please check your settings and reply your result.
Thank you so much for letting us know. Disable Optimized Frame Pacing in Player Settings Window works on Pixel3a - Android 12 and Aquos SH-01K - Android 9.
@yasuohasegawa Thank you so much for your reply. I am not sure why this parameter occurs the crash, but we will investigate the issue near future.
Same issue on Pico Neo 3 (Android V10), but not resolved by this fix.
We found the issue that setting enable
Optimized Frame Pacing
in Player Settings Window occurs the crash when using Android vulkan. Please check your settings and reply your result.
@Mikeye666 Thank you for sharing. We know that some devices will still cause an error, so we will investigate.
The issue occurs on Quest 1 when using Vulkan and with Optimized Frame Pacing disabled
Optimized Frame Pacing: Disabled solved the issue on: Lenovo Tab V7 Huawei P30 Pro
BTW, I am using RenderStreaming and came here to find a fix for the issue. Maybe consider letting people know about this over on the RenderStreaming repo
@CarlosDanielFP Sure. I will add the note for the issue in the package document.
@karasusan Hi, I have a same issue as @zshin1996. When I tried to launch my webrtc app in android, I got the error.
04-29 15:46:42.164 E 14051 14076 Unity : Unable to find libwebrtc
I set the options as required. https://docs.unity3d.com/Packages/[email protected]/manual/requirements.html Scripting backend - IL2CPP Target Architectures - ARM64 (Do disable ARMv7)
And I can find libwebrtc.so file in my app's lib directory on device.
I have tested on Unity 2019.4.36f1, WebRTC 2.4.0-exp.6 with Samsung SM-G988B Android 12 Samsung SM-G908U Android 12 Samsung SM-G950F Android 8
@jinnyuri Have you tried that? https://github.com/Unity-Technologies/com.unity.webrtc/issues/437#issuecomment-1047388803
@karasusan The error occurs with or without that option. Unity : Unable to find libwebrtc
My problem is not the crash. There is no crash. Just unable to find libwebrtc.
Additional comment 1 -
I tried to run WebRTC samples with Unity 2020.3.28f1. The error (Unity : Unable to find libwebrtc) was not occured.
But sorry for that I have to use Unity 2019 version at this moment. Could you look for problems with the Unity version?
Additional comment 2 -
I found that WebRTC was performed with or without an error log. Now my unity project works fine.
@jinnyuri That's good. What cause of the issue do you think?
@karasusan The error still exist on Unity 2019 version. Looking at the contents of the error, it seems that it should not work. However it works fine. Such a wierd situation.
Hihi, also crashed. Here's what i picked from logs. Am on a samsung note10.
I checked frame pacing is not enabled
2022/08/22 02:06:13.681 15204 18400 Info Unity MemoryManager: Using 'Dynamic Heap' Allocator. 2022/08/22 02:06:13.704 15204 18400 Info Unity SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 7419mb 2022/08/22 02:06:13.704 15204 18400 Info Unity SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf) 2022/08/22 02:06:13.705 15204 18400 Info Unity ApplicationInfo com.x.x version 1.1081 2022/08/22 02:06:13.705 15204 18400 Info Unity Built from '2021.3/staging' branch, Version '2021.3.6f1 (7da38d85baf6)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'
2022/08/22 01:25:52.020 8180 11977 Error rtc # 2022/08/22 01:25:52.020 8180 11977 Error rtc # Fatal error in: ../src/sdk/android/src/jni/jni_generator_helper.cc, line 28 2022/08/22 01:25:52.020 8180 11977 Error rtc # last system error: 88 2022/08/22 01:25:52.020 8180 11977 Error rtc # Check failed: !clazz.is_null() 2022/08/22 01:25:52.020 8180 11977 Error rtc # org/webrtc/WebRtcClassLoader
2022/08/22 01:25:52.243 8180 11977 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.x.x/files/tombstone_01 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] No pending exception expected: java.lang.ClassNotFoundException: org.webrtc.WebRtcClassLoader 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (Runtime.java:-2) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1131) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at void java.lang.Runtime.load0(java.lang.Class, java.lang.String) (Runtime.java:937) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at void java.lang.System.load(java.lang.String) (System.java:1628) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at void android.os.Looper.loop() (Looper.java:246) 2022/08/22 01:25:52.243 8180 11977 Fatal asslet.x thread.cc:2361] at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2022/08/22 02:06:13.878 15204 18400 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/08/22 02:06:13.878 15204 18400 Error CRASH Version '2021.3.6f1 (7da38d85baf6)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/08/22 02:06:13.878 15204 18400 Error CRASH Build fingerprint: 'samsung/d1xx/d1:11/RP1A.200720.012/N970FXXU6ETLL:user/release-keys'
2022/08/22 02:06:13.878 15204 18400 Error CRASH Revision: '23'
2022/08/22 02:06:13.878 15204 18400 Error CRASH ABI: 'arm64'
2022/08/22 02:06:13.878 15204 18400 Error CRASH Timestamp: 2022-08-22 02:06:13+0800
2022/08/22 02:06:13.878 15204 18400 Error CRASH pid: 15204, tid: 18400, name: UnityMain >>> com.x.x <<<
2022/08/22 02:06:13.878 15204 18400 Error CRASH uid: 11134
2022/08/22 02:06:13.878 15204 18400 Error CRASH signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2022/08/22 02:06:13.878 15204 18400 Error CRASH x0 0000000000000000 x1 00000000000047e0 x2 0000000000000006 x3 00000078133c5dc0
2022/08/22 02:06:13.878 15204 18400 Error CRASH x4 fefeff77fefeff71 x5 fefeff77fefeff71 x6 fefeff77fefeff71 x7 7f7f7f7f7f7f7f7f
2022/08/22 02:06:13.878 15204 18400 Error CRASH x8 00000000000000f0 x9 0000007b1ea71988 x10 ffffff80fffffbdf x11 0000000000000001
2022/08/22 02:06:13.878 15204 18400 Error CRASH x12 00000078133c46e0 x13 00000000000000a9 x14 0000000000000000 x15 000027e0153a9932
2022/08/22 02:06:13.878 15204 18400 Error CRASH x16 0000007b1eb0ac80 x17 0000007b1eaec7b0 x18 000000000000000d x19 00000000000000ac
2022/08/22 02:06:13.878 15204 18400 Error CRASH x20 0000000000003b64 x21 00000000000000b2 x22 00000000000047e0 x23 00000000ffffffff
2022/08/22 02:06:13.878 15204 18400 Error CRASH x24 00000076d7947558 x25 00000078eabec5f0 x26 000000789ac17070 x27 0000000000000068
2022/08/22 02:06:13.878 15204 18400 Error CRASH x28 0000000000000000 x29 00000078133c5e40
2022/08/22 02:06:13.878 15204 18400 Error CRASH sp 00000078133c5da0 lr 0000007b1ea9f8cc pc 0000007b1ea9f8fc
2022/08/22 02:06:13.878 15204 18400 Error CRASH backtrace:
2022/08/22 02:06:13.878 15204 18400 Error CRASH #00 pc 000000000004e8fc /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: 6df669a33ad6f86821878f8147088504)
2022/08/22 02:06:13.878 15204 18400 Error CRASH #01 pc 000000000018b9cc /data/app/~~TMOJo0lUz0_JtW9Coo_9eQ==/com.x.x-dDUnsHhjIroVT1V_C7W9aA==/lib/arm64/libwebrtc.so (rtc::webrtc_checks_impl::UnreachableCodeReached())
2022/08/22 02:06:13.878 15204 18400 Error CRASH #02 pc 000000000018b964 /data/app/~~TMOJo0lUz0_JtW9Coo_9eQ==/com.x.x-dDUnsHhjIroVT1V_C7W9aA==/lib/arm64/libwebrtc.so (std::__ndk1::basic_string<char, std::__ndk1::char_traits
saw this as well but not sure if relevant
2022/08/22 02:10:37.251 18991 18991 Fatal DEBUG backtrace:
2022/08/22 02:10:37.251 18991 18991 Fatal DEBUG #00 pc 0000000000594c9c /apex/com.android.art/lib64/libart.so (void art::StackVisitor::WalkStack<(art::StackVisitor::CountTransitions)0>(bool)+156) (BuildId: db802ac545b9fe252e5b2b8cb9a63fb1)
2022/08/22 02:10:37.251 18991 18991 Fatal DEBUG #01 pc 00000000005bd7b0 /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits
Hi i managed to workaround my issue. Based on this issue highlighted in the below issues, there were signs it was linked to Proguard:
https://github.com/react-native-webrtc/react-native-webrtc/issues/590 https://github.com/twilio/voice-quickstart-android/issues/298#issuecomment-626402046
So i disabled "Minify Release" and it now works. I tested it on a completely new project using the unity webrtc samples and it can be replicated by:
- Turning on Minify Release in Publishing setting
- Il2CPP and ARM64
The android app will 100% crash. I've logged a unity bug https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-14521
@karasusan
Hint: 2022/08/22 01:25:52.020 8180 11977 Error rtc # 2022/08/22 01:25:52.020 8180 11977 Error rtc # Fatal error in: ../src/sdk/android/src/jni/jni_generator_helper.cc, line 28 2022/08/22 01:25:52.020 8180 11977 Error rtc # last system error: 88 2022/08/22 01:25:52.020 8180 11977 Error rtc # Check failed: !clazz.is_null() 2022/08/22 01:25:52.020 8180 11977 Error rtc # org/webrtc/WebRtcClassLoader
@enigmablue Wow, this is a valuable information! Thank you!