Closed
Bug 1173695
Opened 10 years ago
Closed 10 years ago
Unable to import specific profiles which cause an error to be thrown by recording-utils.js:303:6
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect, P1)
Tracking
(firefox40 affected, firefox41 verified)
VERIFIED
FIXED
Firefox 41
People
(Reporter: avaida, Assigned: jsantell)
References
Details
Attachments
(2 files)
9.53 MB,
text/plain
|
Details | |
6.90 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
NOTE: this is a follow-up issue from Bug 1164130.
Reproducible on:
* Aurora 40.0a2 (2015-06-10)
* Nightly 41.0a1 (2015-06-10)
Affected platforms:
Windows 7 (x64), Mac OS X 10.9.5 and Ubuntu 14.04 (x64)
Steps to reproduce:
1. Launch Firefox.
2. Open the Performance tools.
3. Import the attached profile.
4. Check the Browser Console.
Expected result:
* The profile is successfully imported.
* There are no errors thrown in the Browser Console for this action.
Actual result:
The profile cannot be imported and the following error gets thrown in the Browser Console by recording-utils.js:303:6:
> TypeError: samples is undefined
Additional notes:
* This is the only profile sample I have that reproduces the issue, I'm not sure what went wrong but trying to import a 2nd profile made from the same browser version (Release 37.0.2) was successful.
Assignee | ||
Updated•10 years ago
|
Priority: -- → P1
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
Not sure what causes this. But this recording is a v2 recording, and also has deflated profiler data. An extra thread is a string, and contains additional threads, like it's a full other recording. Anyways, this protects against that
Attachment #8621399 -
Flags: review?(vporof)
Comment 2•10 years ago
|
||
Comment on attachment 8621399 [details] [diff] [review]
1173695-import-failure.patch
Review of attachment 8621399 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/performance/modules/logic/recording-utils.js
@@ +259,5 @@
> */
> function deflateProfile(profile) {
> profile.threads = profile.threads.map((thread) => {
> let uniqueStacks = new UniqueStacks();
> +
Nit: useless newline.
Attachment #8621399 -
Flags: review?(vporof) → review+
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Reporter | ||
Comment 5•10 years ago
|
||
Verified fixed on Nightly 41.0a1 (2015-06-23), using Windows 8.1 (x64), Ubuntu 14.04 (x86) and Mac OS X 10.9.5.
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•