Develop example B5 with garbled code

Sincerely gods & goddess of Geant4:
When I develop my Geant4 code based on example B5, just with run/beamOn command, with the error inform like these:

G4WT0 > --> Event 24 starts with initial seeds (86191441,57023765).
G4WT0 > /gun/particle ion
G4WT0 > /gun/ion 6 12 0 0
G4WT0 > <��4�G4WT0 > <> is not found.
G4WT1 > --> Event 31 starts with initial seeds (81508711,79879180).
G4WT1 > /gun/particle ion
G4WT1 > /gun/ion 6 12 0 0
G4WT1 > < ��_�G4WT1 > <> is not found.
G4WT0 > --> Event 25 starts with initial seeds (39093233,32622675).
G4WT0 > /gun/particle ion
G4WT0 > /gun/ion 6 12 0 0
G4WT0 > <�Y84�G4WT0 > <> is not found.
G4WT0 > --> Event 26 starts with initial seeds (31878492,34620547).
G4WT0 > /gun/particle ion
G4WT1 > --> Event 32 starts with initial seeds (6306280,71174183).
G4WT0 > /gun/ion 6 12 0 0
G4WT1 > /gun/particle ion
G4WT1 > /gun/ion 6 12 0 0
G4WT0 > < /J4�G4WT1 >  with energy :5160 MeV

why I got the garbled code??could you please help me??~~~~~ plz! :sob:

Hard to help without any way to see your code.

Which part do you mean by “garbled”? Do you mean the lines where there are non-ASCII characters, mixed with (apparently) the thread name? That looks to me like your own code must be referencing a bad pointer as a string.