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

Port related issue (IDFGH-14333) #15123

Closed
3 tasks done
Manasabalakrishna opened this issue Jan 2, 2025 · 6 comments
Closed
3 tasks done

Port related issue (IDFGH-14333) #15123

Manasabalakrishna opened this issue Jan 2, 2025 · 6 comments
Assignees
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally

Comments

@Manasabalakrishna
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

image
port is used by otjer task
ninja failed with exit code 1, output of the command is in the C:\Users\ManasaJB\hello_world\build\log\idf_py_stderr_output_22332 and C:\Users\Manasa

1.if i stop the terminal and again rerun the code its showing termianl closed
2.if i run the code 2 times again out put showing port is not availbke
3.each time i got stuck like this even if i remove port and close ide it doesnot works i need to compleetely turn off my pc then it willl work and again after 2 times it will gte stuck

steps took to resolve downgarde trhe version and confirm that port is not being used in any other task .

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 2, 2025
@github-actions github-actions bot changed the title Port related issue Port related issue (IDFGH-14333) Jan 2, 2025
@KonstantinKondrashov
Copy link
Collaborator

Hi @Manasabalakrishna!
It seems the COM port is not being released properly when you close the terminal. Always properly close the terminal or stop the idf monitor before closing the terminal or IDE.

  • Before closing the terminal, ensure you stop the connection (e.g., Ctrl+] in idf.py monitor).
  • If stuck, open Task Manager (Ctrl+Shift+Esc), find any process using the port (e.g., Python or terminal emulator), and end it.
  • If the port still doesn’t work, unplug and replug the device.

If does not help please provide more information on what IDE you use, what esp-idf version, OS, etc.

@Manasabalakrishna
Copy link
Author

Thanks @KonstantinKondrashov
**Each time when port got stuck **
open Task Manager > Details> see for Python.exe
end the python .exe task ,and this is working fine for me.

@peterdragun
Copy link
Collaborator

Hi @Manasabalakrishna, can you please confirm that this does not happen if you close the IDF Monitor properly before closing the terminal (with CTRL+]), as Konstantin suggested in the previous reply?

@Manasabalakrishna
Copy link
Author

Manasabalakrishna commented Jan 7, 2025 via email

@peterdragun
Copy link
Collaborator

I am sorry but I was not able to reproduce the issue. Can you please provide some more information? Based on the screenshot I assume you are using Windows 11. How are you executing IDF Monitor and esptool? are you using some IDE (integrated terminal or buttons in IDE)? If you are using IDE, can you reproduce the same issue if you don't use the IDE but rather Powershell or the command line directly? Thank you

My setup: Win11, both command line and PowerShell work even if I don't close the Monitor before closing the terminal. The only way I can reproduce this is when I keep the monitor running in one window and try to connect to the same chip from another window, which is expected behavior.

@dobairoland
Copy link
Collaborator

I'm closing this for inactivity. We can reopen it if there is more information to work with.

@dobairoland dobairoland closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Cannot Reproduce Issue cannot be reproduced and removed Status: Opened Issue is new labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants