Status Update
Comments
vi...@google.com <vi...@google.com>
ra...@google.com <ra...@google.com>
ch...@google.com <ch...@google.com> #2
Just a heads up that this is still a problem. Are you open to accept external PRs to solve this?
ra...@google.com <ra...@google.com> #3
To add to this, with AGP 7.1.x things got even worse as now there are several configureNdk*
tasks, one for each ABI. Like: configureNdkBuildDebug[x86_64]
.
All those tasks (both the NDK and the CMake ones) are not plugged correctly in the task graph and they’re not depending on preBuild
, preDebugBuild
, and so on.
We have to manually add those dependencies in our build.gradle
which feels extremely hacky.
I saw that the issues got unassigned on the issue tracker, so I’m asking what should we do to get more visibility.
xi...@xiaomi.corp-partner.google.com <xi...@xiaomi.corp-partner.google.com> #4
Jerome for re-assigning this to someone.
ra...@google.com <ra...@google.com> #5
@corti.nico regarding preBuild
hooks like preDebugBuild[x86_64]
before you're unblocked?
Description
Build fingerprint: 'Redmi/rubypro/rubypro:13/TP1A.220624.014/V14.0.0.4.TMOCNXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2023-05-18 02:03:10.993454015+0800
Process uptime: 28839s
ZygotePid: 1296122038
Cmdline: /system/bin/surfaceflinger
pid: 868, tid: 916, name: binder:868_1 >>> /system/bin/surfaceflinger <<<
uid: 1000
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000004
Cause: null pointer dereference
x0 0000000000000000 x1 00000078120fd470 x2 000000789692f680 x3 0000000000000000
x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 5779616c7265764f
x8 0000000000000001 x9 0000000000000004 x10 0000007896fa23f8 x11 00000078a593f4e0
x12 0000007810e58818 x13 00000077da4b5000 x14 fffffffffc000000 x15 0000000000000030
x16 0000007896fde928 x17 0000007897fed2e0 x18 0000007811166000 x19 0000000000000000
x20 00000078120fd470 x21 00000078120fe000 x22 00000078120fd884 x23 00000078120fd870
x24 b4000077da4b7398 x25 0000000000000000 x26 00000078120fd6d8 x27 00000078120fe000
x28 0000000000000000 x29 00000078120fd440
lr 000000789699a638 sp 00000078120fd440 pc 0000007897fed300 pst 0000000060001000
backtrace:
#00 pc 000000000000f300 /system/lib64/libutils.so (android::RefBase::weakref_type::attemptIncStrong(void const*)+32) (BuildId: 263dd89cc6d0dd79143c59615c4821ef)
#01 pc 0000000000392634 /system/lib64/libsurfaceflinger.so (android::Layer::getFixedTransformHint() const+68) (BuildId: 5450e720287d526a01e72c72a37f46c0)
#02 pc 0000000000327694 /system/lib64/libsurfaceflinger.so (android::BufferLayer::setTransformHint(android::ui::Transform::RotationFlags)+20) (BuildId: 5450e720287d526a01e72c72a37f46c0)
#03 pc 00000000003e6358 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::addClientLayer(android::sp<android::Client> const&, android::sp<android::IBinder> const&, android::sp<android::Layer> const&, android::wp<android::Layer> const&, bool, unsigned int*)+1064) (BuildId: 5450e720287d526a01e72c72a37f46c0)
#04 pc 00000000003ebbcc /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::createLayer(android::LayerCreationArgs&, android::sp<android::IBinder>*, android::sp<android::IBinder> const&, int*, android::sp<android::Layer> const&, unsigned int*)+2108) (BuildId: 5450e720287d526a01e72c72a37f46c0)
#05 pc 000000000033a780 /system/lib64/libsurfaceflinger.so (android::Client::createSurface(android::String8 const&, unsigned int, unsigned int, int, unsigned int, android::sp<android::IBinder> const&, android::LayerMetadata, android::sp<android::IBinder>*, android::sp<android::IGraphicBufferProducer>*, int*, unsigned int*)+416) (BuildId: 5450e720287d526a01e72c72a37f46c0)
#06 pc 00000000000e8894 /system/lib64/libgui.so (android::BnSurfaceComposerClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+436) (BuildId: 46f5ecf518924e68fca82a7f3bdde5e2)
#07 pc 0000000000050a4c /system/lib64/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+236) (BuildId: 3ebe40e5fd787860e32d6a8743231d53)
#08 pc 000000000005bc94 /system/lib64/libbinder.so (android::IPCThreadState::executeCommand(int)+1012) (BuildId: 3ebe40e5fd787860e32d6a8743231d53)
#09 pc 000000000005b7d0 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+160) (BuildId: 3ebe40e5fd787860e32d6a8743231d53)
#10 pc 000000000005c064 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+68) (BuildId: 3ebe40e5fd787860e32d6a8743231d53)
#11 pc 000000000008bed8 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24) (BuildId: 3ebe40e5fd787860e32d6a8743231d53)
#12 pc 0000000000013480 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+416) (BuildId: 263dd89cc6d0dd79143c59615c4821ef)
#13 pc 00000000000fba4c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 3908c7c57fa04c64df24425cf16523cf)
#14 pc 000000000008e5f0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3908c7c57fa04c64df24425cf16523cf)
Thank you for your feedback.
1. The problem did not reproduce the scene, and the frequency of occurrence: 7/100
2. Xiaomi M12 project: V14.0.0.4.TMOCNXM、M12 23.4.19 MTBF_PRE_CNand so on, version: Android 13.
3. Currently, I'm not sure if Pixel/Nexus devices have appeared before. Looking forward to your company's next suggestion, thank you!