Image previewer does not work
See original GitHub issueOS/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
- 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
- The most recent files from ~/.local/share/code-server/coder-logs are empty
- The browser console: no new messages popped up while opening the image
- The browser network tab: This is what appeared while opening the image
Screenshot
while inspecting the body of the editor:
Notes
This issue can be reproduced in VS Code: No
This issue can be reproduced with code-server v3.10.2
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:23 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
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:
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