Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-172

ADS driver does not shutdown all threads (hangs) after closing connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0, 0.6.0, 0.7.0
    • 0.6.1
    • Driver-ADS
    • None
    • Windows 10
      OpenJDK 11
      Eclipse 2019-12
      Remote PLC running TwinCat 2

    Description

      I'm starting to use the ADS protocol support of the PLC4X project. I succeeded to read out single values but always struggle with a hanging application process due to remaning threads of nioEventLoopGroup and pool-1:

      Attached are the simple java test method and the trace log.

      I built the library version 0.7.0-SNAPSHOT from source.

      After 30 seconds warnings get logged regarding timeouts but the thread keep running:

      11:52:03.492 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@c1b47e3} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 101966500 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@353dfda9)
      11:52:08.791 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@3220d517} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 9469900 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@3fc596d9)
       

      Attachments

        1. image-2020-02-04-11-58-40-364.png
          4 kB
          Jens Vagts
        2. Plc4xAdsTestInitial.java
          2 kB
          Jens Vagts
        3. trace.log
          30 kB
          Jens Vagts

        Activity

          People

            jfeinauer Julian Feinauer
            vagtsi Jens Vagts
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: