[COMPASS-5025] Random embedded mongosh freezes inside Compass on Ubuntu 20.04 Created: 20/Aug/21  Updated: 28/Jun/23  Resolved: 17/May/23

Status: Closed
Project: Compass
Component/s: Embedded Shell
Affects Version/s: 1.28.1
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Paul Done Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Using embedded shell in Compass on Ubuntu 20.04 and it randomly freezes. 

Steps to Reproduce

Can't provide a consistent reproducer pattern yet but it has "randomly" happened 5 times during just 30 mins of usage. This seems to be when I toggle to another GNOME window for a bit to do something else and then toggle back, but can't always reproduce. 

Actually, it occurs more often when in GNOME desktop I am typing in COmpass embedded shell window and then I hit "alt-tab" to move to different GNOME window and then hit "alt-tab" to come back to shell (doesn't happen all the time but quite often. Could this be compass/shell also trying to intercept "alt-tab" which is then throwing it?

Expected Results

No freezing in embedded mongosh

Actual Results

Freezing in embedded mongosh

Additional Notes

Compass 1.28.1

Mongosh 1.0.0

Ubuntu 20.04.3 LTS

> uname -a
Linux pd-x1 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux



 Comments   
Comment by Jessica Sigafoos [ 06/Sep/22 ]

Hi paul.done@mongodb.com, following up on this. The shell inside Compass can struggle to render the content when there is a lot of text, as the syntax highlighting introduces many HTML tags. Does it happen more often if you run a query that returns a lot of results or if you run many commands vs if you just have one or two rows there?

Comment by Maurizio Casimirri [ 10/Jun/22 ]

Not sure if can be also an issue with hot-keys, but the shell inside compass has a good struggle to render the content when there is a lot of text, the syntax highlighting introduces many html tags. Does it happen more often if you run a query that returns a lot of results or if you run many commands vs if you just have one or two rows there?

Generated at Wed Feb 07 22:38:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.