I am getting similar result when I do:
vtkNew colors;
double rgba[4]{ 0.0, 0.0, 0.0, 0.0 };
colors->GetColor(“Carrot”, rgba);
the code crashes with message: “Exception thrown at 0x00007FFBC30CA370 (vtkCommonColor-9.2.dll) in VolumeRendering.exe: 0xC0000005: Access violation reading location 0x000000DF04100000.”
any ideas about this?