NatLabRockies / NatLabRockies/SAM

Stacked area on left Y axis crashes on MacOS

Open
#1,888 0 comments 0 reactions 1 assignee View on GitHub

@sjanzou is already working on this.

Since Oct 24, 2024.

bug
Dominant language
C++
Stars
486
Forks
219
Avg merge
10h 10m
Merged PRs (30d)
2

Description

With 2023.12.17 release on MacOS 14.6.1 using project file
Agroenergetica.sam.zip

image

Click OK and hard crash with details

Process: SAM [8784]
Path: /Applications/SAM_2023.12.17/SAM.app/Contents/MacOS/SAM
Identifier: gov.nrel.
Version: 1.0.0 (1.0.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 503

Date/Time: 2024-10-24 04:19:04.7642 -0600
OS Version: macOS 14.6.1 (23G93)
Report Version: 12
Anonymous UUID: F93F5272-C7BA-3D2F-8FE2-67CB8D48F14F

Time Awake Since Boot: 1200 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000005a0
Exception Codes: 0x0000000000000001, 0x00000000000005a0

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [8784]

VM Region Info: 0x5a0 is not in any region. Bytes before following region: 4339890784
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102ad8000-103a98000 [ 15.8M] r-x/r-x SM=COW /Applications/SAM_2023.12.17/SAM.app/Contents/MacOS/SAM

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 SAM 0x102e816dc wxNumericCtrl::Value() const + 0
1 SAM 0x102dfec84 wxDVTimeSeriesCtrl::OnSettings(wxCommandEvent&) + 2388
2 SAM 0x1033f8b74 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 272
3 SAM 0x1033f99d0 wxEvtHandler::ProcessEventLocally(wxEvent&) + 120
4 SAM 0x1033f9830 wxEvtHandler::ProcessEvent(wxEvent&) + 56
5 SAM 0x10329d64c wxWindowBase::TryAfter(wxEvent&) + 128
6 SAM 0x1033f9d5c wxEvtHandler::SafelyProcessEvent(wxEvent&) + 24
7 SAM 0x103161108 wxButton::OSXHandleClicked(double) + 116
8 AppKit 0x187a30ffc -[NSApplication(NSResponder) sendAction:to:from:] + 460
9 AppKit 0x187a30e00 -[NSControl sendAction:to:] + 72
10 AppKit 0x187a30d44 __26-[NSCell _sendActionFrom:]_block_invoke + 100
11 AppKit 0x187a30c6c -[NSCell _sendActionFrom:] + 204
12 AppKit 0x187a30b90 -[NSButtonCell _sendActionFrom:] + 88
13 AppKit 0x187a2e17c NSControlTrackMouse + 1480
14 AppKit 0x187a2db88 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 144
15 AppKit 0x187a2da40 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 488
16 AppKit 0x187a2cf14 -[NSControl mouseDown:] + 448
17 SAM 0x1031cfa4c wxWidgetCocoaImpl::mouseEvent(NSEvent*, NSView*, void*) + 252
18 AppKit 0x187a2bce0 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3472
19 AppKit 0x1879b7504 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 288
20 AppKit 0x1879b7210 -[NSWindow(NSEventRouting) sendEvent:] + 284
21 SAM 0x1031c04a4 -[wxNSWindow sendEvent:] + 116
22 AppKit 0x1880804f0 -[NSApplication(NSEventRouting) sendEvent:] + 1604
23 SAM 0x103142e78 -[wxNSApplication sendEvent:] + 84
24 AppKit 0x187ccdd9c -[NSApplication _handleEvent:] + 60
25 AppKit 0x18787e020 -[NSApplication run] + 512
26 SAM 0x1031b84d0 wxGUIEventLoop::OSXDoRun() + 140
27 SAM 0x1033e6968 wxCFEventLoop::DoRun() + 40
28 SAM 0x1033677c8 wxEventLoopBase::Run() + 120
29 SAM 0x103345ad0 wxAppConsoleBase::MainLoop() + 120
30 SAM 0x10317ca24 wxApp::OnRun() + 36
31 SAM 0x10338c444 wxEntry(int&, wchar_t**) + 104
32 SAM 0x102cd461c main + 24
33 dyld 0x183bc3154 start + 2476

Thread 1:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x183f0cdf4 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183f1f5e4 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x183f159c4 mach_msg_overwrite + 476
3 libsystem_kernel.dylib 0x183f0d178 mach_msg + 24
4 CoreFoundation 0x18402d680 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x18402bf44 __CFRunLoopRun + 1208
6 CoreFoundation 0x18402b434 CFRunLoopRunSpecific + 608
7 AppKit 0x1879b5280 _NSEventThread + 144
8 libsystem_pthread.dylib 0x183f4df94 _pthread_start + 136
9 libsystem_pthread.dylib 0x183f48d34 thread_start + 8

Thread 2:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x183f17ee8 __select + 8
1 CoreFoundation 0x184056934 __CFSocketManager + 640
2 libsystem_pthread.dylib 0x183f4df94 _pthread_start + 136
3 libsystem_pthread.dylib 0x183f48d34 thread_start + 8

Thread 3:: Dispatch queue: com.apple.root.user-interactive-qos
0 libobjc.A.dylib 0x183b7f4f8 lookupMethodInClassAndLoadCache + 76
1 libobjc.A.dylib 0x183b76b9c objc_destructInstance + 80
2 libobjc.A.dylib 0x183b76b3c _objc_rootDealloc + 80
3 QuartzCore 0x18c43b020 -[CAFenceHandle dealloc] + 76
4 QuartzCore 0x18c221938 CA::Transaction::commit() + 844
5 AppKit 0x1878cd908 NSPerformVisuallyAtomicChange + 120
6 AppKit 0x187cc77c8 -[NSAnimation _advanceTimeWithDisplayLink:] + 204
7 AppKit 0x1879ff7dc -[NSScreenDisplayLink _fire] + 156
8 AppKit 0x188429708 ___NSRunLoopTimerCreateWithHandler_block_invoke + 56
9 CoreFoundation 0x1840495b8 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32
10 CoreFoundation 0x18404925c __CFRunLoopDoTimer + 972
11 CoreFoundation 0x184048d94 __CFRunLoopDoTimers + 356
12 CoreFoundation 0x18402c1cc __CFRunLoopRun + 1856
13 CoreFoundation 0x18402b434 CFRunLoopRunSpecific + 608
14 Foundation 0x18515f868 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
15 AppKit 0x187cc7354 -[NSAnimation _runBlocking] + 324
16 libdispatch.dylib 0x183d9b750 _dispatch_call_block_and_release + 32
17 libdispatch.dylib 0x183d9d3e8 _dispatch_client_callout + 20
18 libdispatch.dylib 0x183daf080 _dispatch_root_queue_drain + 864
19 libdispatch.dylib 0x183daf6b8 _dispatch_worker_thread2 + 156
20 libsystem_pthread.dylib 0x183f49fd0 _pthread_wqthread + 228
21 libsystem_pthread.dylib 0x183f48d28 start_wqthread + 8

Thread 4:
0 libsystem_pthread.dylib 0x183f48d20 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x183f48d20 start_wqthread + 0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.