Skip to content
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

Internal pdf viewer turns to grey (developer tools too) #92970

Closed
afranko opened this issue Mar 18, 2020 · 10 comments
Closed

Internal pdf viewer turns to grey (developer tools too) #92970

afranko opened this issue Mar 18, 2020 · 10 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@afranko
Copy link

afranko commented Mar 18, 2020

  • VSCode Version: 1.43
  • OS Version: Arch Linux x64 (5.5.9-arch1-2)

I use the Latex-workshop extension to create documents in VSCode, but something is wrong with the internal pdf viewer (tab). It start to display the pdf, it loads it, but suddenly the whole display (the viewer) turns to grey. If I close the tab and try it again the same happens as before.

scre2
scre1

I tired to check the developer tools to watch error log, but it doesn't contain any message, but after being opened for 4-5 sec it also turns to black. If I close the tab and try it again the same happens as before...

The only log I have is Latex-Workshop's one:

[22:21:17] Serving PDF file at http://localhost:43177/viewer.html?file=pdf..JTJGaG9tZSUyRmFmcmFua28lMkZ3b3Jrc3BhY2UlMkZpbmZva29tamVneXpldCUyRnNvdXJjZXMlMkZtYWluLnBkZg
[22:21:17] The encoded path is /home/afranko/workspace/infyzet/sources/main.pdf
[22:21:17] Open PDF tab for /home/afranko/workspace/infyzet/sources/main.pdf
[22:21:17] Handle data type: open
[22:21:17] Preview PDF file: /home/afranko/workspace/infyzet/sources/main.pdf
[22:21:17] Root file remains unchanged from: /home/afranko/workspace/infyzet/sources/main.tex.
[22:21:17] Handle data type: request_params
[22:21:20] Handle data type: close

I opened the issue here and in Latex-Workshop repo, because it also affect developer tools.

Does this issue occur when all extensions are disabled?: Yes, both of them.

@afranko afranko changed the title External pdf viewer turns to grey (developer tools too) Internal pdf viewer turns to grey (developer tools too) Mar 18, 2020
@mjbvz mjbvz self-assigned this Mar 19, 2020
@mjbvz mjbvz added the *caused-by-extension Issue identified to be caused by an extension label Mar 19, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Mar 19, 2020

We don't ship a pdf viewer so this must be coming from one of your extensions. Please file this agains them

@tamuratak
Copy link
Contributor

tamuratak commented Mar 19, 2020

@mjbvz, Hi, I am one of the developers of the extension. He says the Developers Tool of VS Code also turns to black. So, this issue might be related to VS Code itself.

but it doesn't contain any message, but after being opened for 4-5 sec it also turns to black.

@afranko
Copy link
Author

afranko commented Mar 19, 2020

@mjbvz

This happens if a click "Toggle Developer Tools":

tgtools1

tgtools2

I didn't do anything between shooting the two pictures. If you still says it's an extension related issue, than I move this conversation to Latex-Workshop repo.

@tamuratak
Copy link
Contributor

@afranko If you use Arch Linux on VM in the same way as #91895, it would be the cause.

@afranko
Copy link
Author

afranko commented Mar 19, 2020

@tamuratak I use VirtualBox in this case, but I don't think it's the same problem here. I disabled 3D acceleration (I tried to enable, but the GUI collapsed the same way as the aforementioned issue), and I also tried all graphics controller in VBox -> Nothing changes...

EDIT: I also tried --disable-gpu flag, and it's working now. Thanks for remind me of that flag.
It seems this is an issue related to the GPU driver, but it produces different symptoms in different Linux variants.

@mjbvz
Copy link
Collaborator

mjbvz commented Mar 19, 2020

Thanks for clarifying. This sounds like an electron (chromium) issue with your gpu under virtual box.

@deepak1556 Is there anything we should do to follow up on gpu related issues like this?

@invisiblearts
Copy link

invisiblearts commented Mar 24, 2020

@mjbvz Unfortunately, I also have this issue on my physical machine (amdgpu driver)

The open source version in arch repo does not have this issue.

Edit: I have found a workaround for this. If I don't maximize the vscode window and hit preview, it is possible that the preview displays properly. Maximizing it then may still work, but doing some more resizing will certainly break it. It sounds similar to #92420 but updating to 1.43.2 does not resolve the problem.

@deepak1556
Copy link
Collaborator

If I don't maximize the vscode window and hit preview, it is possible that the preview displays properly. Maximizing it then may still work, but doing some more resizing will certainly break it.

@invisiblearts does the issue happen even with --disable-gpu flag ?

Is there anything we should do to follow up on gpu related issues like this?

@mjbvz nothing specific, most of the issues are either an issue with chromium or vm, they can report it to upstream with a minimal repro.

@invisiblearts
Copy link

@deepak1556 no, it doesn't.

I tend to believe that this is related to #91824. The issue-free community version archlinux provides is compiled with Electron 7.11.4, which has merged the patch.

@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

6 participants
@deepak1556 @invisiblearts @tamuratak @mjbvz @afranko and others