monokle icon indicating copy to clipboard operation
monokle copied to clipboard

Monokle freezes when opening specific folders

Open chargio opened this issue 2 years ago • 2 comments

Describe the bug Monokle freezes when trying to open the git clone for helm (helm/helm)

To Reproduce Steps to reproduce the behavior:

  1. Clone helm helm into a local folder
  2. Open Monokle
  3. Point it to the local folder with helm
  4. See it freeze

Expected behavior It should open the folder without any problem

Screenshots image image

Desktop (please complete the following information):

  • OS: Mac OS Monterey 12.5.1 (M1 Max) Monokle 1.10.1

Additional context Open Developer tools is not working, the console gets frozen too.

chargio avatar Aug 22 '22 15:08 chargio

See #2263 - Monokle doesn't lock up - but it still takes a while to render due to rendering performance issues when there are 123 (!) Helm Charts.. waiting for @devcatalin

olensmar avatar Aug 23 '22 09:08 olensmar

perhaps https://github.com/kubeshop/monokle/issues/1719 is related?

olensmar avatar Aug 23 '22 10:08 olensmar

this specific case seems to work ok now - closing..

olensmar avatar Apr 04 '23 12:04 olensmar

This seems to still happen. Opening my infrastructure repo (https://github.com/starcraft66/infrastructure/) causes the app to freeze. I let it run for like 20 minutes and the UI eventually unblocked but it still didn't show anything more than what's visible in the issue's screenshot.

starcraft66 avatar May 11 '23 19:05 starcraft66

I think that what is happening is that it is scanning my .direnv folder which contains symlinks to huge checkouts of nixpkgs and other repositories that are just meaningless noise. Is there a way to make it ignore folders? It finally loaded after a long time and it says it processed 34000 files in my repo when there are only few hundred relevant yaml files.

starcraft66 avatar May 11 '23 20:05 starcraft66

thanks for getting back to us @starcraft66 - yes, there is a setting for this under the global settings (as shown below) and then under project settings where they can be overridden... perhaps we should add .direnv to the default list of excludes?

image

olensmar avatar May 12 '23 06:05 olensmar

another thought could be to use any found .gitignore files to further ignore - would that have helped in your case!?

olensmar avatar May 12 '23 06:05 olensmar

I attempted to add .direnv and /.direnv to the list of excluded files after writing my post, but the app still seems to try to process that regardless when I re-open it. The only fix to make things snappy was to temporarily delete the .direnv folder.

starcraft66 avatar May 12 '23 07:05 starcraft66

Ok - thanks for giving that a try and getting back to us - will have to try to reproduce and get back to you asap

olensmar avatar May 12 '23 07:05 olensmar

sorry for the delay - bug confirmed - https://github.com/kubeshop/monokle/issues/3943

olensmar avatar May 15 '23 06:05 olensmar