code-server icon indicating copy to clipboard operation
code-server copied to clipboard

White Screen After Login on ChromeOs But Works on Windows

Open sbbrl opened this issue 1 year ago • 10 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: ChromeOs
  • Remote OS: Ubuntu 24
  • Remote Architecture: amd64
  • code-server --version: 1.93.1 3542bd157b0ccc8bf732acdb03d4d69d85f48ea9 x64

Steps to Reproduce

  1. Running vs1.pyhub.wiki on ChromeOs Gives Blank Screen after login but works well when accessing from Windows

Expected

Dashboard of Code-Server

Actual

Blank White Screen

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • [X] I am using a secure context.

Notes

I have other deployments of Code-Server too of V 1.89.1 which didnt show this blank screen and another 1.92.1 which showed blank screen/

sbbrl avatar Sep 30 '24 16:09 sbbrl

Its Deployed On AWS EC2 with http and https enabled , proxied using Nginx and certbot for ssl

sbbrl avatar Sep 30 '24 16:09 sbbrl

Is it possible to open the browser console and paste the logs from there?

code-asher avatar Sep 30 '24 20:09 code-asher

It's a library chromebook so i don't always have access to it , but I'll drop the logs when i do go there.

sbbrl avatar Oct 01 '24 01:10 sbbrl

If anyone wants to check it out the password for vs1.pyhub.wiki is gittest i have another deployment which has the nginx settings without the servername and _ instead its : http://44.194.214.195 passwd is gittest if anyone wants to test these and find the problem it would be great.

sbbrl avatar Oct 01 '24 01:10 sbbrl

@code-asher Error From Console : notebookWebviewPreloads.js:7 Uncaught SyntaxError: Unexpected token '{' workbench.js:3 Uncaught SyntaxError: Unexpected token '{'

sbbrl avatar Oct 01 '24 13:10 sbbrl

No any Errors on the Network requests evth else loads fine, works smooth on android , windows but having this issue in chromeOs but i have another installation of code-server on an arm64 cpu version V 1.89.1 , loading that works well.

sbbrl avatar Oct 01 '24 13:10 sbbrl

Thank you! Usually these types of errors means the browser is out of date and VS Code is using some newer syntax that the browser does not understand. What version of Chrome is it using?

code-asher avatar Oct 01 '24 19:10 code-asher

Although, it can also mean that the resource failed to load and it is loading something other than JavaScript. Might be worth it to check notebookWebviewPreloads.js in the browser console and see what the actual response for it is.

code-asher avatar Oct 01 '24 19:10 code-asher

@code-asher i think It uses Chrome 93 Its an Old Chromebook from 2016 , Acer Chromebook 11 , Any way to get it to work ? because my another deployment of Code-Server V 1.89.1 works smoothly

sbbrl avatar Oct 02 '24 03:10 sbbrl

Sorry for the delayed response. Unfortunately, VS Code targets newer browsers so it is largely out of our control. We did try to target earlier browsers, but there was a bug in the transpiler. Maybe in the future it will be possible to try forcing an older version again.

code-asher avatar Oct 15 '24 18:10 code-asher