Closed zixzix closed 3 years ago
Do you mind trying with 1.2.1 - it included some fixes in this area
Hello @mattjlewis , as specified in the "test environment section" all tests were performed with version 1.2.1 of diozero
Sorry - missed that! Will take a look this weekend.
I think I've reproduced scenarios 1-3 with this test app: https://github.com/mattjlewis/diozero/blob/main/diozero-sampleapps/src/main/java/com/diozero/sampleapps/ShutdownRestartTest.java Scenario 4 might be TinkerBoard specific, will check later. I'll commit and push as 1.2.2 this weekend after further tests.
Could you retry with 1.2.2 please.
Assume fixed.
[...] I will do more tests asap [...] Originally posted by @zixzix in https://github.com/mattjlewis/diozero/issues/69#issuecomment-819760978
After many tests I noticed some strange behaviors that I report here in detail
Test Environment
Java code for init DigitalInputDevice
Java code for init DigitalOutputDevice
Java code for close Pin
Java code for shutdown
Scenario 1 (diozero.gpio.chardev=false) First init of new DigitalInputDevice works fine. First init of new DigitalOutputDevice works fine.
After close all initialized pins and call shutdown method
Second init of new DigitalInputDevice fails with following error:
Second init of new DigitalOutputDevice fails with following error:
Scenario 2 (diozero.gpio.chardev=false) First init of new DigitalInputDevice works fine. First init of new DigitalOutputDevice works fine.
After close all initialized pins and without call shutdown method
Second init of new DigitalOutputDevice works fine Second init of new DigitalInputDevice give me the following warn but works:
Scenario 3 (diozero.gpio.chardev=true) First init of new DigitalOutputDevice works fine. First init of new DigitalInputDevice fails with following error:
After close all initialized pins and call shutdown method
Second init of new DigitalInputDevice fails with following error:
Second init of new DigitalOutputDevice fails with following error:
Scenario 4 (diozero.gpio.chardev=true) First init of new DigitalOutputDevice works fine. First init of new DigitalInputDevice fails with following error:
After close all initialized pins and without call shutdown method Second init of new DigitalOutputDevice works fine. Second init of new DigitalInputDevice fails with following error:
I am available to provide further data and tests Thank you