Stack overflow exception with Mapster cause running process to terminate.
TSource.Adapt<TDestination>()
You can find more about preventing circular reference from doc. Use following for preventing stack overflow error.
TypeAdapterConfig<TSource, TDestination> .NewConfig() .PreserveReference(true);