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

Debugging the back-end process seems to crash back-end plugin host process #18860

Closed
4 of 22 tasks
tsmaeder opened this issue Jan 22, 2021 · 2 comments
Closed
4 of 22 tasks
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@tsmaeder
Copy link
Contributor

Describe the bug

Whenever I try to debug the plugin host process in a self-hosting scenario, the back end plugin-host process crashes immediately.

Che version

  • latest
  • nightly
  • other:

Steps to reproduce

  1. Build che-theia
  2. Run the theia back-end with --inspect-break=...
  3. Observe: the plugin host process seems to crash, the connection to the host is closed
  4. In the log, I find this stack trace:
Error: Cannot find module '/default-theia-plugins/vscode-builtin-js-debug/extension/src/bootloader.bundle.js'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1147:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:446:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:74:3)
    at internal/main/run_main_module.js:7:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
} 

a cursory inspection of the source code of the vscode-builtin-js-debug extension reveals that this is some kind of bootloader script for auto-attach debug support. As I understand it, the file is supposed to be copied to the the theia storage area, but that does not seem to be the case here. The problem here is that /default-theia-plugins is a folder that only exists in the theia container. Loading stuff from there fails in other containers, obviously.

Expected behavior

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Additional context

@tsmaeder tsmaeder added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 22, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jan 22, 2021
@tsmaeder tsmaeder changed the title Can't seem to debug plugin host process Debugging the back-end process seems to crash back-end plugin host process Jan 22, 2021
@tsmaeder
Copy link
Contributor Author

The problem can be worked around by putting the following in your preferences:

   "debug.extensionHost.useV3": false,
   "debug.node.useV3": false

Note that this only worked for me after putting 'false' explicitly, even though the default when you open the prefs is "unchecked".

@amisevsk amisevsk added area/editor/theia Issues related to the che-theia IDE of Che severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jan 22, 2021
@che-bot
Copy link
Contributor

che-bot commented Aug 9, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 9, 2021
@che-bot che-bot closed this as completed Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants