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

[BUG] Assert when pulling from Tx task in case of several detections #222

Closed
JeromeGalan opened this issue May 13, 2022 · 0 comments · Fixed by #219
Closed

[BUG] Assert when pulling from Tx task in case of several detections #222

JeromeGalan opened this issue May 13, 2022 · 0 comments · Fixed by #219
Assignees
Labels
type bug Something isn't working
Milestone

Comments

@JeromeGalan
Copy link
Member

** Version the bug is detected **
Detected in version : Luos engine rc_2.4.2

Describe the bug
When many detections are made by a Gate, the other node asserts in msg_alloc "MsgAlloc_PullMsgFromTxTask" :
LUOS_ASSERT((tx_tasks_stack_id > 0) && (tx_tasks_stack_id <= MAX_MSG_NB));

Network configuration

  • L0 : Gate + Pipe
  • Nucleo G4 : 15 services GPIO

How to reproduce the bug
Send several detections, it will crash randomly in less dans 30 seconds.

Additional context

  • If we replace the Gpios by a Led (ie there are no more autoupdate), we can make thousands of detections without any trouble.
  • Before the detection that trigs the assert, the Gate sends 2 start_detections in less than 2ms. Most of times, the 2nd start detection is not entirely sent (Tx enable goes to 0) .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants