---
title: 进程异常，下一次执行任务报错“unbind model stream failed”
description: "用户捕获异常退出信号，并在信号处理函数中释放已申请资源，下一次执行时会报执行失败。此时查看日志，会发现unbind model stream failed报错。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/troubleshooting_0113.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/troubleshooting_0113.html
indexId: b1335e6006604e7e3e6d5517f876912353daa1f6de8386eb9b155c1ef3eb9d2682
---
# 进程异常，下一次执行任务报错“unbind model stream failed”

#### 问题现象描述

用户捕获异常退出信号，并在信号处理函数中释放已申请资源，下一次执行时会报执行失败。此时查看日志，会发现unbind model stream failed报错。

```
device-0_20200904215108557.log:482494:[ERROR] TSCH(-1,null):2020-09-04-21:51:13.452.762 63696 (cpuid:0) task_scheduler_engine.c:707 proc_model_stream_unbind: unbind model stream failed, stream is running. stream->model_id=512, model_id=512, task.sq_id=514, task.task_id=3
```


#### 可能原因

进程异常时，Host侧内核态驱动会自动检测并发起对应进程Device侧资源释放的流程，不需要用户捕获进程异常的信号并主动完成清理。若用户主动释放，会影响到系统的资源释放流程。


#### 处理步骤

用户无需关注进程异常退出信号，不要对异常退出信号做处理。
