Compatibility with Geant4 10.7.p01
Dear Allpix^2 developers,
trying to use Allpix^2 v1.6.1 with the latest Geant4 release 10.7.p01, two problems emerged:
-
Allpix^2 crashes when using the QT visualization (G4UIQt), namely calling the UI->ApplyCommand commands. It is related to recent updates to this interface in Geant4 (backporting the old 10.6.x version of G4UIQt into Geant4 10.7.p01 works OK). The crash can be avoided by deactivating the SUPPRESS_STREAM and RELEASE_STREAM macros in Allpix^2.
-
Running a simple test (see configuration below) tends to randomly result (~once per 100 events) in infinite loops in G4SteppingAction, gradually consuming all RAM. Strangely, the problem does not seem to be present when using Geant4 compiled in "RelWidthDebInfo" mode instead of pure "Release". It may well be a Geant4 bug, although no such problem is seen when testing Geant4 examples.
PS: Allpix^2 and Geant4 are both compiled on Debian Linux. No such problems were seen when using Allpix^2 v1.6.0 in combination with Geant4 10.6.p03.
Pavel
====== test-geometry.conf ======
[detector1]
type = "timepix"
position = 0mm 0mm 0mm
orientation = 0 0 0
[detector2]
type = "timepix"
position = 0mm 0mm 20mm
orientation = 0 0 0
[detector3]
type = "timepix"
position = 0mm 0mm 40mm
orientation = 0 0 0
[detector4]
type = "timepix"
position = 0mm 0mm 60mm
orientation = 0 0 0
[detector5]
type = "timepix"
position = 0mm 0mm 80mm
orientation = 0 0 0
[detector6]
type = "timepix"
position = 0mm 0mm 100mm
orientation = 0 0 0
====== test-simulation.conf ======
[Allpix]
number_of_events = 200
detectors_file = "test-geometry.conf"
log_level = "Warning"
[GeometryBuilderGeant4]
[DepositionGeant4]
particle_type = "Pi+"
source_type = "beam"
source_energy = 120GeV
source_position = 0um 0um -200mm
beam_size = 3mm
beam_direction = 0 0 1
physics_list = FTFP_BERT_EMZ
[ElectricFieldReader]
model="linear"
bias_voltage=-50V
depletion_voltage=-30V
output_plots = 1
[ProjectionPropagation]
temperature = 293K
output_plots = 1
[SimpleTransfer]
output_plots = 1
[DefaultDigitizer]
output_plots = 1
[VisualizationGeant4]