Crashes when closing the window
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
Open a bruno window (this is on MacOS 14.5). Click the red close button in the top left. You get an alert "Bruno quit unexpectedly", and the option to Reopen, Report, or Ignore
.bru file to reproduce the bug
N/A
Screenshots/Live demo link
hello, just following up :) Are issues in this repository still actively being worked on?
hello, just following up :) Are issues in this repository still actively being worked on?
Yes, but mostly from other contributors.
To your issue: I think Bruno might not handle the exit for MacOS correctly. An Electron App should normally listen to the activate event and never fully quit: https://www.electronjs.org/docs/latest/tutorial/quick-start#open-a-window-if-none-are-open-macos
thank you for the info! I would like to look into this further and potentially create a PR, since I've been using this software quite regularly lately
After upgrading to v1.34.1, I now have the same problem. Bruno crashes on clicking the close button and on quitting with command-q.
macOS 15.1
Error report excerpt:
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Bruno [13311]
Application Specific Information:
abort() called
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x19d6ea600 __pthread_kill + 8
1 libsystem_pthread.dylib 0x19d722f70 pthread_kill + 288
2 libsystem_c.dylib 0x19d62f908 abort + 128
3 Electron Framework 0x10baec510 uv_mutex_lock + 28
4 Electron Framework 0x112819ac4 napi_release_threadsafe_function + 32
5 fsevents.node 0x10b804be8 fse_instance_destroy + 120
6 Electron Framework 0x11281b384 node_api_get_module_file_name + 6080
7 Electron Framework 0x1128171c0 node::AsyncResource::CallbackScope::CallbackScope(node::AsyncResource*) + 1364
8 Electron Framework 0x11280cc2c node::Stop(node::Environment*, node::StopFlags::Flags) + 6440
Thanks @SergiyKolesnikov - we've been able to reproduce this and are currently investigating a fix.
I'm having the same problem as @SergiyKolesnikov
+1
+1 🦮
We upgraded to Node22 and we are not seeing the crash anymore.
Watchout for the v1.35.0 release that is expected to go out tomorrow.
Version 1.35.0 installed, crash is still there (MacOS Sequoia 15.1.1)
I've updated to v1.35.0, but it still crashes on exit.
Process: Bruno [2071]
Path: /Applications/Bruno.app/Contents/MacOS/Bruno
Identifier: com.usebruno.app
Version: 1.35.0 (1.35.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2024-11-22 03:14:26.3197 +0100
OS Version: macOS 15.1.1 (24B91)
Report Version: 12
Time Awake Since Boot: 2100 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Bruno [2071]
Application Specific Information:
abort() called
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x19707e600 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1970b6f70 pthread_kill + 288
2 libsystem_c.dylib 0x196fc3908 abort + 128
3 Electron Framework 0x10db2c510 uv_mutex_lock + 28
4 Electron Framework 0x114859ac4 napi_release_threadsafe_function + 32
5 fsevents.node 0x104fe8be8 fse_instance_destroy + 120
6 Electron Framework 0x11485b384 node_api_get_module_file_name + 6080
7 Electron Framework 0x1148571c0 node::AsyncResource::CallbackScope::CallbackScope(node::AsyncResource*) + 1364
8 Electron Framework 0x11484cc2c node::Stop(node::Environment*, node::StopFlags::Flags) + 6440
Hi, the upgrade to node 22 doesn’t seem to have fixed this issue. We are still seeing inconsistent behavior of the crash and our team is looking into it. Thanks!
Same issue here. I noticed the app still indicates node 20. Maybe this can help to identify the issue.
Looks like I have the same (or a rather similar) issue, since I get crashes when closing bruno.
Info about the app & my system:
System:
- OS: macOS Sequoia 15.1.1 arm64
- Host: MacBook Pro (14-inch, 2024)
- CPU: Apple M4 Max (16) @ 4.51 GHz
Issue still present in 1.36.0 (it still reports node 20.15.0)
Issue still present in 1.36.0 (it still reports node 20.15.0)
It was announced to be included in this release on discord but not part of the release notes. Even 1.36.1 is not fixing it. I don't get why this is not a priority.
Update: We recently updated our build system to Node 22, which resolved the crash issue on some Mac systems. However, the problem persists on others.
After further investigation, we identified the root cause as a version upgrade in Next.js, which was implemented to address dependabot alerts.
We are in the process of replacing Next.js with Vite for our build system. We'll share a beta build by mid-next week.
thank you for the update @helloanoop
However, from the "about Bruno" menu item I still see node 20.x
we have an experimental build that might fix the crash issue. we would appreciate it if you all could test the build and share your feedback.
mac builds: https://github.com/usebruno/bruno-experimental-builds/releases/tag/mac-crash-issue-2440
Still getting the same issue on v1.36.1. I can attach the MacOS error dump if that helps (I didn't post it here in this comment as it's quite large)