It is related to Change: Id17bea8a6ca7132042b9bfefed398a715c139be7 Fix ANR because of bug of Visualizer. If lpJniStorage was delete first, callback_data_lock become a invalid value. At mReceiver.periodicCapture() in CaptureThread, it will lock callback_data_lock. Thus, CaptureThread will wait a invalid memory forever and visualizer wait CaptureThread exiting and causing ANR. Signed-off-by: ganxiaolin <ganxiaolin@xiaomi.com>