Better HN
topnewbestaskshowjobs
Log inSign up

volvogradSaint

7 karma · joined Feb 3, 2023 (3y ago) · 10 submissions

Submissions

comment 8mo ago · link · parent

Hey HN, I recently spent a week tracking down an uncatchable C++ assertion in Apple's CoreML stack and wanted to share the post-mortem.

I’ve been building an iOS/macOS companion app called Blueprint: Scoring Engine. It uses a complex pipeline of multiple CoreML YOLO models and an AR overlay to provide real-time scoring analysis for Balatro—detecting everything from playing cards and Jokers to specific card enhancements, seals, and editions.

The app ran flawlessly on an iPhone 13 but was instantly fatal on an iPhone SE 2. The crash was an uncatchable assertion in MPSGraphExecutable.mm:5070 (Error: MLIR pass manager failed).

Initially, I thought it was an Apple Neural Engine issue due to an Unknown kMGQAppleNeuralEngineSubtype=0x8030 log. It turns out the issue wasn't the ANE driver itself, but a failing MLIR lowering pass in MPSGraph when targeting unfamiliar hardware profiles. Even setting computeUnits = .cpuAndGPU crashed because MPSGraph still routes through the same MLIR compiler infrastructure.

I ended up having to build a resilience layer to detect the hardware and force .cpuOnly to bypass MPSGraph entirely. This routes execution through BNNS, avoiding the crash while keeping latency acceptable for the real-time AR overlay. I've filed a Feedback with Apple, but until it's patched, .cpuOnly is the only safe fallback.

2.

An uncatchable CoreML crash: MLIR compiler failures on the iPhone SE 2(medium.com ↗)

4 points · by volvogradSaint · 8mo ago · 1 comment

comment 2y ago · link · parent

I am curious is it done in UIKit or SwiftUI?

comment 2y ago · link · parent

I am curious how difficult it is to run a business with apple and google's 30 per cent overhead on every transaction. Must be onerous.

comment 3y ago · link · parent

Really? Even when soldiers rose up and overthrew him, he still clung to power. If even a bloody coup couldn't do it, what chance does an election have?

comment 3y ago · link · parent

A newspaper headline from 2024: How Russia took over the UK Treasury, inside scoop on the Great Britain Banking crash of 2023.

comment 3y ago · link · parent

Never thought that the solution to America's Military Industrial complex would be McDonalds. Now when the Joint Chiefs talk of megatons they are talking about recruits weight not weapon payload.

comment 3y ago · link · parent

Netflix probably bidding for the screenplay as we speak. Billions, death and gay couple, with a side of culture war, Trump, hulk hogan's nude pics, racism and gawker. At least six episodes of a docuseries right there.