Never do anything except assignments in a constructor. Please move the call to the snapshotter to where the constructor is called instead.