Bug #117734
测试 Test-ST #113421: V4.0功能与专项测试
测试 Test-ST #113422: V4.0专项--AF专项--monkey测试
【AF】【EVT3】【Monkey】Monkey测试48小时,出现CRASH: com.android.systemui(3)
Status: | CLOSED | Start date: | 2023-05-04 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | CD TEST-方永红 | % Done: | 100% | |
Category: | CD-FW | |||
Target version: | - | |||
Need_Info: | -- | Found Version: | FlatBuild_HH_MCE_FSE.M.R.user.01.00.0095.C103(X103) | |
Resolution: | FIXED | Degrated: | No | |
Severity: | Critical | Verified Version: | FlatBuild_HH_MCE_FSE.M.D.user.01.00.C103(X103).202305130049 | |
Reproducibility: | Rarely | Fixed Version: | 2023-05-08 | |
Test Type: | Monkey Test | Root cause: | 更新控制中心媒体播放控件的时候,重复创建ViewHoder,ViewHoder中持有Bitmap,Bitmap数量一直在增加导致内存泄露 |
Description
【执行命令】
adb shell
monkey --pkg-blacklist-file /sdcard/blacklist.txt --ignore-crashes --ignore-timeouts --ignore-security-exceptions --monitor-native-crashes --ignore-native-crashes -s 20 --throttle 500 --pct-touch 30 --pct-motion 15 --pct-nav 15 --pct-majornav 15 --pct-syskeys 5 --pct-appswitch 10 --pct-anyevent 10 --ignore-crashes -v -v -v 2500000 2>/sdcard/error.txt 1>/sdcard/info.txt
// CRASH: com.android.systemui (pid 1870) // Short Msg: java.lang.OutOfMemoryError // Long Msg: java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 1472960 free bytes and 1438KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. // Build Label: HiPhi/PassengerDisplay_CN/PassengerDisplay:12/SKQ1.220201.001/3052:user/test-keys // Build Changelist: 3052 // Build Time: 1682619940000 // java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 1472960 free bytes and 1438KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. // at android.os.ThreadLocalWorkSource.setUid(ThreadLocalWorkSource.java:68) // at android.os.Looper.loopOnce(Looper.java:199) // at android.os.Looper.loop(Looper.java:288) // at android.os.HandlerThread.run(HandlerThread.java:67) //
History
#1 Updated by CD TEST-方永红 about 2 years ago
- File tlog_iov0201017500006162025411a2212290000002151_000039_0503182417.tar.gz added
- File error.txt
added
#2 Updated by CD TEST-方永红 about 2 years ago
- Subject changed from 【AF】【EVT3】【Monkey】Monkey测试48小时,出现com.android.systemui(3) to 【AF】【EVT3】【Monkey】Monkey测试48小时,出现CRASH: com.android.systemui(3)
#3 Updated by CD APP-王营 about 2 years ago
- Assignee changed from CD APP-王营 to CD FW 曹覃刚
#4 Updated by CD TEST-方永红 about 2 years ago
- Severity changed from Normal to Critical
#5 Updated by CD FW 曹覃刚 about 2 years ago
- Category changed from CD-APP to CD-FW
- Status changed from New to ASSIGNED
#6 Updated by CD FW 曹覃刚 about 2 years ago
■ 当前的状态
SystemUI内存溢出, 从现有的日志中没有有效发现
■ 下一步计划
需要花时间跑monkey复现这个问题,抓堆内存文件看一下,定位问题点
#7 Updated by IoT scm about 2 years ago
Gerrit Merge Information:
ID | Project | Branch | Uploader |
197917 | general/platform/frameworks/base | Pre_figure_turbox-c2130c-la1.1-qssi12-dev | caoqg0702@thundersoft.com |
AF:SystemUI: Fix the problem of memory leak caused by repeated creation of ViewHoder. TC-RID: 1201-0201903 IssueID: TS-R-BUG-117734 Change-Id: I49aa4021738eca2160cfa88feff41e37a4f3b7e3 |
#8 Updated by CD FW 曹覃刚 about 2 years ago
- Status changed from ASSIGNED to RESOLVED
- Assignee changed from CD FW 曹覃刚 to CD TEST-方永红
- % Done changed from 0 to 100
- Resolution changed from -- to FIXED
- Degrated changed from -- to No
- Fixed Version set to 2023-05-08
- Root cause set to 更新控制中心媒体播放控件的时候,重复创建ViewHoder,ViewHoder中持有Bitmap,Bitmap数量一直在增加导致内存泄露
#9 Updated by CD TEST-方永红 about 2 years ago
5.10
0098版本未复现
#10 Updated by CD TEST-方永红 about 2 years ago
5.12
0099未复现
#11 Updated by CD TEST-方永红 about 2 years ago
- Status changed from RESOLVED to VERIFIED
- Verified Version set to FlatBuild_HH_MCE_FSE.M.D.user.01.00.C103(X103).202305130049
5.15
13日DB未复现
#12 Updated by CD TEST-方永红 about 2 years ago
- Status changed from VERIFIED to CLOSED