devtools network response from a Lightning REPORT request loads very slowly (long delay) with UI freeze/not responding
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
People
(Reporter: richard.leger, Unassigned)
Details
(Keywords: perf, Whiteboard: [dupme?])
Attachments
(7 files)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 5•6 years ago
|
||
Reporter | ||
Comment 6•6 years ago
|
||
Reporter | ||
Comment 7•6 years ago
|
||
Reporter | ||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
(In reply to Richard Leger from comment #10)
Still happening in TB Version 65.0b1 (32-bit) but to less extend in the
sense that error message is not longer appearing... but not responding issue
and delay remain... so it does not seems to crash the debugger or prevent
access to TB as interface remain intermittently accessible as there seems to
have been some improvement with the "multiprocessing" of TB or the
processing sharing between different part of TB.Though I believe the underlying issue and root cause remain.
Same as previously in TB Version 66.0b1 (32-bit), click on Dev Tool > Network > REPORT > Response
A 1.16MB xml response take about 70seconds to appear, and another 130seconds to be coloured formatted time during which debugger is in a (Not Responding) mode...
This time again, the unresponsive error message is no longer appearing... but that may be because of JavaScript execution load balancing (set to improve performance) between various core execution of TB which cause the script/function to be interrupted possibly at regular interval (below the threshold that raise the error) before being continued...
Once the response is loaded and UI available again, when switching between Debugger tab and Network tab, a lot of delays appear with again the (Not Responding) suffix appearing in the Dev Tools title bar...
Also noticed, if I try to press the Pause button in Debugger tab, TB still seems to continue running some how in the background some items keep appearing in the calendar item list, etc... while I would expect the application to have paused by pressing the pause button in Debugger.
Finally it seems sometime is is also not possible to Pause in the Debugger tab, clicking on button having not effect with the following alt text appearing when mouse over: Waiting for next execution...
Will post some screenshots next for info...
Reporter | ||
Comment 12•6 years ago
|
||
When clicking Network > REPORT > Response the result display area remain empty for 70seconds prior text appear in B&W colour...
Reporter | ||
Comment 13•6 years ago
|
||
another 130seconds between the text appears in B&W colour and the same response text appears colour formatted...
Reporter | ||
Comment 14•6 years ago
|
||
In Dev Tools > Debugger, when mousing over the Pause button, the text "Waiting for next execution" appears, when clicking the Pause button nothing seems to happen...
Reporter | ||
Comment 15•6 years ago
|
||
While the situation has improved slightly, there are still some issue when reading a REPORT request Response via devtools... see unresponsive script warning attached... in addition there is a note a the top of the response that says "the response has been truncated" or similar...
Reporter | ||
Comment 16•6 years ago
|
||
Performance/Timing wise, it seems also very poor... see attached... 12000ms to load REPORT Request Response? I suspect it might be delay due to parsing of the response... and I suspect if it is happening in the devTools, the same would be happening within TB when it loads calendar and parse events from the response REPORT bathes... If this issue was to be looked after and sorted, it may greatly solved performance issues with calendar loading as currently encountered... at least part of it...
Reporter | ||
Comment 17•6 years ago
|
||
Could it be a bug in ressource://devtools/client/shared/vendor/react.js:554 third-party library code? Or when parsing data into DOM objects...?
Reporter | ||
Comment 18•6 years ago
|
||
Would someone have some advise on how to re-run one of the REPORT request in Firefox to compare? Or its devtools instead of TB? Could not find out how to do it...
Updated•6 years ago
|
Reporter | ||
Comment 19•6 years ago
|
||
I managed to re-run the same REPORT query in Firefox 66.0.3 devtools and the request take about 5000ms to complete (5 seconds! still way too long in term of timing)... when trying to read the XML response, it takes time to shows up with an Unresponding notice appearing for a short while and the attached unresponsive script alert popping up at some point... It does not show truncated file alert though...
Unresponsive script
Script: chrome://devtools/content/sour...odemirror/codemirror.bundle.js.1
Reporter | ||
Comment 20•6 years ago
|
||
If I press Continue each time the Unresponsive script popup comes up, at some point after 4 or 5 times, the processing completes and the Response appears as coloured formatted (was appearing B&W at first).
The response is an XML file with 31000 lines!!! No wonder why it takes time to format!!!
Correction: In my previous comment I meant "Not Responding notice" instead of "Unresponding notice"...
Reporter | ||
Comment 21•6 years ago
|
||
(In reply to Richard Leger from comment #15)
... in addition there is a note a the top of the response that says "the response has been truncated" or similar...
I found an answer about the "truncated" response notice mystery here...
Bug 1159078 Display a useful message when a response body is truncated
There is a 1MB response logging limit in devtools above which the response is truncated... Indeed if I copy past the response, via devtools I can see clearly towards the end that that xml file was truncated... as there are missing closing tags... but obviously that applies only to logged data and not the response itself...
Updated•6 years ago
|
Updated•5 years ago
|
Comment 22•4 years ago
|
||
Richard does this still reproduce with a current beta?
Reporter | ||
Comment 23•4 years ago
|
||
A priori resolved as I cannot reproduce the issue in TB 90.0b3 (64-bit).
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Description
•