# Assertion \`uv\_\_has\_active\_reqs(req-\>loop)' failed

**URL:** <https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564>\
**Category:** General\
**Created:** [4 October 2022 16:58 UTC](https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564 "2022-10-04T16:58:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [4 October 2022 16:58 UTC](https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564/1 "2022-10-04T16:58:02Z")

</div>

Hi all, I'm programming a node-red code with digital input and output of mraa-gpio library. Periodically I obtain the following error:  
Assertion `uv\_\_has\_active\_reqs(req-\>loop)' failed.

can some one help me?  
many thanks

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 October 2022 17:32 UTC](https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564/2 "2022-10-04T17:32:08Z")

</div>

Hi @denissanga

without more context about the error (there must be more than just that in the error message?) then it is hard to be specific.

But a `uv__...` type error is coming from native code - so most likely a bug or issue with the `mraa-gpio` library. We aren't going to be able to help with an issue in a low-level library like that - you'd have to report it back to the maintainers of whichever mraa-gpio library you are using.

---

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [4 October 2022 17:41 UTC](https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564/3 "2022-10-04T17:41:43Z")

</div>

thank you very much for your answer.

I'm using a simple branch which read an digital input in iot2050 siemens and  
digital input ON -\> digital output OFF  
digital input OFF -\> digital output OFF

Always I can turn on the output but when I try turn off the external input the application crashes without other details if not the following line:

./src/threadpool.c:329: uv\_\_queue\_done: Assertion `uv\_\_has\_active\_reqs(req-\>loop)' failed.

I'm using mraa-gpio library version 2.2.0 on iot2050siemens

many thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 December 2022 17:42 UTC](https://discourse.nodered.org/t/assertion-uv-has-active-reqs-req-loop-failed/68564/4 "2022-12-03T17:42:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
