-
Notifications
You must be signed in to change notification settings - Fork 932
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
Query Window "Hang" #3627
Comments
After this happen, if I closed the query window and open a new one, a "progress bar" will show on top of the "Search server names" box in Server window. So it looks like there is something running in the background that cause the query window to become unresponsive. |
@zengshengliu it would be unexpected that the intellisense SQL queries would cause UI delays since they run async in a child process and the UI doesn't block rendering waiting for these tasks (it waits on callback notifications). I'll try to repro the issue. |
@kburtram Sorry I might have stated it wrong. The UI itself is fine, but no query will execute when its in that state. Another issue (maybe) is that the query intellisense uses (one shown on the screenshot), it doesn't get kill when we exit Asure Data Studio. I usually notice a few blocked queries from the activity monitor even after I close (quit) the tool. Exploring the running process does shows that its still running in background. |
related: |
The query editor still hangs on executing some queries. This is terrible. |
Confirmed that this is still a think with the March 2021 release. |
it started to happen regularly again since a few days. |
I just recently started using Azure Data Studio, I'm on version 1.32.0 and can confirm that this is still an issue. I am working from home and have to connect to a VPN to access the servers that house our DBs. I have no connection issues with the VPN. However; Azure Data Studio will stop responding for no reason. Even if I don't leave it idle for any amount of time. I can be working in it for 20 - 30 minutes (sometimes longer / sometimes shorter) and the next query I try to execute will just hang. Clicking Cancel does nothing, and the counter showing how long it takes to execute the query remains 0 |
After some investigation on my DBs, it turned out that while I am waiting the query to be executed, ADS execute tons of technical queries on my DB and that seems to be the reason. |
@GrzegorzLyp, when it hangs, try closing the script file and reopening from disk in a new tab then execute again. Do you get the results from the first execution in the results pane of the second? If so, related: #5627 |
I just had this happen to me. |
reconnect and execute again in new the tab. look closely at results. are the results from both executions displayed in the results pane of the second execution? |
No, once I close the frozen tab, I have to reconnect to the DB, the only results I see in the results pane are from the query I just executed. |
thanks for trying. the only way I've been able to repro #5627 is to immediately reopen the file from disk in a new tab, reconnect and execute -immediately after the hang. Would love some more folks to repro and attention paid to this issue. |
In this situation none of the tabs work. |
correct. did you try closing the tabs and immediately reopen the file from disk in a new tab, reconnect and execute -immediately after the hang? |
And the last killer query is below. It takes minutes to execute exec sp_executesql N'SELECT |
@shueybubbles Looks like stuff coming from SMO causing slowdowns here. Have you seen anything like this? @GrzegorzLyp If you run the query locally (you'll need to fiddle around with the params) do you see the same slowness? |
@Charles-Gagnon the queries can be slow for lots of reasons. The UI shouldn't be blocking on completions at all. |
Closing as a duplicate of #7440. Using that as the primary issue for this since it has more recent comments and activity. |
Issue Type: Bug
Sometimes the query windows will just "hang" there. Clicking on "Run" does nothing, and there is no error or warning. It just wouldn't execute the query.
Azure Data Studio version: Azure Data Studio 1.2.4 (1ebfd02, 2018-11-02T21:36:55.143Z)
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
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (5)
The text was updated successfully, but these errors were encountered: