We are getting quite a lot of crashes with stack traces like this:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 27074 >>> xxx <<<
backtrace:
#00 pc 0x00000000002a1ee0 /system/lib64/libhwui.so (android::uirenderer::Readback::copyLayerInto(android::uirenderer::DeferredLayerUpdater*, SkBitmap*)+80)
#01 pc 0x00000000002928d4 /system/lib64/libhwui.so (std::__1::__packaged_task_func<android::uirenderer::renderthread::RenderProxy::copyLayerInto(android::uirenderer::DeferredLayerUpdater*, SkBitmap&)::$_18, std::__1::allocator<android::uirenderer::renderthread::RenderProxy::copyLayerInto(android::uirenderer::DeferredLayerUpdater*, SkBitmap&)::$_18>, bool ()>::operator()() (.2a0230ca9784b3ed733f337e97c21a2e)+36)
#02 pc 0x0000000000292090 /system/lib64/libhwui.so (std::__1::packaged_task<bool ()>::operator()()+92)
#03 pc 0x0000000000274cb4 /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+588)
#04 pc 0x000000000029542c /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+416)
#05 pc 0x0000000000013414 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+424)
#06 pc 0x00000000000ba690 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#07 pc 0x000000000005403c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
It seems to happen on Android 13 only, foreground. We observe this crash on Unity 2021.3.42 and Unity 2022.3.44.
Is this a known issue? If not, are there workarounds?