GUI crashes with freePtr when stepping through code on Windows 8
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Iniziate riproducendo il crash mentre eseguite il codice passo passo su Windows 8, quindi tracciate il modo in cui il debugger invoca MainWindow.on_stack e MainWindow.on_line in relazione al ciclo degli eventi Tk. Esaminate il flusso debugger_update proposto basato su Queue e verificate che l’esecuzione passo passo termini senza l’errore TclStackFree.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When playing with testing bugjar on Windows 8 I discovered that the UI component will consistenly crash with the following error on the console.
TclStackFree: incorrect freePtr. Call out of sequence?
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Based on this link, it seems that this error is caused by more than one thread accessing the tk event loop.
My hypothesis is that the Debugger is invoking callbacks such as MainWindow.on_stack and MainWindow.on_line from the non tk event thread.
Below is an attempt to rectify this situation using the python Queue object.
class MainWindow(object):
def __init__(self, root, debugger):
# <snip>------------
self.queue = Queue.Queue()
self.root.after(200, self.debugger_update)
debugger.start()
def debugger_update(self):
try:
while 1:
func_name, args = self.queue.get_nowait()
handler = getattr(self, func_name)
handler(*args)
except Queue.Empty:
pass
self.root.after(100, self.debugger_update)
# <snip>------------
def on_stack(self, stack):
self.queue.put(('_on_stack', (stack,),))
def _on_stack(self, stack):
# <snip>------------
Using the above setup, I have found that I am able to step through the code without encountering the same freePtr issue.
- Lingua principale
- Python
- Stelle
- 256
- Fork
- 35
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di beeware/bugjar
-
bugjar errorAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
DistributionNotFoundAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
Tutte le issue di beeware/bugjar
Issue simili
-
bug P1
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Toloka/tolokaforge#1947 ·
I maintainer di solito rispondono entro 1 giorno
-
SageMaker provider: streaming fails with NoStreamDataError on DJL Serving (LMI) endpointsForse già presa @balajiaru l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
UKGovernmentBEIS/inspect_ai#6127 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
pydot/pydot#601 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
letsencrypt/cp-cps#361 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100