question
Appears after import pytorch_lightning
Segmentation fault (core dumped)
Solution
import pytorch_lightning is incompatible with protobuf v3.19.*, and the version needs to be lowered to 3.18.1.
Install the specified version of protobuf
pip install protobuf==3.18.1
reference
https://discuss.pytorch.org/t/seg-fault-with-pytorch-lightning/140973