Abort crash in native library libhwui.so

Hello, support.

We are getting abort crashes from Google Play Console on Android devices that have Android 11, most of the time in Samsung devices like Samsung Galaxy S21 Ultra 5G, Samsung Galaxy A52, Samsung Galaxy Note20 Ultra 5G, etc.

We have not been able to reproduce this crash.

The stack trace is the following:

backtrace:
  #00  pc 000000000004ef24  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 000000000004b10c  /system/lib64/libc++.so (abort_message+248)
  #00  pc 000000000004b2d0  /system/lib64/libc++.so (demangling_terminate_handler()+212)
  #00  pc 000000000004bdc4  /system/lib64/libc++.so (std::__terminate(void (*)())+12)
  #00  pc 000000000004b4e0  /system/lib64/libc++.so (__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)+28)
  #00  pc 000000000004b448  /system/lib64/libc++.so (__cxa_throw+112)
  #00  pc 000000000004ef9c  /system/lib64/libc++.so (operator new(unsigned long)+96)
  #00  pc 000000000009a53c  /system/lib64/libc++.so (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__grow_by_and_replace(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, char const*)+156)
  #00  pc 000000000009a440  /system/lib64/libc++.so (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)+100)
  #00  pc 00000000000104f0  /system/lib64/libbase.so (android::base::ReadFdToString(android::base::borrowed_fd, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+192)
  #00  pc 00000000000105f0  /system/lib64/libbase.so (android::base::ReadFileToString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool)+192)
  #00  pc 0000000000048e78  /system/lib64/libunwindstack.so (unwindstack::Maps::Parse()+116)
  #00  pc 000000000000dc7c  /system/lib64/libbacktrace.so (UnwindStackMap::Build()+532)
  #00  pc 000000000000e11c  /system/lib64/libbacktrace.so (BacktraceMap::Create(int, bool)+128)
  #00  pc 000000000059da74  /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)+244)
  #00  pc 000000000053aebc  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1896)
  #00  pc 000000000001394c  /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
  #00  pc 0000000000006d10  /system/lib64/liblog.so (__android_log_assert+336)
  #00  pc 00000000003a3e80  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::swapBuffers(android::uirenderer::renderthread::Frame const&, bool, SkRect const&, android::uirenderer::FrameInfo*, bool*)+172)
  #00  pc 00000000003ac9ac  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+1248)
  #00  pc 00000000003aec04  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+524)
  #00  pc 000000000039cefc  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+208)
  #00  pc 00000000003bf30c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+88)
  #00  pc 000000000001553c  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+320)
  #00  pc 0000000000014db0  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+408)
  #00  pc 00000000000b6234  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #00  pc 0000000000050e64  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Could you help us?

Any information is appreciated. Thank you.

Hi, I think you might get better assistance if you submit a support request here

We are also facing the same problem, did you get any solution to it, or found the root cause, please help out.