Skip to content
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

Error: Unknown actor YourServiceName when refreshing the browser window #7176

Closed
kittaakos opened this issue Feb 19, 2020 · 6 comments · Fixed by #7192
Closed

Error: Unknown actor YourServiceName when refreshing the browser window #7176

kittaakos opened this issue Feb 19, 2020 · 6 comments · Fixed by #7192
Assignees
Labels
plug-in system issues related to the plug-in system

Comments

@kittaakos
Copy link
Contributor

Description

Happened when verifying #5167.
I can see a lot of Unknown actor ServiceName error in the console after refreshing the browser.

Steps to reproduce:

  • Build and start Theia from the source, open Theia in your workspace. I used this commit 00c1747.
  • Open .node_modules/@theia/api-tests/src/browser-utils.spec.js in an editor. Note, it's from node_modules.
  • I see the first error:
root ERROR [hosted-plugin: 92909] Error: Possible Emitter memory leak detected. 31 listeners added. Use event.maxListeners to increase the limit (30)
    at Emitter.checkMaxListeners (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:253:26)
    at PreferenceRegistryExtImpl._event.Object.assign.maxListeners [as onDidChangeConfiguration] (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:221:27)
    at Object.onDidChangeConfiguration (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/plugin/plugin-context.js:387:46)
    at b.hookConfigurationChanged (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:65825)
    at e.initialize.then.t (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:60594)
root ERROR [hosted-plugin: 92909] Error: Possible Emitter memory leak detected. 32 listeners added. Use event.maxListeners to increase the limit (30)
    at Emitter.checkMaxListeners (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:253:26)
    at PreferenceRegistryExtImpl._event.Object.assign.maxListeners [as onDidChangeConfiguration] (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:221:27)
    at Object.onDidChangeConfiguration (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/plugin/plugin-context.js:387:46)
    at V.register (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:48061)
    at Promise (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:68963)
    at new Promise (<anonymous>)
    at b.handleRegistrationRequest (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:68621)
    at e.onRequest.e (/Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:60165)
    at /Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:7804
    at /Users/akos.kitta/git/theia/plugins/vscode-eslint/extension/client/out/extension.js:1:8842
root ERROR [hosted-plugin: 92909] Promise rejection not handled in one second: TypeError: r.languages.registerSelectionRangeProvider is not a function , reason: TypeError: r.languages.registerSelectionRangeProvider is not a function
root ERROR [hosted-plugin: 92909] With stack trace: TypeError: r.languages.registerSelectionRangeProvider is not a function
    at s.VersionDependentRegistration [as _doRegister] (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:165417)
    at s.update (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12072)
    at t.VersionDependentRegistration.update (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12541)
    at new t.VersionDependentRegistration (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12340)
    at Object.t.register (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:165351)
    at Promise.all.Promise.resolve.then.then.t (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:122930)
    at process._tickCallback (internal/process/next_tick.js:68:7)
root ERROR [hosted-plugin: 92909] Promise rejection not handled in one second: TypeError: r.languages.registerSelectionRangeProvider is not a function , reason: TypeError: r.languages.registerSelectionRangeProvider is not a function
With stack trace: TypeError: r.languages.registerSelectionRangeProvider is not a function
    at s.VersionDependentRegistration [as _doRegister] (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:165417)
    at s.update (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12072)
    at t.VersionDependentRegistration.update (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12541)
    at new t.VersionDependentRegistration (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:12340)
    at Object.t.register (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:165351)
    at Promise.all.Promise.resolve.then.then.t (/Users/akos.kitta/git/theia/plugins/vscode-builtin-typescript-language-features/extension/dist/extension.js:1:122930)
    at process._tickCallback (internal/process/next_tick.js:68:7)
root ERROR [hosted-plugin: 92909] Promise rejection not handled in one second: undefined , reason: undefine

Close the editor and refresh the browser window:

Promise rejection not
root ERROR [hosted-plugin: 92812] handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor StatusBarMessageRegistryMain , reason: Error: Unknown actor StatusBarMessageRegistryMain
With stack trace: Error: Unknown actor StatusBarMessageRegistryMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plu
root ERROR [hosted-plugin: 92812] gin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor WorkspaceMain , reason: Error: Unknown actor WorkspaceMain
With stack trace: Error: Unknown actor WorkspaceMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor CommandRegistryMain , reason: Error: Unknown actor CommandRegistryMain
With stack trace: Error: Unknown actor CommandRegistryMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor CommandRegistryMain , reason: Error: Unknown actor CommandRegistryMain
With stack trace: Error: Unknown actor CommandRegistryMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
root ERROR [hosted-plugin: 92812] at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor LanguagesMain , reason: Error: Unknown actor LanguagesMain
With stack trace: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor TasksMain , reason: Error: Unknown actor TasksMain
With stack trace: Error: Unknown actor TasksMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor TasksMain , reason: Error: Unknown actor TasksMain
With stack trace: Error: Unknown actor TasksMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)
Promise rejection not handled in one second: Error: Unknown actor TasksMain , reason: Error: Unknown actor TasksMain
With stack trace: Error: Unknown actor TasksMain
    at RPCProtocolImpl.doInvokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:248:19)
    at RPCProtocolImpl.invokeHandler (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:239:41)
    at RPCProtocolImpl.receiveRequest (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:203:31)
    at RPCProtocolImpl.receiveOneMessage (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:172:22)
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:64:109
    at /Users/akos.kitta/git/theia/packages/plugin-ext/lib/common/rpc-protocol.js:279:17
    at /Users/akos.kitta/git/theia/packages/core/lib/common/event.js:160:33
    at CallbackList.invoke (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:175:39)
    at Emitter.fire (/Users/akos.kitta/git/theia/packages/core/lib/common/event.js:262:29)
    at ChildProcess.<anonymous> (/Users/akos.kitta/git/theia/packages/plugin-ext/lib/hosted/node/hosted-plugin-process.js:121:21)

Note, I have truncated the stack trace 👆, it was more than 2k lines. I can consistently reproduce it.

Reproduction Steps

OS and Theia version:

Diagnostics:

@akosyakov
Copy link
Member

Unknwon actor is a dup of #5839?

@akosyakov akosyakov added the plug-in system issues related to the plug-in system label Feb 19, 2020
@akosyakov
Copy link
Member

Ok, looking into it. Initial errors are not related they are because of missing VS Code apis and too many configuration listeners from VS Code extensions. Unfortunately cannot reproduce following to given steps, but will try something else.

@akosyakov akosyakov self-assigned this Feb 20, 2020
@akosyakov
Copy link
Member

akosyakov commented Feb 20, 2020

I can reproduce it with debugging Theia Browser Backend:

  • change port to 3030 in launch configuration
  • launch
  • wait for massive output from started Theia in the debug console
  • reload the page

It is triggered by disposing the plugin host process while It's processing requests from Theia, so then there are some unfinished communications.

@akosyakov
Copy link
Member

akosyakov commented Feb 20, 2020

I think it comes from here:

const emitter = new Emitter();
cp.on('message', message => {
emitter.fire(JSON.parse(message));
});
const rpc = new RPCProtocolImpl({
onMessage: emitter.event,
send: (m: {}) => {
if (cp.send) {
cp.send(JSON.stringify(m));
}
}
});
const hostedPluginManager = rpc.getProxy(MAIN_RPC_CONTEXT.HOSTED_PLUGIN_MANAGER_EXT);
hostedPluginManager.$stop().then(() => {
emitter.dispose();
this.killProcessTree(cp.pid);
});

The frontend is already gone, but to shutdown the plugin host process we create a new RPC which does not have any frontend services, so all requests from the plugin host process caused by deactivation are failing. I wonder what should be the proper way to handle them. Should we ignore messages produced by the plugin host process, i.e. cp.on('message'? There is no way we can handle them without frontend. cc @benoitf @tsmaeder

@akosyakov
Copy link
Member

I assume this code is to handle abrupt shutdown of a client, like a browser crashed. We should consider the page reload as a normal situation and make sure that frontend context is not gone while the plugin process is not shutdown completely. In abrupt situations I'm not sure whether we should try to be smart and deactivate plugins, since it is not possible already. Probably it would be better just kill the process in such cases.

akosyakov added a commit that referenced this issue Feb 20, 2020
…ction

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit that referenced this issue Feb 21, 2020
…ction

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit that referenced this issue Feb 22, 2020
…ction

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
JesterOrNot pushed a commit to JesterOrNot/theia that referenced this issue Mar 12, 2020
…out rpc connection

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants