Multi-thread: Random in AvalancheMC and AvalancheMicroscopic

That is likely related to the behavior I’m describing here. Basically, the PlottingEngine class sets a global plotting style with m_style, potentially before the main function initialization since m_style is a static member. In doing so, the ROOT environment gains ownership of the memory address pointed by m_style. During the program shutdown, the ROOT environment frees the memory address before the unique_ptr destructor’s is called, leading to a double-free error.