Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

抓取应用启动过程中trace信息,在stop stracing的时候控制台出现错误提示,如下 #84

Open
renzhenming opened this issue Jul 15, 2023 · 1 comment

Comments

@renzhenming
Copy link

Android 12的机型

C:\Users\admin>java -jar D:\application\platform_tools\platform-tools\btrace\btrace.jar -a com.rzm.huace.testbtrace -t 10 -o D:\application\platform_tools\platform-tools\btrace\output.pb -r rhea.all sched -fullClassName
07-15 17:00:39.401 I RheaTrace : workspace clear: D:\application\platform_tools\platform-tools\btrace\rheatrace.workspace
07-15 17:00:40.336 I RheaTrace : os version is 31. default capture is PerfettoCapture
07-15 17:00:41.196 RheaTrace : start tracing...
07-15 17:00:51.651 RheaTrace : stop tracing...
07-15 17:00:58.033 RheaTrace : MaxAppTraceBufferSize usage 53808/500000000 (0%)
07-15 17:00:58.879 I RheaTrace : reuse cached mapping:C:\Users\admin.rheatrace_mapping\e5ea9d32-0cc0-454a-9358-7533ecb0089b
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 5
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at com.bytedance.rheatrace.processor.core.AppTraceProcessor.processDraft(AppTraceProcessor.java:116)
at com.bytedance.rheatrace.processor.core.AppTraceProcessor.getATrace(AppTraceProcessor.java:98)
at com.bytedance.rheatrace.processor.core.AbstractTraceGenerator.generate(AbstractTraceGenerator.java:33)
at com.bytedance.rheatrace.processor.perfetto.PerfettoCapture.process(PerfettoCapture.java:95)
at com.bytedance.rheatrace.processor.Main.main(Main.java:108)

@mzule
Copy link
Collaborator

mzule commented Jul 19, 2023

这是 binder 监控的脚本兼容性问题,可以去掉 rhea.all 试试,这个问题我们处理下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants