Skip to content

Hadron 0.4.1

Latest

Choose a tag to compare

@Broyojo Broyojo released this 27 Nov 19:31
b2733f9

A fix for crashes at startup that hit Geometry Dash with Geode in about one start in ten, and that could hit any Steam game.

Fixed: random crashes and hangs at startup (#208). When a Steam game starts, Steam's own library, steamclient.dylib, loads into it, and the OpenSSL inside it tests the CPU by briefly blocking almost every signal. On macOS that blocks them for every thread of the game, not just its own, and a thread that was busy at that moment could keep them blocked for good. Wine relies on such a signal to resume a thread after an exception, so that thread later resumed with a wrong register, and FEX crashed or corrupted its memory. Geometry Dash with Geode, which causes thousands of these exceptions while installing its hooks, crashed in about one start in ten; other games could crash or hang more rarely. Hadron now gives OpenSSL the CPU's features up front, so it doesn't test, and Wine no longer resumes a thread until its registers are really restored.

Along the way, other rare causes of crashes and hangs are fixed:

  • FEX could run code compiled from half-patched bytes, link to code that had just been thrown away, or lose track of a thread's memory, when a program patches its own code while it runs, as mod loaders and anti-cheat do.
  • FEX's memory allocator could give one thread's memory to another after threads exited.
  • A crash that can't be handled now ends the game, as on Windows, instead of leaving it hanging.

New: Windows programs (.exe) show a document icon of their own in Finder once Hadron opens them, instead of another app's.

The first start of each game after updating is slower than usual, because FEX rebuilds its cache once.

Known problems are in the issues, and HadronDB says what runs. If something goes wrong, save a report from Hadron's window and open an issue, or post on HadronDB.

Updating: Hadron offers this update itself when you open the window (or run hadron update). With Homebrew, brew upgrade --cask hadron. Then open Hadron and click Repair.

New here? Hadron is a compatibility tool that lets the native Mac Steam client install and run Windows games on Apple Silicon. It needs macOS 27 and Steam for Mac.

brew install --cask broyojo/hadron/hadron

or download Hadron-0.4.1.dmg below, drag Hadron to Applications, open it and choose Set up Steam. The guide has the steps.

Setting up modifies and re-signs Steam.app; Remove from Steam in Hadron undoes it. Hadron is unofficial and not affiliated with Valve.

What's Changed

  • docs: Show Hadron 0.4.0's window on the Install page by @Broyojo in #213
  • Fix Geometry Dash + Geode startup failures: steamclient's OpenSSL blocks Wine's signals, plus FEX races by @Broyojo in #211
  • build-app: Give Windows programs a document icon by @Broyojo in #212
  • Hadron 0.4.1 by @Broyojo in #215
  • package-runtime: Count patches only when a component has a queue by @Broyojo in #216

Full Changelog: v0.4.0...v0.4.1