monkeylashes
← Homeworld: Unbound

Homeworld: Unbound 0.13: fixing launches that got stuck loading

The bug under the 0.12 bug

In 0.12 I described a crash when going from the demo to the full game, and traced it to Android warm-starting the process with the wrong engine already loaded. That was real, but it was only a symptom.

If you quit the game and launched it again, with no campaign change and nothing to do with your data, it sat in the headset’s loading environment and never started. A third press worked. That’s been true of every release so far.

The engine can’t start twice in one process. The second run starts on top of the globals the first run left behind, and there’s no cleanup that makes that safe. You can see it in the log: a path prefix gets added twice, leaving a double slash in a filename it then can’t find. The crash from 0.12 just died sooner, on an engine that couldn’t be swapped, which is why it looked like a separate bug.

It also covered its own tracks. The failure killed the exact process that was broken, so the next launch had nothing to reuse and worked fine. That’s why it seemed like a first-launch quirk.

Now quitting ends the process. There’s nothing left to reuse, so every launch is a cold start, which is the only way the engine starts correctly.

A fresh install hung on its first launch

If you installed from SideQuest for the first time, the app asked for file access before it had started, then sat on the loading screen forever. Granting the permission didn’t help. Uninstalling and reinstalling made it more likely, because that clears the permission, and not having it was what set this off.

The request opened a system settings panel, the panel took focus, and the game won’t start drawing without focus. So it never drew, and focus never came back to an app that had never shown up.

When it asks for the permission now

It doesn’t ask for anything while you’re playing, and the demo never needs it. Instead, the headset asks whether to grant All files access when you quit, since that’s the one moment there’s no running game for a settings panel to steal focus from.

Granting it is what lets the game find your copy of Homeworld. Without it, the app can’t see your Downloads folder, so it can’t tell whether your files are there. You can also grant it any time from the app’s permissions in the headset’s settings, and install.py grants it over adb, so if you set up the headset from a PC you won’t see the prompt at all.