theia-trace-extension
theia-trace-extension copied to clipboard
Many instances of the same, long error at trace server startup
This is intermittent and may not be easy to reproduce. It seems to only happen a fraction of the time, when one opens a trace without having the trace server already started.
When it happens, there is around 100 of these error traces in the frontend console and in the backend log:
2024-09-19T19:46:51.223Z root ERROR waitForTraceServer@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:14182:25
async*../../theia-extensions/viewer-prototype/lib/browser/trace-viewer/trace-viewer-contribution.js/open/<@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:14037:36
async*open@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:14031:67
async*execute@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:12713:34
execute@http://localhost:3000/bundle.js:85563:35
executeCommand@http://localhost:3000/bundle.js:75480:42
async*delegate@http://localhost:3000/bundle.js:79418:43
executeCommand@http://localhost:3000/bundle.js:79403:21
execute@http://localhost:3000/vendors-node_modules_theia_core_lib_browser_menu_browser-menu-module_js.js:527:44
../../node_modules/@phosphor/commands/lib/index.js/CommandRegistry.prototype.execute@http://localhost:3000/bundle.js:22328:33
../../node_modules/@phosphor/widgets/lib/menu.js/Menu.prototype.triggerActiveItem@http://localhost:3000/bundle.js:34675:27
../../node_modules/@phosphor/widgets/lib/menu.js/Menu.prototype._evtMouseUp@http://localhost:3000/bundle.js:35011:14
../../node_modules/@phosphor/widgets/lib/menu.js/Menu.prototype.handleEvent@http://localhost:3000/bundle.js:34821:22
EventListener.handleEvent*../../node_modules/@phosphor/widgets/lib/menu.js/Menu.prototype.onBeforeAttach@http://localhost:3000/bundle.js:34846:19
../../node_modules/@phosphor/widgets/lib/widget.js/Widget.prototype.processMessage@http://localhost:3000/bundle.js:41832:22
invokeHandler@http://localhost:3000/bundle.js:25777:21
sendMessage@http://localhost:3000/bundle.js:25513:26
attach@http://localhost:3000/bundle.js:42229:33
openRootMenu@http://localhost:3000/bundle.js:35512:25
../../node_modules/@phosphor/widgets/lib/menu.js/Menu.prototype.open@http://localhost:3000/bundle.js:34801:17
open@http://localhost:3000/vendors-node_modules_theia_core_lib_browser_menu_browser-menu-module_js.js:345:15
doRender@http://localhost:3000/vendors-node_modules_theia_core_lib_browser_menu_browser-menu-module_js.js:51:21
render@http://localhost:3000/bundle.js:47148:29
../../node_modules/@theia/core/lib/browser/tree/tree-widget.js/handleContextMenuEvent/<@http://localhost:3000/bundle.js:70662:59
setTimeout handler*handleContextMenuEvent@http://localhost:3000/bundle.js:70662:27
onContextMenu@http://localhost:3000/bundle.js:70335:42
callCallback@http://localhost:3000/bundle.js:355952:14
invokeGuardedCallbackDev@http://localhost:3000/bundle.js:356001:16
invokeGuardedCallback@http://localhost:3000/bundle.js:356065:31
invokeGuardedCallbackAndCatchFirstError@http://localhost:3000/bundle.js:356079:25
executeDispatch@http://localhost:3000/bundle.js:360829:42
processDispatchQueueItemsInOrder@http://localhost:3000/bundle.js:360861:22
processDispatchQueue@http://localhost:3000/bundle.js:360874:37
dispatchEventsForPlugins@http://localhost:3000/bundle.js:360885:23
../../node_modules/react-dom/cjs/react-dom.development.js/dispatchEventForPluginEventSystem/<@http://localhost:3000/bundle.js:361076:12
batchedUpdates$1@http://localhost:3000/bundle.js:377962:12
[many more...]
I have found that the errors happen in waitForTraceServer(), in file trace-viewer-contribution.ts, at least when called from open() in that same file.
Update: it seems that after the update to Theia v1.52.0 (WIP at the time of writing), the issue is still present but the error message is cut short (starts the same way):
2024-09-20T15:28:20.773Z root ERROR waitForTraceServer@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:14160:25
2024-09-20T15:28:20.777Z root ERROR waitForTraceServer@http://localhost:3000/node_modules_moment_locale_sync_recursive_-theia-extensions_viewer-prototype_lib_browser_trac-1afd20.js:14160:25
[many more...]