JETSCAPE / X-SCAPE

The public repository for the X-SCAPE project of the JETSCAPE collaboration
GNU General Public License v3.0
1 stars 2 forks source link

[Bug]: MUSICTest seg faults #34

Open cparker24 opened 1 month ago

cparker24 commented 1 month ago

Code Version

X-SCAPE 1.1.3

Operating System

Ubuntu 22.04.1 LTS

Container

jetscape/base:stable with Docker Desktop 4.21.1

Executable

MUSICTest

Bug Description

seg faults at the shower stage saying no hard parton to shower has been found. Log was too long so trimmed it to the part that crashed. Full output is saved if needed.

XML Input File

<?xml version="1.0"?>

2 on 50 70 5020 MUSIC 42 1 colorless ### Relevant Log Output [Debug] 77MB std::shared_ptr > Jetscape::JetScapeTaskSupport::GetMt19937Generator(int) : Asked by 5 for the static generator, returning one originally seeded with 1708500740 [Verbose][2] 77MB virtual void iSpectraSamplerWrapper::ExecuteTask() : Random seed used for the iSS module: 1159577404 [Info] 77.93 MB Start computation and generating samples ... [Verbose][2] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : Passing all sampled hadrons to the JETSCAPE framework [Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : number of events to pass : 1 [Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : event 0: number of particles = 6 [Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : JETSCAPE received 1 events. [Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : In event 0 JETSCAPE received 6 particles. [Info] 77MB iSS finished. [Verbose][7] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : : # Subtasks = 0 [Debug] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : Executing JLossManager [Verbose][1] 77MB virtual void Jetscape::JetEnergyLossManager::ExecuteTask() : Run JetEnergyLoss Manager ... [Debug] 77MB virtual void Jetscape::JetEnergyLossManager::ExecuteTask() : Task Id = 140335302269952 [Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Number of Hard Partons = 0 [Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Number of Hard Partons = 0 [Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Found 1 Eloss Manager Tasks/Modules Execute them ...  [Debug] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Check and Create Signal/Slots via JetScapeSignalManager instance if needed ... [Verbose][3] 77MB void Jetscape::JetScapeSignalManager::PrintGetHydroCellSignalMap() : [0:0x557aa557a550] Matter [Verbose][3] 77MB void Jetscape::JetScapeSignalManager::PrintSentInPartonsSignalMap() : [0:0x557aa557a550] Matter [Verbose][7] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : : # Subtasks = 1 [Debug] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : Executing JetEnergyLoss [Verbose][1] 77MB virtual void Jetscape::JetEnergyLoss::ExecuteTask() : Run JetEnergyLoss ... [Verbose][1] 77MB virtual void Jetscape::JetEnergyLoss::ExecuteTask() : Found 1 Eloss Tasks/Modules Execute them ...  [Warning] virtual void Jetscape::JetEnergyLoss::ExecuteTask() : NO Initial Hard Parton/or (ISR) shower for Parton shower received ... -------------------------------------------------------------------------- Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted. -------------------------------------------------------------------------- -------------------------------------------------------------------------- mpirun detected that one or more processes exited with non-zero status, thus causing the job to be terminated. The first process to do so was: Process name: [[9447,1],0] Exit code: 255 --------------------------------------------------------------------------
cparker24 commented 1 month ago

Have been modifying the user xml it reads in to attempt to resolve the module issues. Current version is posted below. The hadronization module is currently unable to get the final state partons, crashing when the hadronization manager runs GetFinalPartonList(). jetscape_user_MUSICTest.txt

cparker24 commented 1 month ago

Strangely enough if you comment out the hadronization declaration in the executable it will run with no problems

ismasou commented 2 weeks ago

Sorry for late reply. I think this is simply an error with the xml file. You have to put both PGun in <Hard> tags. Can you try with this? (this is how it's done in jetscape_main.xml)

  <!-- Hard Process -->
  <Hard>
  <PGun>
      <name>PGun</name>
      <pT>100</pT>
      <parID>21</parID>
  </PGun>
  </Hard>
cparker24 commented 2 weeks ago

Yep that fixed it. I think some xml I was copying things from somewhere down the line was missing that and I never noticed.