Search Unity

Bug Application crash when entering a large number of characters

Discussion in 'Android' started by CeleDko, Nov 9, 2020.

  1. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    27
    Hello everybody! My problem is that when I enter a lot of characters in the input field, my application just crashes! I do not understand what the problem is. I tried to put both standard unity input field and tmp.
    • Message: Native Crash - Unknown Function (/system/lib/libc.so)
    • Stack Trace: Unknown Function (/system/lib/libc.so)
    The following message comes to the report in Cloud Diagnostic:

    Native StackTrace:

    Thread 0 (crashed)
    0 libc.so 0x00000000b6d164c6 <system symbols missing>
    1 libc.so 0x00000000b6d19443 <system symbols missing>
    2 libunity.so 0x00000000a096cfd1 MemoryManager::Deallocate(void*, MemLabelId, char const*, int)
    3 libunity.so 0x00000000a096cfd1 MemoryManager::Deallocate(void*, MemLabelId, char const*, int)
    4 libunity.so 0x00000000a096ccd3 free_alloc_internal(void*, MemLabelId, char const*, int)
    5 libunity.so 0x00000000a08fc7f5 dynamic_array<unsigned short, 0u>::~dynamic_array()
    6 libunity.so 0x00000000a0a9fa4b android::NewInput::ScreenKeyboardOnCompositionText(core::basic_string<char, core::StringStorageDefault<char> > const&)
    7 libunity.so 0x00000000a0a8f219 SetInputString
    8 libunity.so 0x00000000a0a9bdd7 nativeSetInputString(_JNIEnv*, _jobject*, _jstring*)
    9 base.odex 0x00000000a1e40c3d <system symbols missing>
     
    Last edited: Nov 9, 2020
  2. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    27
    The same error from another device

    Native Crash - MemoryManager::GetAllocatorContainingPtr(void const*)

    Native StackTrace:

    Thread 0 (crashed)
    0 libunity.so 0x0000007f773af96c MemoryManager::GetAllocatorContainingPtr(void const*)
    1 libunity.so 0x0000007f773ae3d4 MemoryManager::Deallocate(void*, char const*, int)
    2 libunity.so 0x0000007f7730bb68 dynamic_array<unsigned short, 0ul>::~dynamic_array()
    3 libunity.so 0x0000007f7755c294 android::NewInput::ScreenKeyboardOnCompositionText(core::basic_string<char, core::StringStorageDefault<char> > const&)
    4 libunity.so 0x0000007f7754549c SetInputString
    5 libunity.so 0x0000007f77557104 nativeSetInputString(_JNIEnv*, _jobject*, _jstring*)
    6 base.odex 0x0000007f7863c418 <system symbols missing>
     
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    What Unity version are using, I think I saw similar bug in the past, and it may have been fixed already.
     
  4. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    27
    I am using version Unity 2019.4.13f1
    But I have opened the project many times by updating my unity. Do you think this could be related?
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Unlikely, could you report a bug please with repro project attached if possible - https://unity3d.com/unity/qa/bug-reporting

    I thought this was fixed, maybe it's a different issue.

    Thank you
     
  6. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    27
    Ok, I have submitted a bug report
     
    Tomas1856 likes this.
  7. PatientZero

    PatientZero

    Joined:
    Apr 8, 2015
    Posts:
    31
    Im also facing this issue in 2019.4.16f1
    Is this fixed or a bug report number where we can track the status?
     
  8. Toastbyte

    Toastbyte

    Joined:
    Sep 1, 2016
    Posts:
    54
    I think one simple workaround is to just limit the amount of characters that the user is able to put into the field. Just write a short script for that.
     
  9. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    Limiting the amount of character is not a viable solution, I'm getting the crash even with a small amount of text.
    I'm getting the error a lot while editing TextField on my app. I can't even write a tweet without the app crashing.

    @Tomas1856 : Any news on that crash? Was a issue ever filled with Unity?

    Here's the error:

    2021/02/12 10:19:07.554 31530 31547 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2021/02/12 10:19:07.554 31530 31547 Error CRASH Version '2020.1.6f1 (fc477ca6df10)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
    2021/02/12 10:19:07.554 31530 31547 Error CRASH Build fingerprint: 'samsung/hero2ltebmc/hero2ltebmc:8.0.0/R16NW/G935W8VLS8CTI1:user/release-keys'
    2021/02/12 10:19:07.554 31530 31547 Error CRASH Revision: '9'
    2021/02/12 10:19:07.554 31530 31547 Error CRASH ABI: 'arm'
    2021/02/12 10:19:07.554 31530 31547 Error CRASH Timestamp: 2021-02-12 10:19:07-0500
    2021/02/12 10:19:07.554 31530 31547 Error CRASH pid: 31530, tid: 31547, name: UnityMain >>> com.uprealdigital.arpresenter <<<
    2021/02/12 10:19:07.554 31530 31547 Error CRASH uid: 10668
    2021/02/12 10:19:07.554 31530 31547 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    2021/02/12 10:19:07.554 31530 31547 Error CRASH Cause: null pointer dereference
    2021/02/12 10:19:07.554 31530 31547 Error CRASH r0 00000000 r1 00004001 r2 00000000 r3 00007b3b
    2021/02/12 10:19:07.554 31530 31547 Error CRASH r4 ccd4ccd0 r5 00770020 r6 00740069 r7 00001d14
    2021/02/12 10:19:07.555 31530 31547 Error CRASH r8 00001d10 r9 00001274 r10 cb67ebc8 r11 cb67eb54
    2021/02/12 10:19:07.555 31530 31547 Error CRASH ip ccd42c40 sp cb67e948 lr cbfd0293 pc cbfcf0e6
    2021/02/12 10:19:07.555 31530 31547 Error CRASH
    2021/02/12 10:19:07.555 31530 31547 Error CRASH backtrace:
    2021/02/12 10:19:07.555 31530 31547 Error CRASH #00 pc 002810e6 /data/app/com.uprealdigital.arpresenter-VXlFq7FyrYaDZOjIC-i8GQ==/lib/arm/libunity.so MemoryManager::Deallocate(void*, MemLabelId, char const*, int) at ??:?
    2021/02/12 10:19:07.555 31530 31547 Error CRASH #01 pc 00280e9f /data/app/com.uprealdigital.arpresenter-VXlFq7FyrYaDZOjIC-i8GQ==/lib/arm/libunity.so free_alloc_internal(void*, MemLabelId, char const*, int) at ??:?
    2021/02/12 10:19:07.555 31530 31547 Error CRASH #02 pc 00123495 /data/app/com.uprealdigital.arpresenter-VXlFq7FyrYaDZOjIC-i8GQ==/lib/arm/libunity.so dynamic_array<unsigned long long, 0u>::~dynamic_array() at ??:?
    2021/02/12 10:19:07.555 31530 31547 Error CRASH #03 pc 0041dde3 /data/app/com.uprealdigital.arpresenter-VXlFq7FyrYaDZOjIC-i8GQ==/lib/arm/libunity.so android::NewInput::ScreenKeyboardOnCompositionText(core::basic_string<char, core::StringStorageDefault<char> > const&) at ??:?

    I have also attached the logs of the crash
     

    Attached Files:

  10. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    @CeleDko Mind sharing the link to the Issue you filled? Was there ever a fix for this?
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
  12. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
  13. canyon_gyh

    canyon_gyh

    Joined:
    Aug 15, 2018
    Posts:
    48
    Some Crash
    Code (CSharp):
    1. 07-28 09:59:09.342: E/CRASH(21026): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. 07-28 09:59:09.342: E/CRASH(21026): Version '2019.4.9f1 (50fe8a171dd9)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    3. 07-28 09:59:09.342: E/CRASH(21026): Build fingerprint: 'Xiaomi/venus/venus:11/RKQ1.200928.002/V12.5.15.0.RKBCNXM:user/release-keys'
    4. 07-28 09:59:09.342: E/CRASH(21026): Revision: '0'
    5. 07-28 09:59:09.342: E/CRASH(21026): ABI: 'arm64'
    6. 07-28 09:59:09.342: E/CRASH(21026): Timestamp: 2022-07-28 09:59:09+0800
    7. 07-28 09:59:09.342: E/CRASH(21026): pid: 21026, tid: 21187, name: UnityGfxDeviceW  >>>  <<<
    8. 07-28 09:59:09.342: E/CRASH(21026): uid: 10655
    9. 07-28 09:59:09.342: E/CRASH(21026): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x71cc381a68
    10. 07-28 09:59:09.342: E/CRASH(21026):     x0  00000071cc17c9b0  x1  b40000722b7347a0  x2  ffffffff00000000  x3  000000000000004e
    11. 07-28 09:59:09.342: E/CRASH(21026):     x4  0000000000000010  x5  0000000000000000  x6  0000000000000000  x7  00000071cf1b59c8
    12. 07-28 09:59:09.342: E/CRASH(21026):     x8  00000071cc37c9b0  x9  000000000000004a  x10 0000000000000000  x11 0000000000000000
    13. 07-28 09:59:09.342: E/CRASH(21026):     x12 0000000000000098  x13 0000000000000000  x14 0000000000000001  x15 0000000000000000
    14. 07-28 09:59:09.342: E/CRASH(21026):     x16 00000071cc15ba90  x17 00000072c05977bc  x18 0000000014cc5416  x19 ffffffff00000000
    15. 07-28 09:59:09.342: E/CRASH(21026):     x20 b40000722b7347a0  x21 00000071cc17c9a8  x22 b4000071c4586658  x23 00000071cc1fb000
    16. 07-28 09:59:09.342: E/CRASH(21026):     x24 0000000000000438  x25 0000000000000960  x26 0000000000002774  x27 b4000071d0b3b740
    17. 07-28 09:59:09.342: E/CRASH(21026):     x28 b4000071ceeb9e10  x29 00000071c0309b20
    18. 07-28 09:59:09.342: E/CRASH(21026):     sp  00000071c0309480  lr  00000071caab0cf0  pc  00000071caaa10b8
    19. 07-28 09:59:09.342: E/CRASH(21026): backtrace:
    20. 07-28 09:59:09.342: E/CRASH(21026):       #00 pc 00000000003210b8  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (MemoryManager::GetAllocatorContainingPtr(void const*)+24) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    21. 07-28 09:59:09.342: E/CRASH(21026):       #01 pc 0000000000330cec  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (transfer_ownership(void*, MemLabelId const&, AllocationRootWithSalt)+52) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    22. 07-28 09:59:09.342: E/CRASH(21026):       #02 pc 00000000005f2f88  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (dynamic_array_detail::dynamic_array_data::swap(dynamic_array_detail::dynamic_array_data&)+68) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    23. 07-28 09:59:09.342: E/CRASH(21026):       #03 pc 00000000004c7fec  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (dynamic_array<profiling::Recorder*, 0ul>::operator=(dynamic_array<profiling::Recorder*, 0ul>&&)+44) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    24. 07-28 09:59:09.342: E/CRASH(21026):       #04 pc 00000000004c38c0  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GetFrameStats()+180) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    25. 07-28 09:59:09.342: E/CRASH(21026):       #05 pc 000000000071c744  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    26. 07-28 09:59:09.342: E/CRASH(21026):       #06 pc 0000000000717ae4  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    27. 07-28 09:59:09.342: E/CRASH(21026):       #07 pc 0000000000e22bc8  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (WindowContextEGL::Present()+52) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    28. 07-28 09:59:09.342: E/CRASH(21026):       #08 pc 0000000000e20b4c  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (ContextGLES::Present()+28) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    29. 07-28 09:59:09.342: E/CRASH(21026):       #09 pc 00000000007b8c10  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GfxDeviceGLES::PresentFrame()+80) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    30. 07-28 09:59:09.342: E/CRASH(21026):       #10 pc 0000000000e1ada4  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+32656) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    31. 07-28 09:59:09.342: E/CRASH(21026):       #11 pc 0000000000e1b438  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+44) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    32. 07-28 09:59:09.342: E/CRASH(21026):       #12 pc 0000000000e1b400  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GfxDeviceWorker::Run()+136) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    33. 07-28 09:59:09.342: E/CRASH(21026):       #13 pc 0000000000e12bc4  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    34. 07-28 09:59:09.342: E/CRASH(21026):       #14 pc 0000000000634744  /data/app/~~AVv8LhRl_gIjI0LREknfDQ==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+512) (BuildId: 8084343de915c9936c75221489d835d0f7ff96bb)
    35. 07-28 09:59:09.342: E/CRASH(21026):       #15 pc 00000000000eb828  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 5f57d25b37c043ed36c0e4147dcc8b3f)
    36. 07-28 09:59:09.342: E/CRASH(21026):       #16 pc 000000000008ba48  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5f57d25b37c043ed36c0e4147dcc8b3f)