bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Crashes when closing the window

Open JLCarveth opened this issue 2 years ago • 42 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

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

Screenshot 2024-06-11 at 10 39 23 AM

JLCarveth avatar Jun 11 '24 14:06 JLCarveth

hello, just following up :) Are issues in this repository still actively being worked on?

JLCarveth avatar Jul 04 '24 19:07 JLCarveth

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

Its-treason avatar Jul 04 '24 20:07 Its-treason

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

JLCarveth avatar Jul 05 '24 02:07 JLCarveth

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

SergiyKolesnikov avatar Nov 01 '24 22:11 SergiyKolesnikov

Thanks @SergiyKolesnikov - we've been able to reproduce this and are currently investigating a fix.

rreyn-bruno avatar Nov 06 '24 15:11 rreyn-bruno

I'm having the same problem as @SergiyKolesnikov

angelprzz avatar Nov 08 '24 23:11 angelprzz

+1

x-dragos avatar Nov 17 '24 11:11 x-dragos

+1 🦮

jakubwojcik avatar Nov 19 '24 10:11 jakubwojcik

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.

helloanoop avatar Nov 20 '24 12:11 helloanoop

Version 1.35.0 installed, crash is still there (MacOS Sequoia 15.1.1)

ljuillerat avatar Nov 21 '24 21:11 ljuillerat

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

SergiyKolesnikov avatar Nov 22 '24 02:11 SergiyKolesnikov

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!

sreelakshmi-bruno avatar Nov 25 '24 09:11 sreelakshmi-bruno

Same issue here. I noticed the app still indicates node 20. Maybe this can help to identify the issue. image

PieterIddink avatar Nov 27 '24 12:11 PieterIddink

Looks like I have the same (or a rather similar) issue, since I get crashes when closing bruno.

Info about the app & my system:

Screenshot 2024-12-03 at 17 43 30

System:

  • OS: macOS Sequoia 15.1.1 arm64
  • Host: MacBook Pro (14-inch, 2024)
  • CPU: Apple M4 Max (16) @ 4.51 GHz

s2k avatar Dec 03 '24 16:12 s2k

Issue still present in 1.36.0 (it still reports node 20.15.0)

slackerzz avatar Dec 05 '24 15:12 slackerzz

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.

ljuillerat avatar Dec 06 '24 13:12 ljuillerat

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.

helloanoop avatar Dec 06 '24 16:12 helloanoop

thank you for the update @helloanoop

However, from the "about Bruno" menu item I still see node 20.x immagine

slackerzz avatar Dec 06 '24 16:12 slackerzz

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

lohxt1 avatar Dec 10 '24 19:12 lohxt1

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)

JLCarveth avatar Dec 10 '24 19:12 JLCarveth