- Home /
Is the parameter string of UnityPlayer.UnitySendMessage limited to 1MB in Unity2018.4.0 or later?,
I want to use UnityPlayer.UnitySendMessage of Unity2018.4.26f1 from the AAR plugin created in Android Studio and pass a Base64 character string exceeding 1MB to the third argument.
The error is displayed in the version of Unity2018.4.26f1 but it can be sent without any problem in Unity2018.3.14f1.
When I checked the third argument of UnityPlayer.nativeUnitySendMessage, I confirmed that it is a String type in Unity2018.3.14f1 but it is a byte type in Unity2018.4.0 or later.
Is the parameter string of UnityPlayer.UnitySendMessage limited to 1MB in Unity2018.4.0 or later? If you know anything about this, please let me know.
※Confirmed on Android 10
■logcat error log
D/Unity: NativeCrashSerializer::BeginReport failed to open report file at /storage/emulated/0/Android/data/jp.ne.app.test/files/Unity//PerformanceReporting/active_report D/Unity: NativeCrashSerializer::BeginThread without open m_ReportFile! D/Unity: NativeCrashSerializer::WriteFrame without open m_ReportFile! I/chatty: uid=10702(jp.ne.app.test) UnityMain identical 30 lines D/Unity: NativeCrashSerializer::WriteFrame without open m_ReportFile! D/Unity: NativeCrashSerializer::EndThread without open m_ReportFile! D/Unity: NativeCrashSerializer::EndReport without open m_ReportFile! E/CRASH: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr c8d10000 E/CRASH: E/CRASH: Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a' E/CRASH: Build fingerprint: 'google/blueline/blueline:10/QP1A.190711.019/5790879:user/release-keys' E/CRASH: Revision: 'MP1.0' E/CRASH: pid: 5248, tid: 5283, name: UnityMain >>> jp.ne.app.test <<< E/CRASH: r0 c8d10001 r1 afbca3b4 r2 ffdc8634 r3 00000042 E/CRASH: r4 c8d0dc58 r5 cb1ddba0 r6 dfef7a60 r7 c8f47a38 E/CRASH: r8 c8f47a30 r9 c8d0dc58 sl 00239d75 fp c8f47a08 E/CRASH: ip ca904f5c sp c8d0dc50 lr c9c0a170 pc f24e3c3a cpsr 000014a3 E/CRASH: backtrace: E/CRASH: #00 pc 00063c3a /apex/com.android.runtime/lib/bionic/libc.so (strncpy+4294799373) E/CRASH: #01 pc 00cbc16c /data/app/jp.ne.app.test-4YmcDFjhYwOKsa2sGAauOw==/lib/arm/libunity.so (nativeUnitySendMessage(_JNIEnv*, _jobject*, _jstring*, _jstring*, _jbyteArray*)+232) E/CRASH: #02 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #03 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #04 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #05 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #06 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #07 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #08 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #09 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #10 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #11 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #12 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #13 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #14 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #15 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #16 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #17 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #18 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #19 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #20 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #21 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #22 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #23 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #24 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #25 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #26 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #27 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #28 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #29 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #30 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: #31 pc 0000d519 /apex/com.android.runtime/lib/libart.so E/CRASH: memory near r1: E/CRASH: afbca394 31783273 3966435a 6a464c41 69634170 s2x1ZCf9ALFjpAci E/CRASH: afbca3a4 7750467a 5541486f 4674424d 764e5933 zFPwoHAUMBtF3YNv E/CRASH: afbca3b4 434a7742 635a734f 64675071 6559364d BwJCOsZcqPgdM6Ye E/CRASH: afbca3c4 686c5068 41334652 30784577 70674969 hPlhRF3AwEx0iIgp E/CRASH: afbca3d4 35543362 766e4f69 7861514f 49684f5a b3T5iOnvOQaxZOhI E/CRASH: afbca3e4 4f667855 34666239 55715443 457a5476 UxfO9bf4CTqUvTzE E/CRASH: afbca3f4 57744157 6c4a6d6c 3859676f 50434d38 WAtWlmJlogY88MCP E/CRASH: afbca404 48414a6f 33397747 644f304f 61647848 oJAHGw93O0OdHxda E/CRASH: afbca414 50507159 72426555 504b722f 724f4169 YqPPUeBr/rKPiAOr E/CRASH: afbca424 61686768 7a2f6c39 312b5577 58794551 hgha9l/zwU+1QEyX E/CRASH: afbca434 35524231 4447626d 4561524c 5137786d 1BR5mbGDLRaEmx7Q E/CRASH: afbca444 51414947 44653857 756f4762 7a436945 GIAQW8eDbGouEiCz E/CRASH: afbca454 6770784f 4f4e5844 5a423668 6d6c546d OxpgDXNOh6BZmTlm E/CRASH: afbca464 6a7a6c2f 66586152 6d31556b 43636243 /lzjRaXfkU1mCbcC E/CRASH: afbca474 6b2b4166 69374f66 32614759 4e77676e fA+kfO7iYGa2ngwN E/CRASH: afbca484 73347648 7a326531 72326b76 4a64476a Hv4s1e2zvk2rjGdJ
,
Your answer