Skip to content

Conversation

mmajchrzycki
Copy link
Contributor

@mmajchrzycki mmajchrzycki commented Sep 29, 2025

When an EIM or any underlying components (libraries, external SDKs, etc.) are dumping excessive logs into stdout or stderr, the classification may hang unexpectedly. The issue doesn't exist when the runner is initialized with the debug option:

model_info = runner.init(debug=True)

The solution seems to be to redirect the stdout/stderr to devnull if the debug option is not being used (currently they are attached to PIPE).
Also, this PR adds a timeout for the IPC communication with EIM , so the classification script will crash if there is no response from EIM within 5 seconds (can be set to longer in runner init.

Fixes edgeimpulse/edgeimpulse#13967

@mmajchrzycki mmajchrzycki self-assigned this Sep 29, 2025
@jimbruges
Copy link

This fixed the issue on my Rubik Pi running QNN

@mmajchrzycki mmajchrzycki merged commit 1941ec0 into master Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants