• Error: child killed: write on pipe with no readers

    From Pradip Si@21:1/5 to All on Fri Oct 1 17:11:21 2021
    I am using this PWTK TCL code for multiple runs at a time. The first is successful, but the next following runs fail and showing the mentioned error. Could you suggest how to solve the issue?
    #######################################
    #load the pw.x input from file
    load_fromPWI si.scf.in

    # open a file for writing resulting total energies
    set fid [open Etot-vs-ecutwfc.dat w]

    # loop over different "ecut" values
    foreach ecut [seq 12 4 40] {

    # name of I/O files: $name.in & $name.out
    set name Si.scf.ecutwfc-$ecut

    # set the pw.x "ecutwfc" variable
    SYSTEM "ecutwfc = $ecut"

    # run the pw.x calculation
    runPW $name.in

    # extract the "total energy" and write it to file
    set Etot [pwo_totene $name.out]
    puts $fid "$ecut $Etot"
    }

    close $fid


    # plot the result with gnuplot
    exec gnuplot plot.gp
    ##################################

    Best,
    Pradip
    ~

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arjen Markus@21:1/5 to Pradip Si on Mon Oct 4 05:25:56 2021
    On Saturday, October 2, 2021 at 2:11:23 AM UTC+2, Pradip Si wrote:
    I am using this PWTK TCL code for multiple runs at a time. The first is successful, but the next following runs fail and showing the mentioned error. Could you suggest how to solve the issue?
    #######################################
    #load the pw.x input from file
    load_fromPWI si.scf.in

    # open a file for writing resulting total energies
    set fid [open Etot-vs-ecutwfc.dat w]

    # loop over different "ecut" values
    foreach ecut [seq 12 4 40] {

    # name of I/O files: $name.in & $name.out
    set name Si.scf.ecutwfc-$ecut

    # set the pw.x "ecutwfc" variable
    SYSTEM "ecutwfc = $ecut"

    # run the pw.x calculation
    runPW $name.in

    # extract the "total energy" and write it to file
    set Etot [pwo_totene $name.out]
    puts $fid "$ecut $Etot"
    }

    close $fid


    # plot the result with gnuplot
    exec gnuplot plot.gp
    ##################################

    Best,
    Pradip
    ~
    Well, apparently, one of the commands/procedures in your script is opening a pipe to another program, but that is not in the source code you show. So it is prettly difficult for us to identify the cause of the error. And the software you refer to is not
    anything I have any knowledge of ;).

    Regards,

    Arjen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Uwe Klein@21:1/5 to All on Tue Oct 12 19:30:00 2021
    Am 02.10.21 um 02:11 schrieb Pradip Si:
    I am using this PWTK TCL code for multiple runs at a time. The first is successful, but the next following runs fail and showing the mentioned error. Could you suggest how to solve the issue?

    What Arjen wrote.

    then
    does your code use named/persistent pipes?

    when the first run is finished my guess
    would be that the listeners on some pipe dies on EOF without a restart.

    any further run and you write to a pipe with no "taker" on the other end.

    look at the process list during the first run
    and compare to the second run.
    which process has gone missing.

    Uwe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)