Message: error using basic terminal UI Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None error using basic terminal UI 

Forum: (Graphical) User Interfaces
Date: 13 Sep, 2017
From: Jeremy McCormick <Jeremy McCormick>

I am getting an error when using basic functionality from the Geant4 terminal:

Starting interactive session ...
PreInit> ls
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr
Aborted

Traceback indicates some problem within the Geant4 terminal code:

#7  0x00007ffff68bed18 in G4VBasicShell::ModifyPath(G4String const&) const ()
    at /nfs/slac/g/hps/hps_soft/gcc/gcc-4.8.5/include/c++/4.8.5/bits/basic_string.h:324
#8  0x00007ffff68bf0a2 in G4VBasicShell::FindDirectory(char const*) const ()
    at /u/ey/jeremym/hps-dev/geant4/geant4.10.03.p02/source/interfaces/common/src/G4VBasicShell.cc:92
#9  0x00007ffff68c17bd in G4VBasicShell::ListDirectory(G4String const&) const ()
    at /u/ey/jeremym/hps-dev/geant4/geant4.10.03.p02/source/interfaces/common/src/G4VBasicShell.cc:344
#10 0x00007ffff68b1828 in G4UIterminal::GetCommand(char const*) ()
    at /u/ey/jeremym/hps-dev/geant4/geant4.10.03.p02/source/interfaces/basic/src/G4UIterminal.cc:229
#11 0x00007ffff68b26df in G4UIterminal::SessionStart() () at /u/ey/jeremym/hps-dev/geant4/geant4.10.03.p02/source/interfaces/basic/src/G4UIterminal.cc:139

I'm setting up my UI session in the typical way:

UIExec = new G4UIExecutive(argc, argv); UIExec->SessionStart();

This is using Geant4 10.3.p02 with gcc 4.8.

Any idea about why this is happening?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: error using basic terminal UI   (Asai, Makoto - 13 Sep, 2017)
1 None: Re: error using basic terminal UI   (Jeremy McCormick - 13 Sep, 2017)
2 None: Re: error using basic terminal UI   (Makoto Asai - 13 Sep, 2017)
 Add Message Add Message
to: "error using basic terminal UI"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]