question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image previewer does not work

See original GitHub issue

OS/Web Information

  • Web Browser: Chrome Version 91.0.4472.77 (Official Build) (64-bit) / Version 91.0.864.71 (Official build) (64-bit)
  • Local OS: Windows Version 21H1 (19043.1147)
  • Remote OS: Red Hat Enterprise Linux Server release 7.9 (Maipo)
  • Remote Architecture: amd64 (x86_64)
  • code-server --version: 3.11.0 4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd

Steps to Reproduce

  1. Open a png file with the built-in image previewer

Expected

Should show the preview of the image

Actual

The editor shows nothing but just blank

Logs

  1. The most recent files from ~/.local/share/code-server/coder-logs are empty
  2. The browser console: no new messages popped up while opening the image
  3. The browser network tab: This is what appeared while opening the image

image

Screenshot

while inspecting the body of the editor:

image

Notes

This issue can be reproduced in VS Code: No

This issue can be reproduced with code-server v3.10.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
jsjoeiocommented, Sep 13, 2021

This should be fixed by https://github.com/cdr/code-server/pull/4131 which will be included in the 3.12 release (planned to come out this week).

5reactions
bowdens07commented, Aug 9, 2021

I’ve checked out 3.11.1 and unfortunately can still reproduce the error through the SVG extension, at about a 2% rate. I would also like to point out that this version cannot open png, gif or jpg files. You’ll get this error:

cannotopenpng

I’m going to open up a new issue for it, because it’s an unrelated error to this thread. Additionally, I started messing around with older versions. I found out I can’t reproduce the webview error nor the failure to load png, gif, jpg, etc. on version 3.9.0. It’s possible this isn’t the boundary for the regression, but at the very least I know that version can run without a hitch.

UPDATE: From version 3.9.3 to version 3.10.0 is where the webview failure was added. 3.9.3 works every time, we see png, jpg, gif, extension errors, etc. fail to load the webview in the same manner described in the initial bug report. I suggest investigating the changes between the versions to identify a potential regression

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 photo thumbnail preview not working
Open This PC on Taskbar. · Click or Tap on Pictures folder. · Click on View. · Click or tap on Options and...
Read more >
How to fix 'Windows Photo Viewer can't open this picture ...
6 Ways to fix Windows Photo Viewer can't open this picture? problem · Update Photo Viewer · Open photos in different application ·...
Read more >
Photos Cannot Preview or Open in Windows? [Fixed]
If your photos cannot preview or open in Windows PC, then it could happen due to an old or outdated version of the...
Read more >
Windows 10 Photo Viewer not Working: 5 Expert Fixes
How can I fix Windows 10 Photo Viewer not working? · 1. Use a professional program · 2. Use PowerShell · 3. Repair...
Read more >
How to Fix Thumbnail Previews Not Showing in Windows 11 ...
Check Folder View Options · Force-Restart File Explorer · Delete Thumbnail Cache · Delete Thumbnail Cache (Alternate Method) · Restore File Explorer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found