Skip to content

Repeated SIGABRT in RenderBox Metal device init (RB::load_library) #3

Description

@sammarcus

Describe the bug

Contextify aborts with SIGABRT on the com.apple.RenderBox.Device queue while SwiftUI's RenderBox loads its Metal shader library. Six crash reports with an identical stack over five days, plus two related variants.

0  libsystem_kernel.dylib  __pthread_kill
1  libsystem_pthread.dylib pthread_kill
2  libsystem_c.dylib       abort
3  RenderBox               RB::precondition_failure(char const*, ...)
4  RenderBox               RB::(anonymous namespace)::load_library(NSBundle*, id<MTLDevice>) (.cold.2)
5  RenderBox               RB::(anonymous namespace)::load_library(NSBundle*, id<MTLDevice>)
6  RenderBox               RB::Device::preload_resources()
7  RenderBox               RB::Device::Device(RBDevice*, id<MTLDevice>)::$_7::__invoke(void*)

Two variants: one crash reached the same failure from CoreAnimation (CA::CG::QueueCA::OGL::new_metal_context assert), triggered by a click in an outline view; one produced an extra uncaught ObjC exception during NSView layout at the same second.

Not a machine-wide GPU problem, no other app on this machine has ever produced this signature, and it reproduces across two separate boot sessions at uptimes from 16 hours to 9.6 days.

To Reproduce

No reliable repro. It fires both in foreground and background, at launch and 40+ minutes in. One instance came from a plain click in an outline view.

Expected behavior

Metal library load failure shouldn't terminate the app.

Environment:

  • macOS version: 26.6 (25G72)
  • Contextify version: 1.7.7 (42)
  • Installation method: App Store
  • Hardware: Mac15,10, M3 Max, 96 GB

The precondition_failure message string isn't in the .ips , though.... let me know if you want the crash logs emailed?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions