bytedance / bytedance/btrace

Decode thread names failed: buffer underflow, expected name length is 118, actual remaining length is 5

Open
#174 1 comment 0 reactions 0 assignees View on GitHub
android bug
Dominant language
C++
Stars
2.5k
Forks
335
PR merge metrics
No merged PRs in 30d

Description

07-07 19:52:55.033 E RheaTrace : Decode thread names failed: buffer underflow, expected name length is 118, actual remaining length is 5
07-07 19:52:55.688 E RheaTrace : java.lang.RuntimeException: single method mapping missing
at com.bytedance.rheatrace.trace.StackList.(StackList.java:102)
at com.bytedance.rheatrace.trace.StackList.decode(StackList.java:237)
at com.bytedance.rheatrace.trace.SamplingTraceDecoder.decodeSampling(SamplingTraceDecoder.java:88)
at com.bytedance.rheatrace.trace.SamplingTraceDecoder.decode(SamplingTraceDecoder.java:51)
at com.bytedance.rheatrace.perfetto.PerfettoCapture.process(PerfettoCapture.java:115)
at com.bytedance.rheatrace.Main.main(Main.java:114)

Contributor guide

Open the contributing guide

Research direction

Start with StackList.java at lines 102 and 237, then follow the call path through SamplingTraceDecoder.java lines 51 and 88 and PerfettoCapture.java:115. Use the reported thread-name buffer underflow and missing single-method mapping as the failing conditions; done means this trace decodes without either exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.