Ensure you are calling any fragment lifecycle-dependent component outside the fragment lifecycle. for instance, declaring a var with something from the viewmodel.
var anything = viewmodel.something.
make all such calls within the lifecycle methods of the fragment, of course, it is best you do them in the OnViewCreated method