-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Pass synthesized eventType to VirtualDisplay platform views…
… and fix memory leak (#19620)
- Loading branch information
1 parent
69fdf6d
commit 3dc8163
Showing
6 changed files
with
119 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3dc8163
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we found some crash on our 1.17.5 version. how to fix this?
07-13 10:20:32.061 15665 15665 F DEBUG : signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
07-13 10:20:32.061 15665 15665 F DEBUG : Abort message: 'ubsan: shift-out-of-bounds'
07-13 10:20:32.061 15665 15665 F DEBUG : r0 00000000 r1 000037d0 r2 00000006 r3 00000008
07-13 10:20:32.061 15665 15665 F DEBUG : r4 000037d0 r5 000037d0 r6 ffcb57bc r7 0000010c
07-13 10:20:32.061 15665 15665 F DEBUG : r8 c6e34460 r9 e7b44000 r10 c6e34460 r11 00000000
07-13 10:20:32.061 15665 15665 F DEBUG : ip 00000041 sp ffcb57a8 lr e7c28a6d pc e7c20796
07-13 10:20:32.791 15665 15665 F DEBUG :
07-13 10:20:32.791 15665 15665 F DEBUG : backtrace:
07-13 10:20:32.792 15665 15665 F DEBUG : #00 pc 0001d796 /system/lib/libc.so (abort+58)
07-13 10:20:32.792 15665 15665 F DEBUG : #1 pc 0001e324 /system/lib/libinput.so (abort_with_message(char const*)+24)
07-13 10:20:32.792 15665 15665 F DEBUG : #2 pc 0001e560 /system/lib/libinput.so (__ubsan_handle_shift_out_of_bounds_minimal_abort+24)
07-13 10:20:32.792 15665 15665 F DEBUG : #3 pc 0001c807 /system/lib/libinput.so (android::VelocityTracker::addMovement(android::MotionEvent const*)+666)
07-13 10:20:32.792 15665 15665 F DEBUG : #4 pc 003f005b /system/framework/arm/boot-framework.oat (offset 0x3ef000) (android.app.admin.SecurityLog.readEventsOnWrapping [DEDUPED]+130)
07-13 10:20:32.792 15665 15665 F DEBUG : #05 pc 00195d1b /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.VelocityTracker.addMovement+58)
07-13 10:20:32.792 15665 15665 F DEBUG : #6 pc 001833a5 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.GestureDetector.onTouchEvent+172)
07-13 10:20:32.792 15665 15665 F DEBUG : #7 pc 0018674f /dev/ashmem/dalvik-jit-code-cache (deleted) (com.amap.api.col.n3.ca.a+566)
07-13 10:20:32.792 15665 15665 F DEBUG : #8 pc 00186219 /dev/ashmem/dalvik-jit-code-cache (deleted) (com.amap.api.col.n3.bn.onTouchEvent+1328)
07-13 10:20:32.792 15665 15665 F DEBUG : #9 pc 00192cab /dev/ashmem/dalvik-jit-code-cache (deleted) (com.amap.api.col.n3.bq.onTouchEvent+74)
07-13 10:20:32.792 15665 15665 F DEBUG : #10 pc 00180edb /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.View.dispatchTouchEvent+602)
07-13 10:20:32.792 15665 15665 F DEBUG : #11 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #12 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #13 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #14 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #15 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #16 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #17 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #18 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #19 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #20 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #21 pc 000f6819 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTransformedTouchEvent+272)
07-13 10:20:32.792 15665 15665 F DEBUG : #22 pc 000f718d /dev/ashmem/dalvik-jit-code-cache (deleted) (android.view.ViewGroup.dispatchTouchEvent+1908)
07-13 10:20:32.792 15665 15665 F DEBUG : #23 pc 00180b55 /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.plugin.platform.PlatformViewsController$1.onTouch+852)
07-13 10:20:32.792 15665 15665 F DEBUG : #24 pc 000cb251 /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.touch+952)
07-13 10:20:32.792 15665 15665 F DEBUG : #25 pc 001826c7 /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall+782)
07-13 10:20:32.792 15665 15665 F DEBUG : #26 pc 001182e1 /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage+168)
07-13 10:20:32.792 15665 15665 F DEBUG : #27 pc 0004c981 /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart+408)
07-13 10:20:32.792 15665 15665 F DEBUG : #28 pc 001187cb /dev/ashmem/dalvik-jit-code-cache (deleted) (io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage+74)
07-13 10:20:32.792 15665 15665 F DEBUG : #29 pc 0043d975 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
07-13 10:20:32.792 15665 15665 F DEBUG : #30 pc 00410061 /system/lib/libart.so (art_quick_invoke_stub+224)
07-13 10:20:32.792 15665 15665 F DEBUG : #31 pc 000a82ad /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
07-13 10:20:32.792 15665 15665 F DEBUG : #32 pc 0036b4e9 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
07-13 10:20:32.792 15665 15665 F DEBUG : #33 pc 0036c499 /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+316)
07-13 10:20:32.792 15665 15665 F DEBUG : #34 pc 00285053 /system/lib/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+482)
07-13 10:20:32.792 15665 15665 F DEBUG : #35 pc 00f9f09b /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #36 pc 00f9f055 /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #37 pc 00f9db77 /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #38 pc 00fd1e3b /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #39 pc 00fa95dd /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #40 pc 00facd4f /data/app/-Y5fdPE1Wz6S1r-_doYSWDg==/lib/arm/libflutter.so (offset 0xf9a000)
07-13 10:20:32.792 15665 15665 F DEBUG : #41 pc 0000f3b7 /system/lib/libutils.so (android::Looper::pollInner(int)+726)
07-13 10:20:32.792 15665 15665 F DEBUG : #42 pc 0000f05f /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+26)
07-13 10:20:32.792 15665 15665 F DEBUG : #43 pc 000c0db9 /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+26)
07-13 10:20:32.792 15665 15665 F DEBUG : #44 pc 003fc45d /system/framework/arm/boot-framework.oat (offset 0x3ef000) (android.media.MediaExtractor.seekTo [DEDUPED]+92)
07-13 10:20:32.792 15665 15665 F DEBUG : #45 pc 0005181b /dev/ashmem/dalvik-jit-code-cache (deleted) (android.os.MessageQueue.next+194)
07-13 10:20:32.792 15665 15665 F DEBUG : #46 pc 00167a59 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.os.Looper.loop+360)
07-13 10:20:32.793 15665 15665 F DEBUG : #47 pc 0043d9bb /system/lib/libart.so (art_quick_osr_stub+42)
07-13 10:20:32.793 15665 15665 F DEBUG : #48 pc 0025a9c5 /system/lib/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1472)
07-13 10:20:32.793 15665 15665 F DEBUG : #49 pc 0040f667 /system/lib/libart.so (MterpMaybeDoOnStackReplacement+86)
07-13 10:20:32.793 15665 15665 F DEBUG : #50 pc 0043d174 /system/lib/libart.so (ExecuteMterpImpl+66164)
07-13 10:20:32.793 15665 15665 F DEBUG : #51 pc 00b51512 /system/framework/boot-framework.vdex (android.os.Looper.loop+1036)
07-13 10:20:32.793 15665 15665 F DEBUG : #52 pc 001d3d1f /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2251853088+354)
07-13 10:20:32.793 15665 15665 F DEBUG : #53 pc 001d8657 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::Shado