BLE: close() can self-join the event-loop thread on disconnect
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 68/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- python
- Domínio
- mobile-dev
Direção de pesquisa
Start by reading the close() and disconnect() paths in Bleak, especially where _eventThread.join(...) is called and where the disconnect callback runs. Reproduce the unsolicited-disconnect path on Linux with Python 3.14, then add a regression test that exercises cleanup from the event-loop thread. Done means the current thread is never joined, self.client is cleared, and _disconnected() runs.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
On an unsolicited disconnect, bleak calls the disconnect callback (set to self.close()) on its own event-loop thread. close() then calls self._eventThread.join(...), i.e. joining the current thread, which raises RuntimeError: cannot join current thread, so cleanup doesn't finish (self.client is left set and _disconnected() never runs).
Pre-existing and separate from the hang fix in #967. A fix probably needs close()/disconnect() to notice when they're running on the event-loop thread and avoid joining/blocking it.
Seen on Linux, Python 3.14, bleak 2.1.1, RAK4631 (platform-independent).
- Linguagem predominante
- Python
- Estrelas
- 855
- Forks
- 355
- Merge médio
- 3d 3h
- PRs com merge (30d)
- 12
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
meshtastic/python#972 ·
Mantenedores costumam responder em até 1 dia
-
Bug: Can't run on TermuxTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshtastic/python#969 ·
Mantenedores costumam responder em até 1 dia
-
good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
meshtastic/python#506 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
meshtastic/python#985 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Undocumented `--set` choicesTalvez já em andamento @Cryptoteep assumiu há 54 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
meshtastic/python#978 · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de meshtastic/python
Issues semelhantes
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Talvez já em andamento @gouyu-hou assumiu hoje. Abertatriage/confirmed
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
agentscope-ai/agentscope#4397 ·
Mantenedores costumam responder em até 2 dias
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
NousResearch/hermes-agent#161712 ·
Mantenedores costumam responder em até 1 dia
-
[New Check]: postgresql_flexible_server_public_network_access_disabledTalvez já em andamento @pouria-l assumiu hoje. Abertafeature-request status/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
prowler-cloud/prowler#13615 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SACGF/variantgrid#2941 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
linkedin/Liger-Kernel#1730 ·
Mantenedores costumam responder em até 3 dias