Skip to content

Getting a Black Screen #125

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

Closed
DheerajKN opened this issue Mar 8, 2019 · 11 comments
Closed

Getting a Black Screen #125

DheerajKN opened this issue Mar 8, 2019 · 11 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@DheerajKN
Copy link

Description

Initially I created a Linux VM in Azure and used wget to download the tar.gz file of code-server and ran ./code-server <empty directory>

Everything was running fine and then I got this error

ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'\n at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/home/knd/Coder-codeServer/code-server-1.31.1-100-linux-x64/code-server:468:27371), <anonymous>:71445:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

But even after encountering so I went to localhost:8443 and under Advanced accept the unsafe way which displayed password which I copied from my terminal, there is a black screen that is being rendered.

Related Issues

-> What did I do wrong??
-> Why I am getting a black screen??
-> What is the Error, and how to solve it??

@ICEFIR
Copy link

ICEFIR commented Mar 8, 2019

That error is irrelevant... at least to your problem I think
The page render could take a while to load, so I guess just wait a while, and keep monitoring the console output to see what's going on?

@kylecarbs
Copy link
Member

Try also clearing your cache. There's a problem with the unauthed->authed screen with caching.

@nhooyr nhooyr added the waiting-for-info Waiting for more information from submitter label Mar 8, 2019
@NGTmeaty
Copy link
Contributor

NGTmeaty commented Mar 8, 2019

Duplicate of #121 ?

@nhooyr
Copy link
Contributor

nhooyr commented Mar 8, 2019

Seems to be the same as #121

@kylecarbs
Copy link
Member

Continue discussion in #121

@jrpub
Copy link

jrpub commented Mar 11, 2019

I had also the black screen. To solve it, do not use relative path for your project when loading code-server, put the absolute path to your project.

It solves the black screen, but I still have the #121 which does not prevent vscode to work.

@renerocksai
Copy link

I had also the black screen. To solve it, do not use relative path for your project when loading code-server, put the absolute path to your project.

It solves the black screen, but I still have the #121 which does not prevent vscode to work.

I cannot second that. I still get the black screen, even with an absolute project path, and: this does prevent vscode to work since the screen becomes unresponsive and eventually totally dark (and unresponsive)

@renerocksai
Copy link

I had also the black screen. To solve it, do not use relative path for your project when loading code-server, put the absolute path to your project.
It solves the black screen, but I still have the #121 which does not prevent vscode to work.

I cannot second that. I still get the black screen, even with an absolute project path, and: this does prevent vscode to work since the screen becomes unresponsive and eventually totally dark (and unresponsive)

Some more info: it actually started to work ONCE after like ten minutes -- on a box with 64GB RAM, 48 cores. It locked up after double-clicking a file to open it. After that the UI locks up, eventually it goes blank entirely. Then, 15 minutes later, it suddenly works -- UNTIL you hit reload in the browser. I am trying to reproduce but unfortunately, after opening a file it is still stuck, has been for ages now.

@renerocksai
Copy link

I had also the black screen. To solve it, do not use relative path for your project when loading code-server, put the absolute path to your project.
It solves the black screen, but I still have the #121 which does not prevent vscode to work.

I cannot second that. I still get the black screen, even with an absolute project path, and: this does prevent vscode to work since the screen becomes unresponsive and eventually totally dark (and unresponsive)

Some more info: it actually started to work ONCE after like ten minutes -- on a box with 64GB RAM, 48 cores. It locked up after double-clicking a file to open it. After that the UI locks up, eventually it goes blank entirely. Then, 15 minutes later, it suddenly works -- UNTIL you hit reload in the browser. I am trying to reproduce but unfortunately, after opening a file it is still stuck, has been for ages now.

OK, this seems to happen only in project folders with many files (thousands). In teeny-weeny src only folders this doesn't happen.

@kylecarbs
Copy link
Member

Interesting. There's actually a VS Code issue open for pegging CPU with the watcher.

@renerocksai
Copy link

Interesting. There's actually a VS Code issue open for pegging CPU with the watcher.

OK, good to know. However, this behavior does not show when running vscode locally, accessing the project directory over a samba share (or at least it doesn't hog for longer than 1-2s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

7 participants