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
[VSC] Editor freeze on deleted image #69334
Comments
(Experimental duplicate detection) |
@bpasero I thought we had size limits here? |
@joaomoreno are you opening these files via the data-URI trick? The size should be encoded as @levrik do you see a text editor opening eventually or the image shown inline? |
@bpasero Already explained in the original issue. |
@levrik How big, in bytes, is that JPEG? |
@joaomoreno 293.398 bytes |
Any chance you can send it to me? |
@joaomoreno You can download it here: https://hypatos.ai/content/6-imprint/og-image.jpg |
@levrik can you point out the extension that is causing it e.g. by disabling the extensions one by one? |
@bpasero I can repro this without extensions.
|
@joaomoreno Yep. Exactly this. With extensions enabled it doesn't load at all. It just shows the unresponsive warning at some point. |
@joaomoreno can you check if memory goes beserk? |
@bpasero Pretty weird profile: |
@joaomoreno yeah it looks like V8 is spending a very long time in Maybe I can make that call smarter and not do the |
Yeah could be a good idea. Another couple ideas:
|
@alexandrudima on #69334 (comment). The idea would be to change to a |
My fix is to avoid the |
@bpasero I suggest we remove the data-uri hack rather than blaming v8 or rewriting our code for the hack. |
According to #74515 still happening in 1.34. |
@levrik can you give some exact steps how to reproduce this? I tried with the original image (which I guess I still had) and could not: Also maybe try to reproduce in our insiders release. |
@bpasero Happened with a different image this time but I also tried with the original one and it happened there as well. But there was a difference. With all extensions disabled it didn't happen anymore. I could track it down to the Kubernetes extension. It's a bit weird that this extension is causing this since it shouldn't do anything with version control. |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
I'm the maintainer of the Kubernetes extension that @levrik has identified as suffering from this issue. The thing is that having the extension present results in the hang even if the extension has not activated. Even if I delete all of our extension's activation events, the hang still happens! From hacking around our |
We should not test these URIs in our language detection ( |
@mjbvz did we recently increase the max-size for images? I wonder if this also means we now have much larger data URIs in our system. It used to be 1MB I think. |
From #74926 Issue Type: Bug This relates to #69334, which was resolved but recurs in this specific situation. See also vscode-kubernetes-tools/vscode-kubernetes-tools#558 which is how it came to me. Steps to reproduce:
(I have provided an extension which reproduces the problem at https://github.com/itowlson/git-deleted-image-hang-o-matic.)
VS Code freezes up as described in #69334. VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:17:12.481Z) |
@bpasero Any plans when the fix is getting shipped? I'm running into that issue on a daily basis and it's kinda annoying having to wait for the dialog to come up, reload, and that stuff. |
@levrik in around 1 hour in our insiders build: You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
@bpasero I can confirm that this issue is fixed now! Thanks a lot! |
Issue Type: Bug
The whole editor freezes if I click on a deleted image in the changes view of VSC (Git).
(GIF)
This is really annoying if you click on it by accident and have to wait for one/two minutes till you can restart the editor.
VS Code version: Code 1.31.1 (1b8e830, 2019-02-12T02:16:38.656Z)
OS version: Darwin x64 18.2.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (12)
(1 theme extensions excluded)
With all extensions disabled it hangs for about 10 seconds, then the image loads.
With extensions enabled it hangs a one or two minutes before getting the prompt.
The text was updated successfully, but these errors were encountered: