Space runs OK for several hours then ? runtime error

I have a python/gradio space (GradioTest - a Hugging Face Space by dlflannery) that was running fine for months until 2 days ago it wll run for several hours fine then:

Runtime error

Exit code: ?. Reason:

I have a Python GradioClient app running on a local computer that periodically accesses the api of the HF space. This works fine for several hours after startup then the runtime error occurs. It appears to occur at the exact time one of the api calls is made (the same API function is called each time.)

When this started 2 days ago I saw warnings about using an older version of the Gradio SDK so updated to 5.4 and have done several Factory Rebuilds. This made no difference.

This is a CPU Basic HF space.

EDIT: Now it runs for less than a half hour before the ? error

2 Likes

Same here, but yours is more detailed.

1 Like

Observations with mine:

  1. Now run for a few minutes (10? 15?), then restart
  2. … until they don’t - with “Exit code: ?”
  3. I saw 99% CPU usage in Dev Mode via the shell (“top” command), but that was with a newer Gradio version (5.4?). Same symptoms after downgrading.
2 Likes

I have the same error, in a Docker Space with Python App and in a Docker Space with Ubuntu + PHP.

1 Like

It gaves me this error:

Runtime error

Exit code: 128. Reason: failed to create containerd task: failed to create shim task: context deadline exceeded: unknown

1 Like

My problem has been fixed since about 7pm yesterday

2 Likes

It has improved a lot here too. I don’t know if it’s completely solved yet, but I don’t think any new problems have occurred.