UltraWorkSpace 1.0.1: crash on wake from sleep, and two data problems
Setup: MacBook Pro, Apple M4 Max, macOS 27.2, UltraWorkSpace 1.0.1 (1.0.1.0), CoreBar on LineOS 1.0.9.
1. The app crashes when the Mac wakes from sleep
UltraWorkSpace quit by itself three times in the last week (Oct 27, 29 and 31). Each time it had been running for 11 to 18 hours, and each crash happened within 0 to 3 seconds of the Mac waking up (macOS power log):
| Crash report |
Mac woke |
App crashed |
| UltraWorkSpace-2026-10-27-124508.ips |
12:44:18 |
12:44:21 |
| UltraWorkSpace-2026-10-29-075858.ips |
07:58:56 |
07:58:56 |
| UltraWorkSpace-2026-10-31-014716.ips |
01:47:14 |
01:47:14 |
All three reports have the same stack on the main thread:
EXC_BAD_ACCESS (SIGSEGV), KERN_INVALID_ADDRESS at 0x0000000000000040
UM::Workflow::then(std::function<void (UM::Workflow&)>)
UM::CoreBarDevice::connectAndAuth()
UM::CoreBarDevice::onTimer()
QTimer::timerEvent(QTimerEvent*)
So the reconnect timer calls connectAndAuth(), and Workflow::then() reads through a null pointer (offset 0x40). The app retries every 25 seconds while the bar is unreachable, and the log prints [Workflow] ~Workflow() after each failed try. My guess: after sleep, timer events that were held back fire together, and a second connectAndAuth() starts while the previous workflow is being destroyed. Suggested fix: don’t start a new connect while one is running (or hold the workflow in a shared pointer), and check the workflow pointer before calling then().
There’s no message when this happens. The app just disappears, so the bar’s buttons stop controlling the Mac until the user notices and opens it again. I can send the three .ips files.
2. The project is saved inside the app bundle
The layouts, widgets and plugins live in UltraWorkSpace.app/Contents/MacOS/project/UltraWorkSpaceProject.umpf and Contents/MacOS/plugin/. This causes two problems:
- Installing a new build replaces the app, and each build ships empty
project/ and plugin/ folders, so every update deletes the user’s layouts and plugin packs. It happened to me going to 1.0.0-14; I had to restore them from a backup.
- Each save changes a file inside the signed bundle, so the signature breaks:
codesign --verify says “invalid signature (code or signature have been modified) In subcomponent: …/project/UltraWorkSpaceProject.umpf”. Once the app is Developer ID signed and notarized, this will still break it. It also fails for a user who isn’t an admin, because they can’t write to /Applications.
Suggested fix: keep the project and plugins in ~/Library/Application Support/UltraWorkSpace/, and on first launch move them over from the bundle if they’re there.
3. The app never picks up the bar’s new IP address
The app saves the bar’s IP when you pair, then only ever connects to that saved address. If the router gives the bar a new address, the app shows Offline for good, even though the bar still answers discovery (discovery.ultrabar on UDP 5319, with the same serial number) at the new address. The fix that works now is removing and re-adding the bar. Suggested fix: when a connection fails, run discovery, look for the paired serial number, and update the saved IP. (The pairing token still works after the IP changes, so the user doesn’t need to pair again.)
Minor
- At startup the log repeats
QLayout: Attempting to add QLayout "" to UM::BaseWidget "coreBarWidgetListGroupItem", which already has a layout once for each widget group. A layout is set twice, so it’s probably harmless.
- When the bar is off, the app only says Offline, and the log only says
failed to connect core bar (once Socket error: -1, Unknown error). Something like “CoreBar not reachable at 192.168.4.22:7431” would help users.
- With the bar off, the app stayed up through 13 reconnect tries over 6 minutes, so it needs the wake from sleep to crash.
Happy to send logs and the crash reports.