alibaba / alibaba/tidevice

tidevice crashreport导出bug

Open
#229 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

```
1111@MacBook-Pro-3 model % tidevice crashreport /Users/1111/Desktop/model
[I 220615 18:13:13 _sync:379] copying /Analytics-90Day-2022-04-30-080037.000.ips.ca.synced -> /Users/1111/Desktop/model/Analytics-90Day-2022-04-30-080037.000.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /Merak-2022-06-13-171110.ips -> /Users/1111/Desktop/model/Merak-2022-06-13-171110.ips
[I 220615 18:13:13 _sync:379] copying /Analytics-Journal-Never-2022-04-23-080009.0002.ips.ca.synced -> /Users/1111/Desktop/model/Analytics-Journal-Never-2022-04-23-080009.0002.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-01-205339.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-01-205339.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-20-150756.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-20-150756.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-04-144804.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-04-144804.ips
[I 220615 18:13:13 _sync:379] copying /Merak-2022-05-10-163125.ips -> /Users/1111/Desktop/model/Merak-2022-05-10-163125.ips
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-02-164940.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-02-164940.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-05-174413.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-05-174413.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-04-21-172352.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-04-21-172352.ips
[I 220615 18:13:13 _sync:379] copying /gpuEvent-AIEngineDemo-2022-04-28-191048.ips -> /Users/1111/Desktop/model/gpuEvent-AIEngineDemo-2022-04-28-191048.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-05-182024.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-05-182024.ips
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-02-144844.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-02-144844.ips
[I 220615 18:13:13 _sync:379] copying /Analytics-90Day-2022-04-28-080008.0003.ips.ca.synced -> /Users/cfr/Desktop/model/Analytics-90Day-2022-04-28-080008.0003.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-20-150741.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-20-150741.ips
[I 220615 18:13:13 __main__:366] Done
1111@MacBook-Pro-3 model % tidevice crashreport -l
[I 220615 18:15:10 _crash:23] List of crash logs
[I 220615 18:15:10 _crash:27] No crashes
```

执行tidevice crashreport 指令导出log时,不带-k参数

看源码,好像是到-k true的时候会触发同步清除日志;
我执行不带-k的时候也会被清除,这是bug吗?

另外这个导出crash文件是全局导出是吗?支持指定单个或者多个文件导出吗?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the tidevice crashreport command path and compare its behavior with and without -k; the issue reports that logs disappear even when -k is omitted. Reproduce using crashreport followed by crashreport -l, then determine the expected retention behavior and whether single- or multi-file export is supported. Done means export no longer unexpectedly clears logs and the supported selection behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.