Hello,
I think I found a bug in the _thread module the other day.
I think I should report this. Is there a procedure to follow? Would someone send me some pointers?
thanks
a-ha
How to file/report a bug
Re: How to file/report a bug
You can post it here and we can discuss it to see if it's really a bug, or perhaps just a misuse or misunderstanding.
If you're sure it really is a bug, then you create a github issue.
If you're sure it really is a bug, then you create a github issue.
Re: How to file/report a bug
The issue does not exist with serial repl. Only with webrepl you can reproduce the issue.
So this is an issue with webrepl, not _thread.
Here is the repro steps:
--
import _thread
def foo(a, b):
for i in range(a, b):
print(i)
def bar():
_thread.start_new_thread(foo, (1, 1000))
_thread.start_new_thread(foo, (2000, 2100))
--
Running bar() within webrepl session will get you disconnected.
So this is an issue with webrepl, not _thread.
Here is the repro steps:
--
import _thread
def foo(a, b):
for i in range(a, b):
print(i)
def bar():
_thread.start_new_thread(foo, (1, 1000))
_thread.start_new_thread(foo, (2000, 2100))
--
Running bar() within webrepl session will get you disconnected.
Re: How to file/report a bug
What board are you running on?
What version of MicroPython are you using?
What version of MicroPython are you using?
Re: How to file/report a bug
I am using the version of upython released on 6/30/2020 on the esp32.
esp32-idf3-20200630-unstable-v1.12-597-gcb9aafbf8.bin.
I also tried it on the current stable build with the same results.
esp32-idf3-20191220-v1.12.bin.
esp32-idf3-20200630-unstable-v1.12-597-gcb9aafbf8.bin.
I also tried it on the current stable build with the same results.
esp32-idf3-20191220-v1.12.bin.