Skip to content
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

Digital Chaotic System crashes Rack 2.4.1 on Mac arm64 on add #7

Open
fractalgee opened this issue Dec 17, 2023 · 5 comments
Open

Digital Chaotic System crashes Rack 2.4.1 on Mac arm64 on add #7

fractalgee opened this issue Dec 17, 2023 · 5 comments

Comments

@fractalgee
Copy link

Trying to add the Digital Chaotic System module to a patch crashes Rack with the following stack:

Thread 9 Crashed::  Dispatch queue: com.Metal.CompletionQueueDispatch
0   libobjc.A.dylib               	       0x187c8d420 objc_msgSend + 32
1   Metal                         	       0x1921d7cc8 -[_MTLCommandQueue commandBufferDidComplete:startTime:completionTime:error:] + 80
2   IOGPU                         	       0x1a6975b54 IOGPUNotificationQueueDispatchAvailableCompletionNotifications + 128
3   IOGPU                         	       0x1a6975c60 __IOGPUNotificationQueueSetDispatchQueue_block_invoke + 64
4   libdispatch.dylib             	       0x187ea89d0 _dispatch_client_callout4 + 20
5   libdispatch.dylib             	       0x187ec4c5c _dispatch_mach_msg_invoke + 468
6   libdispatch.dylib             	       0x187eafd28 _dispatch_lane_serial_drain + 368
7   libdispatch.dylib             	       0x187ec5998 _dispatch_mach_invoke + 444
8   libdispatch.dylib             	       0x187eafd28 _dispatch_lane_serial_drain + 368
9   libdispatch.dylib             	       0x187eb0a08 _dispatch_lane_invoke + 432
10  libdispatch.dylib             	       0x187eafd28 _dispatch_lane_serial_drain + 368
11  libdispatch.dylib             	       0x187eb09d4 _dispatch_lane_invoke + 380
12  libdispatch.dylib             	       0x187ebb61c _dispatch_root_queue_drain_deferred_wlh + 288
13  libdispatch.dylib             	       0x187ebae90 _dispatch_workloop_worker_thread + 404
14  libsystem_pthread.dylib       	       0x188056114 _pthread_wqthread + 288
15  libsystem_pthread.dylib       	       0x188054e30 start_wqthread + 8

MacOS 14.2, Mac Mini M1, Rack 2.4.1

@nullJaX
Copy link
Owner

nullJaX commented Jan 3, 2024

Hi,
Unfortunately, I don't own any Mac machine. Is it possible for you to post more info/logs/stacktrace here?

@fractalgee
Copy link
Author

fractalgee commented Jan 3, 2024

Hmm, Just tried again, and now it hangs Rack hard with just this in the log.txt of Rack:

[16.040 info src/app/Browser.cpp:89 chooseModel] Creating module Patchable Devices Digital Chaotic System
[16.040 info src/app/Browser.cpp:93 chooseModel] Creating module widget Patchable Devices Digital Chaotic System

Stack is (however I had to kill the app as it was hung hard) :

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_platform.dylib      	       0x18ce001c0 _os_unfair_lock_recursive_abort + 36
1   libsystem_platform.dylib      	       0x18cdfb778 _os_unfair_lock_lock_slow + 316
2   libsystem_malloc.dylib        	       0x18cbe549c tiny_malloc_should_clear + 128
3   libsystem_malloc.dylib        	       0x18cbe42c8 szone_malloc_should_clear + 92
4   libsystem_c.dylib             	       0x18cc75958 backtrace_symbols + 60
5   libRack.dylib                 	       0x103189354 rack::system::getStackTrace() + 88
6   Rack                          	       0x10233ee60 fatalSignalHandler(int) + 40
7   libsystem_platform.dylib      	       0x18cdfda24 _sigtramp + 56
8   libsystem_malloc.dylib        	       0x18cbe80c8 tiny_free_no_lock + 144
9   libsystem_malloc.dylib        	       0x18cbe7eb4 free_tiny + 496
10  libsystem_c.dylib             	       0x18cc75a94 backtrace_symbols + 376
11  libRack.dylib                 	       0x103189354 rack::system::getStackTrace() + 88
12  Rack                          	       0x10233ee60 fatalSignalHandler(int) + 40
13  libsystem_platform.dylib      	       0x18cdfda24 _sigtramp + 56
14  libRack.dylib                 	       0x1031da9ac rack::app::RackWidget::updateModuleOldPositions() + 184
15  libRack.dylib                 	       0x103222f58 rack::widget::EventState::handleButton(rack::math::Vec, int, int, int) + 180
16  libRack.dylib                 	       0x1032258e4 rack::window::mouseButtonCallback(GLFWwindow*, int, int, int) + 188
17  AppKit                        	       0x1908272d0 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3472
18  AppKit                        	       0x1907b279c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 364
19  AppKit                        	       0x1907b245c -[NSWindow(NSEventRouting) sendEvent:] + 284
20  AppKit                        	       0x190e5f9f4 -[NSApplication(NSEventRouting) sendEvent:] + 1604
21  libRack.dylib                 	       0x1032ebe60 _glfwPollEventsCocoa + 140
22  libRack.dylib                 	       0x1032260b0 rack::window::Window::step() + 144
23  libRack.dylib                 	       0x103226008 rack::window::Window::run() + 40
24  Rack                          	       0x10233e7e0 main + 3428
25  dyld                          	       0x18ca4d0e0 start + 2360

I'll keep trying to see if I can get you more info. Only difference between then and now is that I now run MacOS 14.2.1 instead of 14.2. Not sure what in that update might cause the different behaviour as I see nothing in the changelog that would explain this.

@fractalgee
Copy link
Author

FYI, I pinged Christoph Schol, who does the integration testing for Rack modules, so hope he can shed some more light on this to help track this down, as I just get a hard hang when trying to add this.

@cschol
Copy link

cschol commented Jan 5, 2024

Tested with macOS 13.6.2 Ventura on M2 amd64 and it works fine for me.
Screenshot 2024-01-04 at 7 16 39 PM

Might be an issue with macOS Sonoma? No way for me to test though.

@bubbleandsquawk
Copy link

Also macOS 13.6.2 Ventura on M2 amd64 here, but crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants