|Message: Re: QT Multithreading crash||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I did find a way to get it to run, though not in parallel.
If I set the line
`runManager -> SetNumberOfThreads(G4Threading::G4GetNumberOfCores());`
the program does not set fault.
I did also notice that I had not run `/run/initialize` as I was getting an error about `/run/beamOn 1` not being defined. I had mistakenly assumed this was in the provided code, as it also did run in serial. When fixing both of these, it prevent a crash but only one CPU is running.
In contrast if I make a macro file that has initialize and a few large beamOn commands in them they run fine (visualization is not being created). I see all my CPUs max out here. If I call this macro from the GUI it starts to run but crashes. The tail of the report is
G4WT0 > Thread-local run terminated. G4WT0 > Run Summary G4WT0 > Number of events processed : 131G4WT7 > User=7.63s Real=5.25s Sys=1.88s G4WT0 > User=7.65s Real=5.27s Sys=1.88s G4WT3 > User=7.66s Real=5.27s Sys=1.88s
G4WT1 > Thread-local run terminated. G4WT1 > Run Summary G4WT1 > Number of events processed : 121 G4WT1 > User=7.74s Real=5.31s Sys=1.89sexampleB2a: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. G4WT2 > ### Run 1 starts on worker thread 2. G4WT3 > ### Run 1 starts on worker thread 3. G4WT1 > ### Run 1 starts on worker thread 1. pure virtual method called terminate called without an active exception Aborted (core dumped)
There is a warning of maxing out the display limit and that it is continuing without visualization. Running the macro from the GUI also DOES NOT cause it to run in parallel. Without remaking the file if I try to repeat this (./exampleB2a and then `/control/execute mytest.mac`) it crashes with the same seg fault and error 11 as in the original post.
|Inline Depth:||Outline Depth:||Add message:|