#Strangest bug I've ever seen, anyone have a clue?

10 messages · Page 1 of 1 (latest)

marsh cave
#

I've tried rebuilding but no changes

#

Yeah I can literally trigger the bug by commenting/uncommenting bool DebugMode = false

gritty moatBOT
#

@marsh cave has reached level 1. GG!

slender pine
#

I don't see where you set or create your PtConfig

#

it's probably a case of uninitialized variable or invalid reference

marsh cave
# slender pine I don't see where you set or create your PtConfig

It's just created as part of the class

struct StudioConfig
{
    RenderBackend Backend = ePathTracer;
    PtConfig PT = {};
    RasterConfig Raster = {};
};

// Within class SceneStudio
StudioConfig m_studioConfig = {};```

PtConfig is passed into the breaking function by const lvalue reference
#

All variables are initialized, no pointer shenanigans going on

slender pine
#

add some debug prints as a sanity check

polar sluice
#

What happens if you move the field down?

#

And is there a different module/object that depends on the definition of that struct?