Crash in 4.17.1 when disabling occlusion culling and dbuffer decals

I had a crash when converting an existing project. Here is the minimum repro case I could come up with:
1: Make a new project, no started content needed.
2: Go to project settings-> rendering and uncheck “occlusion culling” and “dbuffer decals”.
3: You will be asked to restart the editor. Click restart now. After the editor restarts it will crash and trying to open the project onward will crash the editor.

I tested this in 4.16 and it does not crash with that version.

Some background information that may be useful:
I had a project that I converted to 4.17. That project didn’t crash on startup but only when I started the static mesh editor. In the callstack it said that the error was somewhere in the postprocessing pipeline and reflective environment. As I disabled a lot of the postprocessing effects and other stuff in the current loaded map I figured that it could be the culprit (as the static mesh editor has his own postproces settings independent of the loaded map). After some trial and error I noticed that by enabling dbuffer decals I was able to open the static mesh editor again.

Hey,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here

You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

This bug will be fixed in the next release. It was just missing creation of the HZB (in the function RenderOcclusion) when Occlusion-culling is disabled.

I’m getting this with a source built engine (4.17.2 source). Any workaround to get the editor to launch? If there’s a commit I can merge in that would be great. I could live with enabling occlusion culling if there’s an ini file setting for that (it’s just not needed in my project).

[This happens on startup, so 4.17.2 is a bit dead to me at the moment].

Seek and ye shall find. Dur. In DefaultEngine.ini

r.AllowOcclusionQueries=True