Crash when use TGeoHMatrix

I’m trying to get geometry from some file [code]
TGeoNode* node = gGeoManager->GetTopNode();
TGeoVolume *vol = node->GetVolume();
TGeoShape *shape = vol->GetShape();

TGeoMaterial *material = vol->GetMaterial();
TGeoHMatrix *matrix = node->GetMatrix();
Double_t *trans = matrix->GetTranslation();//segfault
I can loop over “node” and childs, take volume, material, properties of volume/shape etc. but when I try get any matrix with translation, rotation or scale (e.g. call GetTranslation) then I get segfault. What can be the reason and how to fix this?


This should not happen, can you send me the file by mail?