usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.26k stars 1.2k forks source link

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

Open mwalkerr opened 2 months ago

mwalkerr commented 2 months ago

I have checked the following:

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:

image

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image
helloanoop commented 2 months ago

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.

kimdre commented 2 months ago

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

guillermo-arce commented 1 month ago

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:

Thank you.

guillermo-arce commented 1 month ago

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.

jbreckmckye commented 1 month ago

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

twaananen commented 4 weeks ago

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