Skip to content

Commit 6f63460

Browse files
ezio84eldainosor
authored andcommitted
Lockscreen visualizer: fix SystemUI FC when using Pulse
11-13 20:00:00.527 10645 10645 I crash_dump64: performing dump of process 1467 (target tid = 10124) 11-13 20:00:00.538 10645 10645 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-13 20:00:00.539 10645 10645 F DEBUG : Build fingerprint: 'HONOR/BKL-L09/HWBKL:8.0.0/HUAWEIBKL-L09S/172(C432):user/release-keys' 11-13 20:00:00.539 10645 10645 F DEBUG : Revision: '0' 11-13 20:00:00.539 10645 10645 F DEBUG : ABI: 'arm64' 11-13 20:00:00.539 10645 10645 F DEBUG : pid: 1467, tid: 10124, name: Visualizer >>> com.android.systemui <<< 11-13 20:00:00.539 10645 10645 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 11-13 20:00:00.539 10645 10645 F DEBUG : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7c633df0f4)' 11-13 20:00:00.539 10645 10645 F DEBUG : x0 0000000000000000 x1 000000000000278c x2 0000000000000006 x3 0000000000000008 11-13 20:00:00.539 10645 10645 F DEBUG : x4 0000000000008080 x5 0000000000008080 x6 0000000000008080 x7 0000000000000038 11-13 20:00:00.539 10645 10645 F DEBUG : x8 0000000000000083 x9 40ef6d32d31c854a x10 0000000000000000 x11 fffffffc7ffffbdf 11-13 20:00:00.539 10645 10645 F DEBUG : x12 0000000000000001 x13 000000005beb1f30 x14 0005a1f49bc3a000 x15 0000112f9e154a12 11-13 20:00:00.539 10645 10645 F DEBUG : x16 0000007cffb6f2c8 x17 0000007cffaad0d0 x18 00000000fffbfffe x19 00000000000005bb 11-13 20:00:00.539 10645 10645 F DEBUG : x20 000000000000278c x21 0000007d000d96d0 x22 0000000000000001 x23 0000000000000035 11-13 20:00:00.539 10645 10645 F DEBUG : x24 0000007d000c6fc8 x25 0000007d000c7680 x26 0000007c52a14588 x27 0000000000000000 11-13 20:00:00.539 10645 10645 F DEBUG : x28 0000000000000005 x29 0000007c52a141a0 11-13 20:00:00.539 10645 10645 F DEBUG : sp 0000007c52a14160 lr 0000007cffaa1bfc pc 0000007cffaa1c24 11-13 20:00:00.564 10645 10645 F DEBUG : 11-13 20:00:00.564 10645 10645 F DEBUG : backtrace: 11-13 20:00:00.564 10645 10645 F DEBUG : #00 pc 0000000000021c24 /system/lib64/libc.so (abort+116) 11-13 20:00:00.564 10645 10645 F DEBUG : #1 pc 0000000000082f04 /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120) 11-13 20:00:00.564 10645 10645 F DEBUG : #2 pc 0000000000082600 /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52) 11-13 20:00:00.564 10645 10645 F DEBUG : #3 pc 00000000000824b4 /system/lib64/libc.so (pthread_mutex_lock+228) 11-13 20:00:00.564 10645 10645 F DEBUG : #4 pc 00000000000a8c54 /system/lib64/libmedia.so (android::Visualizer::periodicCapture()+56) 11-13 20:00:00.564 10645 10645 F DEBUG : #5 pc 00000000000a8aac /system/lib64/libmedia.so (android::Visualizer::CaptureThread::threadLoop()+88) 11-13 20:00:00.564 10645 10645 F DEBUG : #6 pc 000000000000f9d8 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280) 11-13 20:00:00.564 10645 10645 F DEBUG : #7 pc 00000000000b4980 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140) 11-13 20:00:00.564 10645 10645 F DEBUG : #8 pc 0000000000081938 /system/lib64/libc.so (__pthread_start(void*)+36) 11-13 20:00:00.564 10645 10645 F DEBUG : #9 pc 0000000000023478 /system/lib64/libc.so (__start_thread+68) Change-Id: Ic7f9788df8a38084c3b150eaa22d67f869085ca2
1 parent 50e9f32 commit 6f63460

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/VisualizerView.java

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -123,29 +123,19 @@ public void run() {
123123
}
124124
};
125125

126-
private final Runnable mAsyncUnlinkVisualizer = new Runnable() {
127-
@Override
128-
public void run() {
129-
AsyncTask.execute(mUnlinkVisualizer);
126+
private void unlink() {
127+
if (DEBUG) {
128+
Log.w(TAG, "+++ mUnlinkVisualizer run(), mVisualizer: " + mVisualizer);
130129
}
131-
};
132-
133-
private final Runnable mUnlinkVisualizer = new Runnable() {
134-
@Override
135-
public void run() {
136-
if (DEBUG) {
137-
Log.w(TAG, "+++ mUnlinkVisualizer run(), mVisualizer: " + mVisualizer);
138-
}
139-
if (mVisualizer != null) {
140-
mVisualizer.setEnabled(false);
141-
mVisualizer.release();
142-
mVisualizer = null;
143-
}
144-
if (DEBUG) {
145-
Log.w(TAG, "--- mUnlinkVisualizer run()");
146-
}
130+
if (mVisualizer != null) {
131+
mVisualizer.setEnabled(false);
132+
mVisualizer.release();
133+
mVisualizer = null;
147134
}
148-
};
135+
if (DEBUG) {
136+
Log.w(TAG, "--- mUninkVisualizer run()");
137+
}
138+
}
149139

150140
public VisualizerView(Context context) {
151141
this(context, null, 0);
@@ -392,16 +382,15 @@ private void checkStateChanged() {
392382
}
393383
} else {
394384
if (mDisplaying) {
385+
unlink();
395386
mDisplaying = false;
396387
if (mVisible && !mAmbientVisualizerEnabled) {
397388
animate()
398389
.alpha(0f)
399-
.withEndAction(mAsyncUnlinkVisualizer)
400390
.setDuration(600);
401391
} else {
402392
animate().
403393
alpha(0f)
404-
.withEndAction(mAsyncUnlinkVisualizer)
405394
.setDuration(0);
406395
}
407396
}

0 commit comments

Comments
 (0)