bruno icon indicating copy to clipboard operation
bruno copied to clipboard

CPU goes to 100% and app is unresponsive on macOS when inactive

Open mwalkerr opened this issue 1 year ago • 2 comments

I have checked the following:

  • [X] I use the newest version of bruno.
  • [X] I've searched existing issues and found nothing related to my issue.

Describe the bug

I'm on macOS and tried using the latest Bruno which is 1.25.0. I also tried 1.24.0 and experienced the same following issue. I'm now using 1.19.0 and not experiencing it (haven't tried 1.20.0 through 1.23.0 though).

The app worked fine for my requests but once I switched to other applications I noticed my fans were spinning up. Checking the activity monitor I saw that Bruno's CPU usage went to 100% and I was unable to open the app again so I had to force quit. That seems indicative of some kind of infinite loop. I also saw that Bruno was requesting access to various directories one at a time. Eg. to Downloads then a minute later to Desktop. Not sure if related to the issue or expected behavior but it was annoying to keep being prompted to grant access without a way to grant all needed access or deny all access at once.

This happened consistently on the affected versions. After a minute or two of being idle this would happen. I'm not sure if it would also happen with continuous usage of the app or if it's specifically once the app is no longer in the foreground when it happens

Possibly related:

  • this is on a work laptop with security software installed that monitors file system interactions. This causes file operations that are typically very fast to be significantly slower, so if there's an expectation that some simple file operations happen at some speed then that assumption may be broken on my machine.
  • The request I made returned an image
  • I had two collections loaded from Postman. Neither as particularly large. About a couple dozen requests between the two
image

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image

mwalkerr avatar Aug 16 '24 18:08 mwalkerr

Thank you for reporting the issue, @mwalkerr!

We recently updated 'electron' from v21 to v31. This change was implemented in v1.22.0 (ref: https://github.com/usebruno/bruno/releases/tag/v1.22.0 and https://github.com/usebruno/bruno/commit/9892f7cd40d695a64e6b4935b550cef91e7b6673).

Could you please check by installing v1.21.0 to see if the issue continues? We're trying to pinpoint the exact version where the performance issue started occurring.

helloanoop avatar Aug 19 '24 13:08 helloanoop

I'm currently on v1.26.1 on a M2 Pro and also experience this issue. My Bruno app just freezes completely randomly with 100% CPU after some minutes. I tried to reinstall but that didn't help.

Edit: Same with v1.21.0

kimdre avatar Aug 23 '24 08:08 kimdre

Hey, I'm also experiencing this issue. The exact same behaviour as kimdre above. It's a pity because I can't directly use it - and I was willing to migrate from Postman.

I tried and got the same behaviour with:

  • 1.29.0 (both portable and non portable)
  • 1.20.4 (both portable and non portable)

Thank you.

guillermo-arce avatar Sep 18 '24 11:09 guillermo-arce

Hey again! FYI I have started using 1.19.0 - as the reporter shared - and I haven't experienced any issue yet, it is working fine.

guillermo-arce avatar Sep 19 '24 08:09 guillermo-arce

I have had the same issue since upgrading from 1.23.1 to 1.28.0 and each release since

jbreckmckye avatar Sep 19 '24 09:09 jbreckmckye

I'm also seeing this on macos and bruno version 1.28 and 1.30.1. The process going to 100% and making the app stuck is "Buno Helper (Renderer)" For me I can reproduce this every time I go to edit my environments, that have variables marked as secret, which have long values, such as a jwt token.

I think this might be linked to this PR and this issue

twaananen avatar Sep 24 '24 09:09 twaananen

Adding to others, this same issue happens for me on Win11 from version 1.20 to latest. I've decremented down to 1.19 before it worked again. Which is strange as I'm fairly certain it used to work in the previous weeks. I don't need to do anything either, just having Bruno open with no collections opened will eventually freeze, and I can see CPU usage jumping from ~0% to ~40% for no reason.

sgadboisuv avatar Nov 11 '24 18:11 sgadboisuv

I have this issue now on my Mac for 1.40.0. CPU over 100% and crashes Bruno

JonathanBuchan-VeryGood avatar Mar 24 '25 16:03 JonathanBuchan-VeryGood

I have this issue now on my Mac for 1.40.0. CPU over 100% and crashes Bruno

May I know which version did you upgrade from? Were you having issues for older versions too?

anusree-bruno avatar Mar 25 '25 12:03 anusree-bruno