alipay / SoloPi

SoloPi 自动化测试工具
Apache License 2.0
5.81k stars 1.21k forks source link

[BUG]性能测试-环境加压-内存占用拉满,很快出现ANR #202

Open chuangetest opened 2 years ago

chuangetest commented 2 years ago

Describe the bug / 问题描述 性能测试-环境加压-内存占用拉满,很快出现ANR

To Reproduce / 复现流程 1、打开solopi,进入性能测试 2、在环境加压中将内存占用调节到最大 3、等待一到两分钟,弹出SoLoPi没有响应弹窗

If possible, please use video to reproduce the behavior / 可以的话,录一个问题重现的视频

Error Stack/错误堆栈 "main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 flags=1 obj=0x71e795a8 self=0xb400007b87d0b010 | sysTid=15189 nice=0 cgrp=default sched=0/0 handle=0x7caec5a4f8 | state=S schedstat=( 5715369309 4550301918 2767 ) utm=110 stm=461 core=1 HZ=100 | stack=0x7ffc889000-0x7ffc88b000 stackSize=8192KB | held mutexes= native: #00 pc 000000000004b50c /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28) native: #01 pc 00000000001b07a4 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread)+148) native: #02 pc 0000000000673dc0 /apex/com.android.art/lib64/libart.so (art::GoToRunnable(art::Thread)+480) native: #03 pc 0000000000673b9c /apex/com.android.art/lib64/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+28) at com.alipay.hulu.shared.display.items.MemoryTools.fillMemory(Native method) at com.alipay.hulu.shared.display.items.MemoryTools.f(SourceFile:3) at com.alipay.hulu.tools.PerformStressImpl.performMemoryStress(SourceFile:1) at com.alipay.hulu.tools.PerformStressImpl.setMemory(SourceFile:3) at java.lang.reflect.Method.invoke(Native method) at com.alipay.hulu.common.injector.b.e.e(SourceFile:8) at com.alipay.hulu.common.injector.b.b.f(SourceFile:12) at com.alipay.hulu.common.injector.InjectorService.doPushMessage(SourceFile:12) at com.alipay.hulu.common.injector.InjectorService.pushMessage(SourceFile:9) at com.alipay.hulu.common.injector.InjectorService.pushMessage(SourceFile:1) at java.lang.reflect.Method.invoke(Native method) at com.mdit.library.MethodProxyExecuter.executeMethod(SourceFile:2) at com.mdit.library.MethodProxy.invokeSuper(SourceFile:1) at com.alipay.hulu.common.application.LauncherApplication$k$a.intercept(SourceFile:11) at com.mdit.library.MethodProxyExecuter.executeInterceptor(SourceFile:6) at com.alipay.hulu.common.injector.InjectorService_Proxy.pushMessage(com/alipay/hulu/common/injector/InjectorService_proxy:-1) at com.alipay.hulu.adapter.f$a.onStopTrackingTouch(SourceFile:6) at android.widget.SeekBar.onStopTrackingTouch(SeekBar.java:126) at android.widget.AbsSeekBar.onTouchEvent(AbsSeekBar.java:928) at android.view.View.dispatchTouchEvent(View.java:14353) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3166) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2816) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:499) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871) at android.app.Activity.dispatchTouchEvent(Activity.java:4142) at androidx.appcompat.view.e.dispatchTouchEvent(SourceFile:1) at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:457) at android.view.View.dispatchPointerEvent(View.java:14617) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6193) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5987) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5474) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5531) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5497) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5649) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5505) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5706) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5478) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5531) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5497) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5505) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5478) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8336) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8287) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8228) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8485) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:220) at android.os.MessageQueue.nativePollOnce(Native method) at android.os.MessageQueue.next(MessageQueue.java:335) at android.os.Looper.loop(Looper.java:183) at android.app.ActivityThread.main(ActivityThread.java:7724) at java.lang.reflect.Method.invoke(Native method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1014)

Screenshots / 截图 If applicable, add screenshots to help explain your problem. / 最好能够附上相关问题的截图信息。

Device Info / 设备信息

Additional context/其他内容 Add any other context about the problem here. / 其他与问题相关的内容