Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: MUSICTest seg faults #34

Open
cparker24 opened this issue Sep 16, 2024 · 4 comments
Open

[Bug]: MUSICTest seg faults #34

cparker24 opened this issue Sep 16, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@cparker24
Copy link
Contributor

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

2

on

50 70 5020 MUSIC 42 1 colorless

Relevant Log Output

�[34m[Debug] 77MB std::shared_ptr<std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> > Jetscape::JetScapeTaskSupport::GetMt19937Generator(int) : Asked by 5 for the static generator, returning one originally seeded with 1708500740�[0m
�[32m[Verbose][2] 77MB virtual void iSpectraSamplerWrapper::ExecuteTask() : Random seed used for the iSS module: 1159577404�[0m
[Info] 77.93 MB Start computation and generating samples ...
�[32m[Verbose][2] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : Passing all sampled hadrons to the JETSCAPE framework�[0m
�[32m[Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : number of events to pass : 1�[0m
�[32m[Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : event 0: number of particles = 6�[0m
�[32m[Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : JETSCAPE received 1 events.�[0m
�[32m[Verbose][4] 77MB void iSpectraSamplerWrapper::PassHadronListToJetscape() : In event 0 JETSCAPE received 6 particles.�[0m
[Info] 77MB iSS finished.�[0m
�[32m[Verbose][7] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : : # Subtasks = 0�[0m
�[34m[Debug] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : Executing JLossManager�[0m
�[32m[Verbose][1] 77MB virtual void Jetscape::JetEnergyLossManager::ExecuteTask() : Run JetEnergyLoss Manager ...�[0m
�[34m[Debug] 77MB virtual void Jetscape::JetEnergyLossManager::ExecuteTask() : Task Id = 140335302269952�[0m
�[32m[Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Number of Hard Partons = 0�[0m
�[32m[Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Number of Hard Partons = 0�[0m
�[32m[Verbose][3] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Found 1 Eloss Manager Tasks/Modules Execute them ... �[0m
�[34m[Debug] 77MB void Jetscape::JetEnergyLossManager::MakeCopies() : Check and Create Signal/Slots via JetScapeSignalManager instance if needed ...�[0m
�[32m[Verbose][3] 77MB void Jetscape::JetScapeSignalManager::PrintGetHydroCellSignalMap() : [0:0x557aa557a550] Matter�[0m
�[32m[Verbose][3] 77MB void Jetscape::JetScapeSignalManager::PrintSentInPartonsSignalMap() : [0:0x557aa557a550] Matter�[0m
�[32m[Verbose][7] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : : # Subtasks = 1�[0m
�[34m[Debug] 77MB virtual void Jetscape::JetScapeModuleBase::ExecuteTasks() : Executing JetEnergyLoss�[0m
�[32m[Verbose][1] 77MB virtual void Jetscape::JetEnergyLoss::ExecuteTask() : Run JetEnergyLoss ...�[0m
�[32m[Verbose][1] 77MB virtual void Jetscape::JetEnergyLoss::ExecuteTask() : Found 1 Eloss Tasks/Modules Execute them ... �[0m
�[1m�[31m[Warning] virtual void Jetscape::JetEnergyLoss::ExecuteTask() : NO Initial Hard Parton/or (ISR) shower for Parton shower received ...�[0m

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 cparker24 added the bug Something isn't working label Sep 16, 2024
@cparker24
Copy link
Contributor Author

cparker24 commented Sep 17, 2024

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
Copy link
Contributor Author

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

@ismasou
Copy link
Contributor

ismasou commented Oct 29, 2024

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants