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

Errors in pypanda shutdown with multiple SIGINTs #1345

Closed
AndrewFasano opened this issue Aug 30, 2023 · 0 comments · Fixed by #1358
Closed

Errors in pypanda shutdown with multiple SIGINTs #1345

AndrewFasano opened this issue Aug 30, 2023 · 0 comments · Fixed by #1358

Comments

@AndrewFasano
Copy link
Member

If we go to terminate PyPANDA using ctrl-c (sending SIGINT), we'll get the following error. Should probably add a lock somewhere or a check to avoid starting our shutdown logic twice.

Exception ignored from cffi callback <function Panda._setup_internal_signal_handler.<locals>.SigHandler at 0x7efe6efb79d0>:                                                                                                        
Traceback (most recent call last):                                                                                                                                                                                                 
  File "/usr/local/lib/python3.8/dist-packages/pandare/panda.py", line 446, in SigHandler                                                                                                                                          
    self.end_analysis()                                                                                                                                                                                                            
  File "/usr/local/lib/python3.8/dist-packages/pandare/panda.py", line 535, in end_analysis                                                                                                                                        
    self.unload_plugins()                                                                                                                                                                                                          
  File "/usr/local/lib/python3.8/dist-packages/pandare/panda.py", line 733, in unload_plugins                                                                                                                                      
    self.pyplugins.unload_all()                                                                                                                                                                                                    
  File "/usr/local/lib/python3.8/dist-packages/pandare/pypluginmanager.py", line 264, in unload_all                                                                                                                                
    for name in self.plugins.keys():                                                                                                                                                                                               
RuntimeError: dictionary changed size during iteration      
@AndrewFasano AndrewFasano changed the title Errors during pypanda shutdown multiple SIGINT signals Errors in pypanda shutdown with multiple SIGINTs Aug 30, 2023
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 a pull request may close this issue.

1 participant