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

Make ctest run verbose #57

Merged
merged 1 commit into from
Aug 22, 2017
Merged

Make ctest run verbose #57

merged 1 commit into from
Aug 22, 2017

Conversation

yarikoptic
Copy link
Collaborator

Just a wild guess while waking up

Just a wild guess while waking up
@nno
Copy link
Contributor

nno commented Aug 20, 2017

Thanks @yarikoptic.

For the record: this PR tries to address #56

@nno
Copy link
Contributor

nno commented Aug 21, 2017

Thanks for including the verbose option @yarikoptic. The relevant output where the tests fails is

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":20"
2:       after 7415 requests (7398 known processed) with 0 events remaining.

as part of the full output when running test 2:

test 2
    Start 2: do.examples
2: Test command: /home/travis/build/afni/afni/tests/xvfb-driver "-e" "0" "-f" "0" "--" "@DO.examples" "-auto_test"
2: Test timeout computed to be: 9.99988e+06
2: I: builddir=/home/travis/build/afni/afni/testing  srcdir=/home/travis/build/afni/afni tempdir=/tmp/tmp.80sM656H3D
2: Warning: Cannot convert string "9x15" to type FontStruct
2: [1] 14122 14123
2: 
2: suma: 
2:      No input specified, loading some toy surfaces...
2:      Use '.' and ',' to cycle between them.
2:      See suma -help for assistance.
2: 
2: Warning: Cannot convert string "9x15" to type FontStruct
2: ++     Notice SUMA_XtWarn_handler (SUMA_display.c:4114 @13:18:05):
2:   X11 Warning 1:Cannot convert string "9x15" to type FontStruct
2:   Have 1 X11 warnings so far, see Help-->Message Log if curious.
2:   This notice is shown once for each additional 10 warnings.
2: 
2: SUMA_Engine: Starting to listen ...
2: oo     Warning suma (SUMA_suma.c:1178):
2: 
2:  No sumarc file found. You should create one by running the following:
2: 
2:               suma -update_env
2: 
2:  I also recommend you run 'suma -update_env' whenever you update AFNI.
2: 
2:  See details for -environment and -update_env options in suma -help's output.
2: 
2: 
2: == MaskMode 0, v0 -1, v1 0
2: 
2: +++ Command Echo:
2:    DriveSuma -com show_surf -label __donut -i __donut.ply -com viewer_cont -viewer_size 1000 1000 -key m -key left 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: ++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:06):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: 
2: Waiting for SUMA to close stream .SUMA_process_NIML_data: Registering surfaces with surface viewers, viewopt = 0...
2: ++     Notice SUMA_ApplyVisualState (SUMA_display.c:1576 @13:18:06):
2: Resizing main window to 1000 x 1000
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: 
2: +++ Command Echo:
2:    DriveSuma -com viewer_cont -load_do __nbs.1D.do -key p 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: 
2: Waiting for SUMA to close stream .++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:09):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: SUMA_ReadNBSegDO: Node-Based Segment file /tmp/tmp.80sM656H3D/__nbs.1D.do's format:
2: n0 n1 th
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: 
2: +++ Command Echo:
2:    DriveSuma -com viewer_cont -load_do __onbs.1D.do 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: 
2: Waiting for SUMA to close stream .++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:11):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: SUMA_ReadNBSegDO: Oriented Node-Based segment file /tmp/tmp.80sM656H3D/__onbs.1D.do's format:
2: n0 n1 c0 c1 c2 c3 th st
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: 
2: +++ Command Echo:
2:    DriveSuma -com viewer_cont -load_do __onbst.1D.do 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: 
2: Waiting for SUMA to close stream .++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:13):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: SUMA_ReadNBSegDO: Oriented Node-Based segment file /tmp/tmp.80sM656H3D/__onbst.1D.do's format:
2: n0 n1 c0 c1 c2 c3 th
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: 
2: +++ Command Echo:
2:    DriveSuma -com viewer_cont -load_do __os.1D.do 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: 
2: Waiting for SUMA to close stream .++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:15):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: SUMA_ReadSegDO: Oriented segment file /tmp/tmp.80sM656H3D/__os.1D.do's format:
2: x0 y0 z0 x1 y1 z1 c0 c1 c2 c3 th stp
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: 
2: +++ Command Echo:
2:    DriveSuma -com viewer_cont -load_do __sp.1D.do 
2: 
2: SUMA_niml_call: Contacting on tcp:127.0.0.1:53219 (6), maximum wait 300.000 sec 
2: (You can change max. wait time with env. SUMA_DriveSumaMaxWait)
2: 
2: 
2: Waiting for SUMA to close stream .++     Notice SUMA_niml_workproc (SUMA_niml.c:303 @13:18:17):
2: ++ NIML connection opened from 127.0.0.1 on port 53219 (6th stream)
2: SUMA_ReadSphDO: Sphere file /tmp/tmp.80sM656H3D/__sp.1D.do's format:
2: ox oy oz c0 c1 c2 c3 rd st
2: SUMA_niml_hangup: stream index 6
2: .Done.
2: Warning: Cannot convert string "9x15" to type FontStruct
2: usage: count <expected line count>
2: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":20"
2:       after 7415 requests (7398 known processed) with 0 events remaining.
2: Warning suma: SUMA running in developer mode, some options may malfunction.
2: E: Testing @DO.examples -auto_test failed. Exit code was 2
2/2 Test #2: do.examples ......................***Failed   17.43 sec
50% tests passed, 1 tests failed out of 2
Label Time Summary:
GLX    =  17.43 sec
Total Test time (real) =  23.62 sec
The following tests FAILED:
	  2 - do.examples (Failed)
Errors while running CTest

@nno
Copy link
Contributor

nno commented Aug 21, 2017

I came across a relevant message (https://afni.nimh.nih.gov/afni/community/board/read.php?1,146837,146837):

a recently changed AFNI default is to auto-detach from terminal, which is probably more convenient for most users. There is just one small limitation if you use drive AFNI in a virtual X11 server environment (Xvfb) executed e.g. like this: 
xvfb-run -a --server-args='-screen 0 1280x1024x24' afni -com 'SAVE_JPEG A.axialimage sss.jpg' -com 'QUIT' 
> more details [afni.nimh.nih.gov] 

If you use a fresh AFNI version, you potentially get the following error: 
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":100" 
after 16152 requests (16109 known processed) with 0 events remaining. 

My bug fix was rather simple and easy to share - just add the flag '-no_detach' to the afni drive command and all works as in previous versions. 
xvfb-run -a --server-args='-screen 0 1280x1024x24' afni -no_detach -com 'SAVE_JPEG A.axialimage sss.jpg' -com 'QUIT' 

will try and see if using the "no_detach" option when running the tests resolves the issue.

@nno
Copy link
Contributor

nno commented Aug 21, 2017

It seems that the no_detach option is afni specific, whereas the do.examples script contains many calls to DriveSuma (which /may/ cause the fatal IO error 11). So I'm not sure if the no_detach option can actually be used; or even whether it could fix the problem running the do.examples script on travis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants