Closed Bug 1671126 Opened 5 years ago Closed 5 years ago

Encountered an exception during profile symbolication: a bytes-like object is required, not 'str'

Categories

(Core :: Gecko Profiler, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 file)

$ ./mach mochitest toolkit/components/aboutprocesses/ --profiler
[...]
*** End BrowserChrome Test Results ***
 0:52.04 profiler INFO Shutdown performance profiling was enabled
 0:52.04 profiler INFO Profile saved locally to: /var/folders/h7/3p66mld179330q44zs81fth40000gn/T/tmpemtb0xsr/mochitest-profile.json
 0:52.04 profiler INFO Symbolicating the performance profile... This could take a couple of minutes.
 0:53.78 profiler ERROR Exception while forwarding request: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.
 0:55.69 profiler ERROR Encountered an exception during profile symbolication
 0:55.69 profiler ERROR a bytes-like object is required, not 'str'
 0:55.82 profiler INFO Loading this profile in the Firefox Profiler

And the profile loaded, but isn't symbolicated.

Severity: -- → S3
Priority: -- → P2
Assignee: nobody → florian
Status: NEW → ASSIGNED

On my local mac build, I see these errors all the time when using ./mach test --profiler. On my artifact build (with --enable-artifact-build-symbols) I don't see these errors as we don't enter the code path that has issues.

On my linux local build, I only see the "ERROR Exception while forwarding request: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str." error.

See Also: → 1640702
Pushed by fqueze@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9057a86060f fix python errors related to mixed strings and byte streams in mozgeckoprofiler symbolication code, r=gregtatum.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: