Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

"XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server ":0"" in the testing stage of HelloWorld model #510

Closed
hankuipeng opened this issue Jun 24, 2021 · 2 comments · Fixed by #515

Comments

@hankuipeng
Copy link

hankuipeng commented Jun 24, 2021

When running "python InnerEye/ML/runner.py --model=HelloWorld" on a local Ubuntu 20.04 machine without GPU, the error "XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server ":0"" occurred. This was caused by 'pool_outputs' on line 187 of ./InnerEye/ML/model_testing.py. I suspect this only occurs when there is only one testing data sample. The problem was resolved for me when I obtain 'pool_outputs' as:

pool_outputs = evaluate_model_predictions(process_id=0,
config=config, dataset=ds, results_folder=results_folder)

AB#4152

@ant0nsc
Copy link
Contributor

ant0nsc commented Jun 24, 2021

Hi @hankuipeng , this does not repro for me unfortunately. Have you tried if the solution listed here works? At the start of model_testing.py, you would add:

import matplotlib
matplotlib.use('Agg') 

@hankuipeng
Copy link
Author

Hi @hankuipeng , this does not repro for me unfortunately. Have you tried if the solution listed here works? At the start of model_testing.py, you would add:

import matplotlib
matplotlib.use('Agg') 

Hi, thanks for your reply, this solves the problem also :)

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

Successfully merging a pull request may close this issue.

2 participants