Too many open files

Issue #3 new
Former user created an issue

I am using the pypruss to execute a lot of files on the PRU, when I run my code in a loop, it crashes after about 500 cycles, the code that keeps repeating is

    pypruss.init()  # Init the PRU
    pypruss.open(interrupt)  # Open PRU  PRU1_ARM_INTERRUPT
    pypruss.pruintc_init()  # Init the interrupt controller
    pypruss.exec_program(PRU, binFile)
    pypruss.wait_for_event(interrupt) 
    pypruss.clear_event(interrupt)  # Clear the event
    pypruss.exit()

no I get this error "[Errno 24] Too many open files" I have a feeling that its pypruss that is not closing file pointers properly, because I ran only this bit in a loop and surely after a while the problem came, and I didnt even open any file manually Any idea why?

Comments (0)

  1. Log in to comment