Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findFeaturesSegment.py fails with child/parent communication errors #5702

Open
lwellerastro opened this issue Jan 3, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@lwellerastro
Copy link
Contributor

lwellerastro commented Jan 3, 2025

ISIS version(s) affected: 9.0.0-RC1

Description
Program appears to start working then fails with errors:

INFO:kalasiris.kalasiris:segment from=MyWorkDir/M105939370LE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1120292097RE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1342772956LE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1133330211LE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1342772956RE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1130970104LE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
INFO:kalasiris.kalasiris:segment from=MyWorkDir/M1133330211RE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences
Had an ISIS error:
segment from=MyWorkDir/M1133330211LE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences

**PROGRAMMER ERROR** Isis child process failed to communicate with parent.

Had an ISIS error:
segment from=MyWorkDir/M1133330211RE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences

**PROGRAMMER ERROR** Isis child process failed to communicate with parent.

Had an ISIS error:
segment from=MyWorkDir/M1342772956RE.lev1.cub nl=30000 overlap=0 -pref=$ISISROOT/IsisPreferences

**PROGRAMMER ERROR** Isis child process failed to communicate with parent.

This is repeated for every image in the fromlist, then

Traceback (most recent call last):
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0_RC1/bin/findFeaturesSegment.py", line 447, in <module>
    raise e 
    ^^^^^^^
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0_RC1/bin/findFeaturesSegment.py", line 443, in <module>
    findFeaturesSegment(ui, workdir) 
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0_RC1/bin/findFeaturesSegment.py", line 341, in findFeaturesSegment
    output = output.get()
             ^^^^^^^^^^^^
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/multiprocessing/pool.py", line 774, in get
    raise self._value
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/multiprocessing/pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0_RC1/bin/findFeaturesSegment.py", line 147, in segment
    raise err
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0_RC1/bin/findFeaturesSegment.py", line 114, in segment
    ret = kisis.segment(work_img, nl=nlines, overlap=0, pref__="$ISISROOT/IsisPreferences")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/site-packages/kalasiris/kalasiris.py", line 195, in isis_fn
    return _run_isis_program(cmd, subprocess_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/site-packages/kalasiris/kalasiris.py", line 140, in _run_isis_program
    return subprocess.run(cmd, **subprocess_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usgs/cpkgs/isis3/anaconda3_linux/envs/isis9.0.0_RC1/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['segment', 'from=MyWorkDir/M1133330211LE.lev1.cub', 'nl=30000', 'overlap=0', '-pref=$ISISROOT/IsisPreferences']' returned non-zero exit status 3.

How to reproduce
Running under my work users area Isis3Tests/FFSegmentScript/Git5655/I900RC1/

Command line:
findFeaturesSegment.py algorithm=fast/brief maxthreads=7 workdir=MyWorkDir match=../Lev1/M108313384RE.lev1.cub fromlist=M108313384RE_fromlist_ff.lis fastgeom=true geomtype=camera maxpoints=10000 epitolerance=9.0 ratio=0.9 hmgtolerance=9.0 filter=sobel networkid=M108313384RE pointid='M108313384RE_ff_?????' onet=M108313384RE_ff.net tolist=M108313384RE_cubes_ff.lis tonotmatched=M108313384RE_notmatched_ff.lis description='Create image-image control network' debug=true debuglog=M108313384RE_ff.log

Note that the match file and all of the images in fromlist exist in the directory below where I am running things. The workdir exists. Running on an astrovm.

My understanding is nothing has changed with the script and this worked before, albeit with some issues (#5655) that have not been addressed (I think, not sure).

@lwellerastro lwellerastro added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant