Skip to content

Image not showing up #4658

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
ggvick opened this issue Dec 24, 2021 · 4 comments
Closed

Image not showing up #4658

ggvick opened this issue Dec 24, 2021 · 4 comments

Comments

@ggvick
Copy link

ggvick commented Dec 24, 2021

  • Web Browser: tested on both Brave and safari
  • Local OS: macOS big sur 11.6
  • Remote OS: ubuntu 20.04 LTS
  • Remote Architecture: 64 bit
  • code-server --version: 3.12

Steps to Reproduce

  1. Open any png/jpg image

Expected

It shows me the image selected

Actual

no image shows up, its just blank and says nothing.

Nothing shows up. No logs to provide for this because there are no errors, even with the debug.

I uploaded an image that I know works because I previewed it on my device before uploading. It still did not show.

Screenshot

Notes

I uploaded an image that I know works because I previewed it on my device before uploading. It still did not show.

This issue can be reproduced in VS Code: Yes

@gogobd
Copy link

gogobd commented Dec 31, 2021

I'm seeing the same issue:

code-server: v3.12.0
VS Code: v1.60.0
Commit: 4cd55f9
Date: 2021-09-15T19:34:37Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 3, 2022

@ggvick Are there any logs in the browser console? Are you accessing via https?

@or0986113303
Copy link

I'd saw the same issue wehn I opened any image file,
the environment as below :

  • Remote OS : ubuntu 20.04 TLS
  • Local OS : windows 10
  • code-server --version : 4.0.1
  • Browser : Chrome/96.0.4664.110

And capture console logs at browser as below :

Activating extension 'hediet.vscode-drawio' failed: Cannot find module '/home/xxx/.local/share/code-server/extensions/hediet.vscode-drawio-999.0.0-alpha/dist/extension/index'
Require stack:

  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/loader.js
  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-amd.js
  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork.js.
    $onExtensionActivationError @ mainThreadExtensionService.ts:95
    _doInvokeHandler @ rpcProtocol.ts:472
    _invokeHandler @ rpcProtocol.ts:457
    _receiveRequest @ rpcProtocol.ts:373
    _receiveOneMessage @ rpcProtocol.ts:295
    (anonymous) @ rpcProtocol.ts:160
    fire @ event.ts:577
    fire @ ipc.net.ts:511
    _receiveMessage @ ipc.net.ts:869
    (anonymous) @ ipc.net.ts:708
    fire @ event.ts:577
    acceptChunk @ ipc.net.ts:284
    (anonymous) @ ipc.net.ts:245
    (anonymous) @ browserSocketFactory.ts:197
    fire @ event.ts:577
    C._fileReader.onload @ browserSocketFactory.ts:81

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 7, 2022

Typically an image won't show up if you're accessing via HTTP (in which case service workers are disabled by the browser).

I tested in 4.0.1 and cannot reproduce. I'm going to close this for now since we don't have any new information and can't reproduce. If it's still an issue, please open a new bug report!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants