Bug #117295
测试 Test-ST #113421: V4.0功能与专项测试
测试 Test-ST #113422: V4.0专项--AF专项--monkey测试
【AF】【EVT3】【Monkey】Monkey测试12小时,出现CRASH: com.android.music(3)
Status: | CLOSED | Start date: | 2023-04-03 | |
---|---|---|---|---|
Priority: | Normal | Due date: | 2023-04-10 | |
Assignee: | CD TEST-方永红 | % Done: | 100% | |
Category: | CD-APP | |||
Target version: | - | |||
Need_Info: | -- | Found Version: | FlatBuild_HH_MCE_FSE.M.D.user.01.00.C102(X102).202304010020 | |
Resolution: | FIXED | Degrated: | -- | |
Severity: | Critical | Verified Version: | FlatBuild_HH_MCE_FSE.M.R.user.01.00.0095.C103(X103) | |
Reproducibility: | Occasionally | Fixed Version: | 2023-04-26 | |
Test Type: | ST | Root cause: | AOSP问题 |
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 86400 2>/sdcard/error.txt 1>/sdcard/info.txt
【错误信息】
// CRASH: com.android.music (pid 7964) // Short Msg: android.app.ForegroundServiceDidNotStartInTimeException // Long Msg: android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{1aeedaa u0 com.android.music/.MediaPlaybackService} // Build Label: TC/figure_CN/figure:12/SKQ1.220201.001/2693:user/test-keys // Build Changelist: 2693 // Build Time: 1680283477000 // android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{1aeedaa u0 com.android.music/.MediaPlaybackService} // at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:1924) // at android.app.ActivityThread.access$2700(ActivityThread.java:248) // at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2149) // at android.os.Handler.dispatchMessage(Handler.java:106) // at android.os.Looper.loopOnce(Looper.java:201) // at android.os.Looper.loop(Looper.java:288) // at android.app.ActivityThread.main(ActivityThread.java:7880) // at java.lang.reflect.Method.invoke(Native Method) // at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) // at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009) //
History
#1 Updated by CD TEST-方永红 over 2 years ago
- File error.txt
added
#2 Updated by CD APP-王营 over 2 years ago
- Due date set to 2023-04-10
- Status changed from New to ASSIGNED
- Assignee changed from CD APP-王营 to CD APP-王宏
#3 Updated by CDTS-TEST 周婷 about 2 years ago
- Severity changed from Normal to Critical
#4 Updated by CD APP-王宏 about 2 years ago
- % Done changed from 0 to 50
■ Current conclusion
已提交
■ My analysis
根据错误日志可以知道,startForegroundService之后5秒内必须调用startForeground,但是逻辑上存在被return的风险,
因此将startForeground的执行顺序提前,以期能顺利解决此问题
■Submit URL
https://dev.thundercomm.com/gerrit/c/general/platform/packages/apps/SnapdragonMusic/+/192624
#5 Updated by IoT scm about 2 years ago
ID | Project | Branch | Uploader |
192624 | general/platform/packages/apps/SnapdragonMusic | Pre_figure_turbox-c2130c-la1.1-qssi12-dev | hong.wang_a@thundersoft.com |
AF:SnapdragonMusic:fixed monkey bug 1.Fix startForeground not being called within five seconds after call Context.startForegroundService() TC-RID: 1201-0301201 IssueID: TS-R-BUG-117295 Change-Id: I096bfd41835e0027017063b938674a0522657d3a |
#6 Updated by CD APP-王宏 about 2 years ago
- Status changed from ASSIGNED to RESOLVED
- Assignee changed from CD APP-王宏 to CD TEST-方永红
- % Done changed from 50 to 100
- Resolution changed from -- to FIXED
- Fixed Version set to 2023-04-11
- Root cause set to AOSP问题
#7 Updated by CD TEST-方永红 about 2 years ago
4.11
11号的0090版本未复现,继续跟踪一个版本
#8 Updated by CD TEST-方永红 about 2 years ago
4.13
12号的DB未复现,继续跟踪一个版本
#9 Updated by CD TEST-方永红 about 2 years ago
- Status changed from RESOLVED to VERIFIED
- Verified Version set to FlatBuild_HH_MCE_FSE.M.R.user.01.00.0091.C103(X103)
4.14
0091版本未复现
先关闭该Bug
#10 Updated by CD TEST-方永红 about 2 years ago
- Status changed from VERIFIED to CLOSED
#11 Updated by CD TEST-方永红 about 2 years ago
- File error(5).txt
added
- Status changed from CLOSED to New
- Assignee changed from CD TEST-方永红 to CD APP-王宏
4.25
【复现版本】
FlatBuild_HH_MCE_FSE.M.R.user.01.00.0093.C103
【测试时间及出现次数】
72H出现一次
【日志】
ftp://cdiot@192.168.87.46/Pre_figure/Test_Log/Bug_117295
#12 Updated by CD APP-王宏 about 2 years ago
■ Current conclusion
已提交
■ My analysis
将stopSelf() 改为 stopService(),跑monkey 看是否还能复现
■Submit URL
https://dev.thundercomm.com/gerrit/c/general/platform/packages/apps/SnapdragonMusic/+/192624
#13 Updated by IoT scm about 2 years ago
ID | Project | Branch | Uploader |
196217 | general/platform/packages/apps/SnapdragonMusic | Pre_figure_turbox-c2130c-la1.1-qssi12-dev | hong.wang_a@thundersoft.com |
AF:SnapdragonMusic:Fixed monkey crash TC-RID: 0301-0301201 IssueID: TS-R-BUG-117295 Change-Id: I368bc47ee564c820d1a2a6412917c4a5494d50c2 |
#14 Updated by CD APP-王宏 about 2 years ago
- Status changed from New to RESOLVED
- Assignee changed from CD APP-王宏 to CD TEST-方永红
#15 Updated by CD APP-王宏 about 2 years ago
- Fixed Version changed from 2023-04-11 to 2023-04-26
#16 Updated by CD TEST-方永红 about 2 years ago
4.27
26号DB版本未复现、继续跟踪两个版本
#17 Updated by CD TEST-方永红 about 2 years ago
- Status changed from RESOLVED to VERIFIED
- Verified Version changed from FlatBuild_HH_MCE_FSE.M.R.user.01.00.0091.C103(X103) to FlatBuild_HH_MCE_FSE.M.R.user.01.00.0095.C103(X103)
4.28
27DB未复现、继续跟踪一个版本
#18 Updated by CD TEST-方永红 about 2 years ago
- Status changed from VERIFIED to CLOSED
5.5
0095及0097版本未复现
先关闭