预期效果是这样的[图片], 出现问题是微信客户端直接闪退,具体报错信息在上面
canvas绘制在Android和iOS上都会出现崩溃,IDE无法复现,帮忙看下Android报错信息如下 11-04 14:49:20.428 6728 6836 V NativeCrash: Entered signal handler. 11-04 14:49:20.428 6728 6836 V NativeCrash: SP: 0xb27c6a50 11-04 14:49:20.491 7411 6836 V NativeCrash: Open short dump file: /data/user/0/com.tencent.mm/files/crash/NativeCrash_com.tencent.mm_appbrand0_1604472430227.dmp 11-04 14:49:20.492 7411 6836 V NativeCrash: Open full dump file: /data/user/0/com.tencent.mm/files/crash/NativeCrash_com.tencent.mm_appbrand0_1604472430227.fulldmp 11-04 14:49:20.492 7411 6836 V NativeCrash: shortFlags: 0x0000074f, fullFlags: 0x00000800 11-04 14:49:20.492 7411 6836 V NativeCrash: Preset custom: Device: OPPO R9s Plus 11-04 14:49:20.492 7411 6836 V NativeCrash: API Level: 23 11-04 14:49:20.492 7411 6836 V NativeCrash: Fingerprint: OPPO/R9sPlus/R9sPlus:6.0.1/MMB29M/1523881866:user/release-keys 11-04 14:49:20.492 7411 6836 V NativeCrash: Kernel: 3.10.84-perf-gba98d57 11-04 14:49:20.492 7411 6836 V NativeCrash: Client Version: 0x27001354 11-04 14:49:20.492 7411 6836 V NativeCrash: Base Version: 0x27001334 11-04 14:49:20.492 7411 6836 V NativeCrash: system webview get nothing... 11-04 14:49:20.492 7411 6836 V NativeCrash: tbs_core_version:45410;tbs_sdk_version:43805; 11-04 14:49:20.614 7411 6836 V NativeCrash: Dump Java in cloned process 11-04 14:49:20.650 6728 6836 V NativeCrash: Call crash dump callback. 11-04 14:49:21.773 6728 6836 V NativeCrash: Signal handler restored. 11-04 14:49:21.773 6728 6836 V NativeCrash: Signal handler mutex released. 11-04 14:49:21.773 6728 6836 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x5a480000 in tid 6836 (JSRuntimeLooper) 11-04 14:49:21.775 5900 7417 I DpmTcmClient: RegisterTcmMonitor from: org.apache.http.impl.conn.TcmIdleTimerMonitor 11-04 14:49:21.781 623 7418 D libc-netbsd: [getaddrinfo]: hostname=szsupport.weixin.qq.com; servname=(null); app_uid=0; ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0 from prox result 11 11-04 14:49:21.782 623 7418 D libc-netbsd: res_queryN name = szsupport.weixin.qq.com succeed 11-04 14:49:21.783 5900 7417 D libc-netbsd: [getaddrinfo]: hostname=szsupport.weixin.qq.com; servname=(null); app_uid=10161; ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0 from prox result 0 11-04 14:49:21.784 5900 7417 I System.out: [socket] connection /61.241.49.53:80;LocalPort=49199(0) 11-04 14:49:21.828 6128 6128 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-04 14:49:21.830 6128 6128 F DEBUG : Build fingerprint: 'OPPO/R9sPlus/R9sPlus:6.0.1/MMB29M/1523881866:user/release-keys' 11-04 14:49:21.830 6128 6128 F DEBUG : Revision: '0' 11-04 14:49:21.830 6128 6128 F DEBUG : ABI: 'arm' 11-04 14:49:21.830 6128 6128 F DEBUG : pid: 6728, tid: 6836, name: JSRuntimeLooper >>> com.tencent.mm:appbrand0 <<< 11-04 14:49:21.830 6128 6128 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5a480000 11-04 14:49:21.832 6128 6128 W debuggerd: type=1400 audit(0.0:17361): avc: denied { search } for uid=0 name="com.tencent.mm" dev="dm-0" ino=1099430 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 11-04 14:49:21.893 6128 6128 F DEBUG : r0 ee2801dd r1 0000000c r2 93e1b910 r3 00000001 11-04 14:49:21.893 6128 6128 F DEBUG : r4 5a480000 r5 e0edb1cc r6 00000000 r7 b27c6a88 11-04 14:49:21.893 6128 6128 F DEBUG : r8 b27c6a58 r9 00000000 sl b27c6b54 fp e0edb1cd 11-04 14:49:21.893 6128 6128 F DEBUG : ip 80000000 sp b27c6a50 lr ac31b57f pc ac332328 cpsr 00010030 11-04 14:49:21.896 6128 6128 F DEBUG : 11-04 14:49:21.896 6128 6128 F DEBUG : backtrace: 11-04 14:49:21.896 6128 6128 F DEBUG : #00 pc 00043328 /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN15css_font_parser13CSSFontParser11ParseFamilyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS1_6vectorIS7_NS5_IS7_EEEE+91) 11-04 14:49:21.896 6128 6128 F DEBUG : #01 pc 000429ff /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN15css_font_parser13CSSFontParser15ParseFontStringERNS_12CSSFontStyleERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERfSC_RNS3_6vectorIS9_NS7_IS9_EEEE+378) 11-04 14:49:21.897 6128 6128 F DEBUG : #02 pc 0003f289 /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN5blink9FontCache14getDefaultFontERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE+152) 11-04 14:49:21.897 6128 6128 F DEBUG : #03 pc 0003e4cb /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN5blink7FontMgr14getDefaultFontERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE+90) 11-04 14:49:21.897 6128 6128 F DEBUG : #04 pc 000367d7 /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN5blink24CanvasRenderingContext2D16DrawTextInternalERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEffN7SkPaint5StyleEPf+318) 11-04 14:49:21.897 6128 6128 F DEBUG : #05 pc 00036691 /data/app/com.tencent.mm-2/lib/arm/libcanvas.so (_ZN5blink24CanvasRenderingContext2D8fillTextERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEff+12) 11-04 14:49:21.897 6128 6128 F DEBUG : #06 pc 0003878d /data/app/com.tencent.mm-2/lib/arm/libskia-canvas.so (_ZN10skiacanvas27BindingWebGLCanvasContext2d12fillTextFuncEPN2v87IsolateERKNS1_20FunctionCallbackInfoINS1_5ValueEEE+136) 11-04 14:49:21.897 6128 6128 F DEBUG : #07 pc 0003595d /data/app/com.tencent.mm-2/lib/arm/libskia-canvas.so (_ZN10skiacanvas27BindingWebGLCanvasContext2d8fillTextERKN2v820FunctionCallbackInfoINS1_5ValueEEE+44) 11-04 14:49:21.897 6128 6128 F DEBUG : #08 pc 0082ee71 /data/app/com.tencent.mm-2/lib/arm/libmmv8.so (_ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE+336) 11-04 14:49:22.702 1163 3535 W Watchdog_N: !@WatchDog_11310; 11-04 14:49:23.539 6128 6128 F DEBUG : 11-04 14:49:23.539 6128 6128 F DEBUG : Tombstone written to: /data/tombstones/tombstone_02 11-04 14:49:23.539 6128 6128 E DEBUG : AM write failed: Broken pipe 11-04 14:49:23.541 6728 6894 I Choreographer: Skipped 102 frames! The application may be doing too much work on its main thread. 11-04 14:49:23.551 1163 1194 V java.lang.ASSERT: in copyTombstone 11-04 14:49:23.559 1163 7421 W ActivityManager: Force finishing activity com.tencent.mm/.plugin.appbrand.ui.AppBrandUI 11-04 14:49:23.615 1163 7422 W DropBoxManagerService: Dropping: data_app_native_crash (2516 > 0 bytes) 11-04 14:49:23.618 1163 7421 E JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 112) 11-04 14:49:23.623 1163 7422 D DropBoxManagerService: file :: /data/system/dropbox/data_app_native_crash@1604472563616.lost 11-04 14:49:23.630 1163 1179 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=2975, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ], android.os.BinderProxy@138549f) 11-04 14:49:23.630 1163 1179 D GraphicsStats: Buffer count: 14 11-04 14:49:23.631 1163 2770 I WindowState: WIN DEATH: Window{eb6b3d6 u0 com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI} 11-04 14:49:23.631 1163 1179 E qti_sensors_hal: activate: handle is 0, en is 0 11-04 14:49:23.631 1163 1179 E qti_sensors_hal: enable:sensor(android.sensor.accelerometer) Deactivating sensor handle=0 11-04 14:49:23.631 1163 2770 V WindowManager: Changing focus from Window{eb6b3d6 u0 com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI EXITING} to null Callers=com.android.server.wm.WindowManagerService.removeWindowLocked:3043 com.android.server.wm.WindowState$DeathRecipient.binderDied:1286 android.os.BinderProxy.sendDeathNotice:558 11-04 14:49:23.632 1163 2666 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=2975, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 11-04 14:49:23.633 1163 2896 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=2976, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ], android.os.BinderProxy@bea9ec) 11-04 14:49:23.635 1163 1179 D SensorService: cleanupConnection delete handle=1, sensor_buffer 11-04 14:49:23.637 1163 2666 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=2975, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 11-04 14:49:23.637 1163 2666 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=2976, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 11-04 14:49:23.638 1163 2666 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=2976, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 11-04 14:49:23.640 1163 7421 W ActivityManager: Exception thrown during pause 11-04 14:49:23.640 1163 7421 W ActivityManager: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died 11-04 14:49:23.640 1163 7421 W ActivityManager: at android.os.BinderProxy.transactNative(Native Method) 11-04 14:49:23.640 1163 7421 W ActivityManager: at android.os.BinderProxy.transact(Binder.java:503) 11-04 14:49:23.640 1163 7421 W ActivityManager: at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:761) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1056) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3424) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3231) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:3366) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:14254) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:14144) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:14926) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:14368) 11-04 14:49:23.640 1163 7421 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86) 11-04 14:49:23.645 444 444 E lowmemorykiller: Error writing /proc/6728/oom_score_adj; errno=22 11-04 14:49:23.650 1163 7421 W ActivityManager: Force finishing activity 2 com.tencent.mm/.ui.LauncherUI 11-04 14:49:23.653 23071 23091 V SensorManager: RegisterListener LSM6DS3 Accelerometer type:1 delay:200000us by com.oppo.gesturesensormanager.GestureSensor$1 11-04 14:49:23.655 1163 1228 E qti_sensors_hal: batch:sensor(android.sensor.accelerometer) handle:0 flags:0x0 period_ns 200000000 11-04 14:49:23.655 1163 1228 E qti_sensors_hal: batch:sensor(android.sensor.accelerometer) sample_rate=5.000000Hz report_rate_f=0.000000Hz curr sample rate:5.000000 cur rpt rate:0 max:200.000000 min:1.000000 11-04 14:49:23.655 1163 1228 E qti_sensors_hal: activate: handle is 0, en is 1 11-04 14:49:23.655 1163 1228 E qti_sensors_hal: enable:sensor(android.sensor.accelerometer) handle 0, freq=5.000000 report_rate=0 batched=0 11-04 14:49:23.663 23071 23091 V SensorManager: RegisterListener LSM6DS3 Accelerometer type:1 delay:20000us by com.oppo.gesturesensormanager.GestureSensor$1 11-04 14:49:23.667 1163 3730 E libprocessgroup: failed to kill 1 processes for processgroup 6728 11-04 14:49:23.668 1163 3730 I ActivityManager: Process com.tencent.mm:appbrand0 (pid 6728) has died 11-04 14:49:23.668 1163 3730 D ActivityManager: cleanUpApplicationRecord -- 6728 11-04 14:49:23.674 1163 1163 I OppoPhoneWindowManager: KeyLockModeReceiver KeyLockMode: 0 ProcessName: com.tencent.mm:appbrand0 11-04 14:49:23.681 22990 23004 I SafeCenter.AppProtectService: setProtectDelayPackage() packageName: com.tencent.mm 11-04 14:49:23.686 23347 15543 D ErrorSaveTask: mRunningTaskList.size =0 11-04 14:49:23.692 23347 15543 E ErrorSaveTask: /data/system/dropbox/data_app_native_crash@1604472563616.txt.gz log not found! 11-04 14:49:23.692 23347 15543 D ErrorSaveTask: verifyError()--occurTime: 1604472563616 11-04 14:49:23.692 23347 15543 E ErrorSaveTask: verifyError(): occur time is empty or app name is empty, return false 11-04 14:49:23.692 23347 15543 D ErrorSaveTask: mRunningTaskList.size =0 11-04 14:49:23.694 646 646 I Zygote : Process 6728 exited due to signal (11) 11-04 14:49:23.704 1163 2872 V WindowManager: Changing focus from null to Window{583abba u0 com.android.settings/com.android.settings.Settings$DevelopmentSettingsActivity} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3769 com.android.server.wm.Session.relayout:217 android.view.IWindowSession$Stub.onTransact:284 com.android.server.wm.Session.onTransact:143 11-04 14:49:23.723 1163 3725 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 6728 uid 10161 11-04 14:49:23.763 23599 23599 V NFC : this device does not have NFC support 11-04 14:49:23.789 1163 1173 I art : Background partial concurrent mark sweep GC freed 69558(3MB) AllocSpace objects, 9(4MB) LOS objects, 15% free, 87MB/103MB, paused 6.002ms total 208.357ms 11-04 14:49:23.832 23071 23091 V SensorManager: unRegisterListener by com.oppo.gesturesensormanager.GestureSensor$1 11-04 14:49:23.833 1163 1179 E qti_sensors_hal: activate: handle is 0, en is 0 11-04 14:49:23.833 1163 1179 E qti_sensors_hal: enable:sensor(android.sensor.accelerometer) Deactivating sensor handle=0 11-04 14:49:23.844 1163 1179 D SensorService: reset the mLastEventSeen mLastEventSeen.editValueFor(1)=1899491424 11-04 14:49:23.844 23071 23091 D AbstractGestureSensor: unregister sensor={Sensor name="LSM6DS3 Accelerometer", vendor="STMicroelectronics", version=1, type=1, maxRange=39.22661, resolution=0.0023956299, power=0.9, minDelay=5000} 11-04 14:49:23.850 1163 3725 V WindowManager: Changing focus from Window{583abba u0 com.android.settings/com.android.settings.Settings$DevelopmentSettingsActivity} to null Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3769 com.android.server.wm.Session.relayout:217 android.view.IWindowSession$Stub.onTransact:284 com.android.server.wm.Session.onTransact:143 11-04 14:49:23.866 3776 3776 D Launcher.Launcher: onResume() end, com.oppo.launcher.Launcher@be18b36 11-04 14:49:23.877 1163 1180 V WindowManager: Changing focus from null to Window{aadd114 u0 com.oppo.launcher/com.oppo.launcher.Launcher} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3769 com.android.server.wm.Session.relayout:217 android.view.IWindowSession$Stub.onTransact:284 com.android.server.wm.Session.onTransact:143 11-04 14:49:23.917 1163 1228 I ActivityManager: Killing 32682:com.coloros.phonenoareainquire/u0a68 (adj 15): empty #17 11-04 14:49:23.928 1163 7423 E libprocessgroup: failed to kill 1 processes for processgroup 32682 11-04 14:49:23.963 1163 3693 D ActivityManager: cleanUpApplicationRecord -- 32682 11-04 14:49:24.132 1163 1221 W WindowAnimator: Failed to dispatch window animation state change. 11-04 14:49:24.132 1163 1221 W WindowAnimator: android.os.DeadObjectException 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:503) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:548) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:321) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:769) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at com.android.server.wm.WindowAnimator.access$000(WindowAnimator.java:53) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:128) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:674) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:607) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:848) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.Looper.loop(Looper.java:179) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61) 11-04 14:49:24.132 1163 1221 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46) 11-04 14:49:24.265 23317 7425 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[57,tid=7425,Native,Thread*=0xb73f3500,peer=0x139440a0,"mars::7425"] 11-04 14:49:24.341 23317 7427 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[58,tid=7427,Native,Thread*=0xb73f5300,peer=0x139500a0,"mars::7427"] 11-04 14:49:24.392 23317 7424 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[56,tid=7424,Native,Thread*=0xe0c8a800,peer=0x139251c0,"mars::7424"] 11-04 14:49:24.486 23317 7426 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[57,tid=7426,Native,Thread*=0xe0dc5c00,peer=0x13944100,"mars::7426"] 11-04 14:49:24.606 23317 1383 I mars::stn: [longlink_connect_monitor.cc, OnHeartbeatAlarmSet, 448]:longlink_progress on_heartbeat_set, time: 755664424, time interval:210000
2020-11-04