commit | 7b9f5be9149dc84cd16842757ee6fe04f3092dc1 | [log] [tgz] |
---|---|---|
author | ganxiaolin <ganxiaolin@xiaomi.com> | Mon Jun 06 11:09:05 2016 +0800 |
committer | ganxiaolin <ganxiaolin@xiaomi.com> | Mon Jun 06 11:09:05 2016 +0800 |
tree | a85af7bce4b0ca66bfa0345b5e9ba7fb9da5d192 | |
parent | 4d14e9d461fe60c38c8ec4348a21f7b27de06814 [diff] |
Delete Visualizer before lpJniStorage 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>