-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of memory crash #617
Comments
What macOS version and how much RAM is allocated to the Mac? |
Apple M3 Max
Mac OS Version 14.3 (23D56)
48 GB
Typically it is not even using swap space.
Steve
… On Feb 6, 2024, at 5:50 PM, Zach Shames ***@***.***> wrote:
What macOS version and how much RAM is allocated to the Mac?
—
Reply to this email directly, view it on GitHub <#617 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFRYJO7JOFXH4FABU2TTLCTYSLMURAVCNFSM6AAAAABCXUUMLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGEYDKNZTGM>.
You are receiving this because you authored the thread.
|
Oh wow, you got plenty of memory, haha. I'm wondering if this is an issue regarding Rosetta and the compatibility layer for Apple Silicon. Is this something that's easily reproducible? Or was it kind of a one-off? How often are you hitting this? I'm fairly certain I can make an apple silicon build... so that could be an option if it's a serious issue |
This was the first time the crash occurred. I don’t recall anything in particular that might have triggered this.
… On Feb 6, 2024, at 7:33 PM, Zach Shames ***@***.***> wrote:
Apple M3 Max Mac OS Version 14.3 (23D56) 48 GB Typically it is not even using swap space. Steve
… <x-msg://3/#>
On Feb 6, 2024, at 5:50 PM, Zach Shames @.***> wrote: What macOS version and how much RAM is allocated to the Mac? — Reply to this email directly, view it on GitHub <#617 (comment) <#617 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRYJO7JOFXH4FABU2TTLCTYSLMURAVCNFSM6AAAAABCXUUMLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGEYDKNZTGM. You are receiving this because you authored the thread.
Oh wow, you got plenty of memory, haha. I'm wondering if this is an issue regarding Rosetta and the compatibility layer for Apple Silicon.
Is this something that's easily reproducible? Or was it kind of a one-off? How often are you hitting this?
I'm fairly certain I can make an apple silicon build... so that could be an option if it's a serious issue
—
Reply to this email directly, view it on GitHub <#617 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFRYJOYXBMMUFKOY54T2PHTYSLYYTAVCNFSM6AAAAABCXUUMLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGIYTKNJVGA>.
You are receiving this because you authored the thread.
|
ok, keep an eye out. Hopefully it was a one-off. But if not, let me know and we can look further into it. Haven't had a memory leak since v1.4.x... Could also be Electron-related 🤷 |
@slewallen I think I may have fixed the issue. If you don't mind, install this build: It should be the exact same as v1.9.5 but with a potential fix for the OutOfMemory error you were experiencing. Let me know after a few days or a week if you've had any issues |
Here is another crash from an Intel Translated Report (Full Report Below)Process: BlueBubbles [31402] Date/Time: 2024-02-21 03:11:25.3041 -0600 Time Awake Since Boot: 460000 seconds System Integrity Protection: disabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 VM Region Info: 0 is not in any region. Bytes before following region: 4333727744 Kernel Triage: Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread Thread 1:: ThreadPoolServiceThread Thread 2:: ThreadPoolForegroundWorker Thread 3:: Chrome_IOThread Thread 4:: MemoryInfra Thread 5: Thread 6: Thread 7: Thread 8: Thread 9: Thread 10: Thread 11: Thread 12: Thread 13: Thread 14:: NetworkConfigWatcher Thread 15:: CrShutdownDetector Thread 16:: NetworkConfigWatcher Thread 17:: Chrome_InProcGpuThread Thread 18:: Chrome_ChildIOThread Thread 19:: CompositorTileWorker1 Thread 20: Thread 21:: VizCompositorThread Thread 22:: com.apple.NSEventThread Thread 23:: ThreadPoolBackgroundWorker Thread 24:: ThreadPoolSingleThreadForegroundBlocking0 Thread 25:: NetworkConfigWatcher Thread 26:: ThreadPoolSingleThreadSharedForeground1 Thread 27:: CacheThread_BlockFile Thread 28:: ThreadPoolSingleThreadSharedBackgroundBlocking2 Thread 29:: NetworkConfigWatcher Thread 30: Thread 0 crashed with X86 Thread State (64-bit): Logical CPU: 3 Thread 0 instruction stream: Binary Images: External Modification Summary: VM Region Summary:
REGION TYPE SIZE COUNT (non-coalesced) Full Report{"app_name":"BlueBubbles","timestamp":"2024-02-21 03:11:26.00 -0600","app_version":"1.9.5","slice_uuid":"4c4c445f-5555-3144-a195-06ccb9d7a2e5","build_version":"1.9.5","platform":1,"bundleID":"com.BlueBubbles.BlueBubbles-Server","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.3.1 (23D60)","roots_installed":0,"name":"BlueBubbles","incident_id":"D4138B38-EADF-4BBF-9965-32F2C35D921E"}
], ] Model: Macmini8,1, BootROM 2020.80.5.0.1 (iBridge: 21.16.3049.0.0,0), 6 processors, 6-Core Intel Core i5, 3 GHz, 16 GB, SMC |
Lovely |
I face frequent OOM crashes on my intel machine, it does have only 4GB RAM though and nothing else is running except the server. Problem persists across reboots.
|
Had another BB Server crash with 1.9.6: Translated Report (Full Report Below)Process: BlueBubbles [43754] Date/Time: 2024-03-21 01:28:48.3273 -0500 Time Awake Since Boot: 1100000 seconds System Integrity Protection: disabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 VM Region Info: 0 is not in any region. Bytes before following region: 4324597760 Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread Thread 1:: ThreadPoolServiceThread Thread 2:: ThreadPoolBackgroundWorker Thread 3:: Chrome_IOThread Thread 4:: MemoryInfra Thread 5: Thread 6: Thread 7: Thread 8: Thread 9: Thread 10: Thread 11: Thread 12: Thread 13: Thread 14:: NetworkConfigWatcher Thread 15:: CrShutdownDetector Thread 16:: NetworkConfigWatcher Thread 17:: Chrome_InProcGpuThread Thread 18:: Chrome_ChildIOThread Thread 19:: CompositorTileWorker1 Thread 20: Thread 21:: VizCompositorThread Thread 22:: com.apple.NSEventThread Thread 23:: ThreadPoolSingleThreadForegroundBlocking0 Thread 24:: NetworkConfigWatcher Thread 25:: ThreadPoolSingleThreadSharedForeground1 Thread 26:: CacheThread_BlockFile Thread 27:: ThreadPoolSingleThreadSharedBackgroundBlocking2 Thread 28:: NetworkConfigWatcher Thread 29:: ThreadPoolForegroundWorker Thread 30: Thread 0 crashed with X86 Thread State (64-bit): Logical CPU: 4 Thread 0 instruction stream: Binary Images: External Modification Summary: Full Report{"app_name":"BlueBubbles","timestamp":"2024-03-21 01:29:01.00 -0500","app_version":"1.9.6","slice_uuid":"4c4c445f-5555-3144-a195-06ccb9d7a2e5","build_version":"1.9.6","platform":1,"bundleID":"com.BlueBubbles.BlueBubbles-Server","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.4 (23E214)","roots_installed":0,"name":"BlueBubbles","incident_id":"94C457B9-9BFC-4D45-95A3-9D77DF6F66D9"}
], Model: Macmini8,1, BootROM 2022.100.22.0.0 (iBridge: 21.16.4222.0.0,0), 6 processors, 6-Core Intel Core i5, 3 GHz, 16 GB, SMC |
For what it's worth, I recently found another place where there could have been a memory leak. And it was compounded when receiving tons of messages. As far as message volume goes, do you receive a lot? |
Overall I'm at 13.3k messages in the past 6 months with a daily average at 127. I'd be happy to test anything out if you need! |
Ehhh, that's not a crazy amount and shouldnt have caused the crash. I'm wondering if my latest efficiency changes will mitigate this issue further. |
Here is another from 1.9.7 with a very new server and a daily average messages of 38. It appears to be the same issue. |
Process: BlueBubbles [876]
Path: /Applications/BlueBubbles.app/Contents/MacOS/BlueBubbles
Identifier: com.BlueBubbles.BlueBubbles-Server
Version: 1.9.4 (1.9.4)
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-02-02 19:29:56.2130 -0800
OS Version: macOS 14.3 (23D56)
Report Version: 12
Anonymous UUID: 5A5EDCF8-37C4-164A-B79A-1AF3AAC52C37
Sleep/Wake UUID: E82D99F2-522D-4A75-B234-147ED814AE1A
Time Awake Since Boot: 270000 seconds
Time Since Wake: 65 seconds
System Integrity Protection: enabled
Notes:
PC register does not match crashing frame (0x0 vs 0x113F4FDEA)
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [876]
VM Region Info: 0 is not in any region. Bytes before following region: 4343091200
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102de5000-102de7000 [ 8K] r-x/r-x SM=COW ...S/BlueBubbles
Error Formulating Crash Report:
PC register does not match crashing frame (0x0 vs 0x113F4FDEA)
Kernel Triage:
VM - (arg = 0x0) Fault was interrupted
VM - (arg = 0x0) Fault was interrupted
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 Electron Framework 0x113f4fdea v8::CodeEvent::GetScriptName() + 195466
1 Electron Framework 0x114dc65e3 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 739
2 Electron Framework 0x114dc653f v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 575
3 Electron Framework 0x114f908d5 v8::internal::Heap::StartIncrementalMarking(int, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) + 1045
4 Electron Framework 0x114fdfdb0 v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 57568
5 Electron Framework 0x114fdf3d2 v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 55042
6 Electron Framework 0x114fdeffb v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 54059
7 Electron Framework 0x114fff6b1 v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 186849
8 Electron Framework 0x11a52ef46 node::CommonEnvironmentSetup::context() const + 151302
9 Electron Framework 0x11a52f313 node::CommonEnvironmentSetup::context() const + 152275
10 Electron Framework 0x114fe26ee v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 68126
11 Electron Framework 0x114fe1cee v8::internal::MarkCompactCollector::EnsureSweepingCompleted() + 65566
12 Electron Framework 0x114fd0f9f v8::internal::LocalHeap::InvokeGCEpilogueCallbacksInSafepoint() + 90479
13 Electron Framework 0x114fce8b0 v8::internal::LocalHeap::InvokeGCEpilogueCallbacksInSafepoint() + 80512
14 Electron Framework 0x114fa4d06 v8::internal::Heap::AllocatedExternalMemorySinceMarkCompact() + 42198
15 Electron Framework 0x114f66789 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) + 137
16 Electron Framework 0x1153ff3e3 v8::internal::Runtime::GetInternalProperties(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object) + 86691
17 ??? 0x7407f0a938 ???
18 ??? 0x74003d5636 ???
19 ??? 0x74003d957d ???
20 ??? 0x7400420f56 ???
21 ??? 0x74003d86d9 ???
22 ??? 0x7407f5c6f8 ???
23 ??? 0x7407eb3f1e ???
24 ??? 0x7407e8a7c7 ???
25 Electron Framework 0x114f05cf4 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) + 6260
26 Electron Framework 0x114f06633 v8::internal::Execution::TryCallScript(v8::internal::Isolate, v8::internal::Handlev8::internal::JSFunction, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::FixedArray, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandlev8::internal::Object, bool) + 355
27 Electron Framework 0x114f067a0 v8::internal::Execution::TryCall(v8::internal::Isolate, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandlev8::internal::Object, bool) + 224
28 Electron Framework 0x114f2f84c v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) + 460
29 Electron Framework 0x11a41f8b8 node::CallbackScope::~CallbackScope() + 1256
30 Electron Framework 0x11a41f42e node::CallbackScope::~CallbackScope() + 94
31 Electron Framework 0x11a458a3d node::EmitAsyncDestroy(node::Environment*, node::async_context) + 215789
32 Electron Framework 0x113de89bd uv_timer_get_due_in + 205
33 Electron Framework 0x113debf4e uv_run + 158
34 Electron Framework 0x113f502b3 v8::CodeEvent::GetScriptName() + 196691
35 Electron Framework 0x116c2417e node::AsyncResource::get_async_id() const + 8502286
36 Electron Framework 0x116c41f79 node::AsyncResource::get_async_id() const + 8624649
37 Electron Framework 0x116c815c5 node::AsyncResource::get_async_id() const + 8884309
38 Electron Framework 0x116c80732 node::AsyncResource::get_async_id() const + 8880578
39 Electron Framework 0x116c80cff node::AsyncResource::get_async_id() const + 8882063
40 CoreFoundation 0x7ff80fcc7716 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
41 CoreFoundation 0x7ff80fcc76b9 __CFRunLoopDoSource0 + 157
42 CoreFoundation 0x7ff80fcc7488 __CFRunLoopDoSources0 + 215
43 CoreFoundation 0x7ff80fcc60f8 __CFRunLoopRun + 919
44 CoreFoundation 0x7ff80fcc5799 CFRunLoopRunSpecific + 557
45 HIToolbox 0x7ff81aa7d9d9 RunCurrentEventLoopInMode + 292
46 HIToolbox 0x7ff81aa7d7e6 ReceiveNextEventCommon + 665
47 HIToolbox 0x7ff81aa7d531 _BlockUntilNextEventMatchingListInModeWithFilter + 66
48 AppKit 0x7ff813237c39 _DPSNextEvent + 880
49 AppKit 0x7ff813b41804 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1304
50 AppKit 0x7ff8132291b2 -[NSApplication run] + 603
51 Electron Framework 0x116c81ed6 node::AsyncResource::get_async_id() const + 8886630
52 Electron Framework 0x116c807a2 node::AsyncResource::get_async_id() const + 8880690
53 Electron Framework 0x116c4290a node::AsyncResource::get_async_id() const + 8627098
54 Electron Framework 0x116c0c611 node::AsyncResource::get_async_id() const + 8405153
55 Electron Framework 0x115f133c4 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5186004
56 Electron Framework 0x115f14d02 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5192466
57 Electron Framework 0x115f10ad0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5175520
58 Electron Framework 0x1140ccca5 v8::internal::ExternalReference::fast_c_call_caller_pc_address(v8::internal::Isolate*) + 1957
59 Electron Framework 0x1140cde73 v8::internal::ExternalReference::fast_c_call_caller_pc_address(v8::internal::Isolate*) + 6515
60 Electron Framework 0x1140cd8f1 v8::internal::ExternalReference::fast_c_call_caller_pc_address(v8::internal::Isolate*) + 5105
61 Electron Framework 0x1140cbead v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 12173
62 Electron Framework 0x1140cc7e3 v8::internal::ExternalReference::fast_c_call_caller_pc_address(v8::internal::Isolate*) + 739
63 Electron Framework 0x113dfe548 ElectronMain + 152
64 dyld 0x2031a8386 start + 1942
Full crash report attached.
bbcrash.txt
The text was updated successfully, but these errors were encountered: