-
Notifications
You must be signed in to change notification settings - Fork 418
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
An error occurred in Firefox Profiler while analysing a profile #5290
Comments
This happens at profiler/src/components/shared/SampleTooltipContents.js Lines 132 to 139 in acd55ea
It would be good to check for the existence of the stackIndex in the if condition instead of using ensureExists .
|
Hello, |
Honestly I'm not sure when this case might happen. It's rare enough that we might want to have a warning for this case, so that if we see it in the wild at least we don't crash and somebody would be able to upload the profile still. |
No problem, I thought maybe @mayankleoboy had and could attach the profile file that caused the exception so as to have a way reproduce it. I create a draft which probably avoid this exception #5353. |
@julienw
|
Actually I was looking at a profile and managed to reproduce it, and this is easier to reproduce after #5298. This is happening when the stack is filtered though a transform when we already have a tooltip hovered in the activity graph. Here's an example: STR:
![]() Click any of those squares.
This will apply the "drop samples" transform and it will remove them from the view. Expected behavior: it should not crash So it's more likely because applying a transform removes the "stack" value of the sample. This is mostly due to the reason we get the filtered thread here. We should ideally do not render this popup when there is no stack. You can test it locally by converting the |
usually I use the word "debugger;" explicitely in the code so that I'm sure it will break ;-) |
I had profiled https://battle.modez.pro/ , and was looking at the profile.
Suddenly got this error:
Uh oh, some unknown error happened in profiler.firefox.com.
Error: Expected an item to exist, and it was undefined..
Please report this issue to the developers, including the full error as displayed in the Developer Tools’ Web Console.
Error in console:
10:14:49.724 injected firefox content.js:142:11
10:14:49.858 Successfully compiled asm.js code (total compilation time 27ms) zee-worker.js
10:15:07.345
Error: Expected an item to exist, and it was undefined.
h flow.js:182
render SampleTooltipContents.js:136
React 10
react-dom.production.min.js:188:119
React 11
10:15:07.345
An unhandled error was thrown in a React component. Error: Expected an item to exist, and it was undefined.
h flow.js:182
render SampleTooltipContents.js:136
React 10
Gk@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:133:53375
div
Kb@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:114:44368
div
Hk@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:133:54068
@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:117:15904
div
Ax@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:281
@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:117:15904
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
div
div
li
PS@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:70940
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
ol
KS@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:78856
li
YS@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:81848
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
ol
KS@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:78856
div
div
div
lB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:94960
div
oB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:89197
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
vB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:113962
@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:117:15904
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
LB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:123460
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
div
s@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:200:573772
div
t@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:200:575421
div
div
tk@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:133:27292
YB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:126842
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
UI@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:158880
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
jm@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:111:3131
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
div
QB@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:128910
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
cg@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:111:19405
ug
de@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:17306
ce@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:17219
g_@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:179088
c@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:24380
st@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:2:22644
cg@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:111:19405
dg
v_@https://profiler.firefox.com/main.1cb3af3791ee766fff86.bundle.js:137:180180 ErrorBoundary.js:43:12
10:15:21.681
Unknown property ‘-moz-user-focus’. Declaration dropped. from-browser:1:604
10:15:21.684
Unknown property ‘-moz-user-focus’. Declaration dropped. from-browser:1:1497
10:15:21.684
Unknown property ‘-moz-user-focus’. Declaration dropped. from-browser:1:349
10:15:21.685
Unknown property ‘-moz-user-focus’. Declaration dropped.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: