I'm trying to build and then load a simple Content Archive subscene containing one single entity. However I am a complete loss, as when I try to load its subscene, I get a NRE at a extremely low level, and Play Mode hangs which makes me kill the Unity process to reboot. This only happens if I have the debugger attached, otherwise I'd never see this and it doesn't appear in the Editor log.
https://hastebin.ianhon.com/6255
However if I go a little bit earlier in the ContentDeliveryGlobalState, I find the following log. I also can find this if I launch without the debugger attached as the last logged message:
https://hastebin.ianhon.com/561b
I have absolutely no idea why it is packing and trying to load a ContentArchive with all 0s, and rebuilding it still gives me the same result. No such thing appears in the DebugCatalog, which seems fine:
https://hastebin.ianhon.com/9b54
The code that bakes the Content Archive is the following:
https://hastebin.ianhon.com/55e9
Then I load the subscene, given the guid, using a manifest file generated at build time, using SceneSystem.LoadSceneAsync.
https://hastebin.ianhon.com/5519
I'm been poking at this for a couple of days and I simply do not know what to do and what could be making this happen. Apparently, the all 0s archive might be a reference to a Editor only Catalog/Archive, but I'm doing the same build steps as per documentation.