Basler pylon .NET API / pylon Viewer / Camera auto disconnects when starting Continous Shot
Hi,
I'm getting this error when I start Continuous Shot in pylon Viewer:
Exception caught while executing acquisition stop, msg='Control channel not open. : LogicalErrorException thrown (file 'gxport.cpp', line 110)'
I'm testing this with 2 computers, a Windows 10 x64 PC (development machine) and a Windows 10 x64 Tablet (rugged, production system), and the error happens ONLY in the tablet.
The camera and the PC are connected with cable at a switch, and tablet via Wi-Fi.
SDK version: 6.1.1.19832 Camera model: acA1300-60gc
Using script StartPylonViewerWithLogging.cmd
from SDK, I've got this pylonLog.txt excerpt:
[2021-03-12 09:54:11,540:pylon.base] NOTICE: Initializing Pylon version 6.1.1.18345 (64 bit) on Windows 10 Pro, 64-Bit (10.0.19041). processID = 8528; threadID = 9636
[2021-03-12 09:54:11,543:pylon.base] NOTICE: >>> Dumping current environment:
[...]
[2021-03-12 09:54:11,545:pylon.base] NOTICE: <<< End of environment dump
[2021-03-12 09:54:11,545:pylon.base] NOTICE: Executable: 'C:\Program Files\Basler\pylon 6\Applications\x64\bin\pylonviewer.exe' ProcID: 8528 ThreadID: 9636
[2021-03-12 09:54:11,545:pylon.base] NOTICE: PylonBase: 'C:\Program Files\Basler\pylon 6\Runtime\x64\PylonBase_v6_1.dll'
[2021-03-12 09:54:11,545:pylon.base] NOTICE: Current Dir: 'C:\Program Files\Basler\pylon 6\Applications\x64\bin'
[2021-03-12 09:54:11,557:pylon.utility.LibavAdapter] INFO: Loading libav libraries C:\Program Files\Basler\pylon 6\Runtime\x64
[2021-03-12 09:54:11,557:pylon.utility.VideoWriter] WARN: VideoWriter could not find files from Supplementary Package for MPEG-4.
[2021-03-12 09:54:12,019:pylon.base.TlFactory] NOTICE: Trying to load TL lib 'C:\Program Files\Basler\pylon 6\Runtime\x64\PylonCamEmu_v6_1_TL.dll'
[2021-03-12 09:54:12,021:pylon.base.TlFactory] NOTICE: Trying to load TL lib 'C:\Program Files\Basler\pylon 6\Runtime\x64\PylonGigE_v6_1_TL.dll'
[2021-03-12 09:54:12,142:Pylon.GigE.TL] DEBUG: Adding discovered device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' discovered on interface '192.168.0.22'
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationRegistered, cookie=0000020927DB61D8
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnImageEventHandlerRegistered, cookie=0000020927CD5FE8
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Clearing configuration event handler registry.
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationDeregistered, cookie=0000020927DB61D8
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationRegistered, cookie=0000020927CD5FF8
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnImageEventHandlerRegistered, cookie=0000020927AC3898
[2021-03-12 09:54:12,292:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationRegistered, cookie=0000020927AC38A8
[2021-03-12 09:54:12,297:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnConfigurationRegistered, cookie=0000020927D94478
[2021-03-12 09:54:12,297:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnImageEventHandlerRegistered, cookie=0000020927CD70E8
[2021-03-12 09:54:12,297:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: Clearing configuration event handler registry.
[2021-03-12 09:54:12,298:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnConfigurationDeregistered, cookie=0000020927D94478
[2021-03-12 09:54:12,298:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnConfigurationRegistered, cookie=0000020927CD70F8
[2021-03-12 09:54:12,298:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnImageEventHandlerRegistered, cookie=0000020927AC3E98
[2021-03-12 09:54:12,298:pylon.base.InstantCamera] NOTICE: Camera 0000020927D012C0: OnConfigurationRegistered, cookie=0000020927AC3EA8
[2021-03-12 09:54:18,011:Pylon.GigE.Stream] INFO: Socket driver is available
[2021-03-12 09:54:18,013:Pylon.GigE.Stream] INFO: Filter driver is available
[2021-03-12 09:54:18,014:Pylon.GigE.TL] INFO: Download the XML configuration file from 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'
[2021-03-12 09:54:18,225:pylon.base.TL] INFO: Downloaded XML from device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' length 71472
[2021-03-12 09:54:18,271:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnAttach
[2021-03-12 09:54:18,272:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Device 00000208A1558CC8 attached, name=Basler acA1300-60gc#00305334F661#192.168.0.15:3956, cleanupProcedure=1
[2021-03-12 09:54:18,272:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnAttached
[2021-03-12 09:54:18,273:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnOpen
[2021-03-12 09:54:18,273:Pylon.GigE.Device] NOTICE: Opening camera 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'; Privileges: 2; IP: 192.168.0.15; IF: 192.168.0.22
[2021-03-12 09:54:18,285:Pylon.GigE.Device] NOTICE: Device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' opened successfully.
[2021-03-12 09:54:18,285:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Device removal forwarding thread started
[2021-03-12 09:54:18,314:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnOpened
[2021-03-12 09:54:22,196:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnGrabStart
[2021-03-12 09:54:22,196:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Start grabbing with strategy=0 buffers=10, queued=10, results=10, chunks=0, chunknm=1, events=1, priority=15, use_bt=1, emptyBuf=1
[2021-03-12 09:54:22,198:Pylon.GigE.Stream] NOTICE: Opening stream grabber index 0 for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'
[2021-03-12 09:54:22,200:Pylon.GigE.Stream] NOTICE: Opened stream grabber index 0 using WindowsFilterDriver, for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' successfully.
[2021-03-12 09:54:22,201:Pylon.GigE.Stream] INFO: Using Filter-Driver for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'
[2021-03-12 09:54:22,661:Pylon.GigE.TL] DEBUG: Adding discovered device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' discovered on interface '192.168.0.22'
[2021-03-12 09:54:23,331:Pylon.GigE.Stream] INFO: Prepared grab successfully for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:23,371:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab engine thread started
[2021-03-12 09:54:23,372:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab engine thread set thread priority=15, id=1688
[2021-03-12 09:54:23,379:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnGrabStarted
[2021-03-12 09:54:23,379:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab loop thread started
[2021-03-12 09:54:23,385:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab loop thread RetrieveResult timeout=4294967295
[2021-03-12 09:54:23,385:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab loop thread set thread priority=15, id=7916
[2021-03-12 09:54:25,026:Pylon.GigE.Device] NOTICE: Device removal for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,030:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnCameraDeviceRemoved
[2021-03-12 09:54:25,030:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnGrabStop
[2021-03-12 09:54:25,038:pylon.base.InstantCamera] ERROR: Exception caught while executing acquisition stop, msg='Control channel not open. : LogicalErrorException thrown (file 'gxport.cpp', line 110)'
[2021-03-12 09:54:25,039:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab engine thread stopped
[2021-03-12 09:54:25,039:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab engine thread joined
[2021-03-12 09:54:25,055:Pylon.GigE.Stream] INFO: Finishing grab for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: Grab statistics for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' (00000208A155DD80).
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Total_Buffer_Count 10
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Buffer_Underrun_Count 0
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Failed_Buffer_Count 0
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Total_Packet_Count 6
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Resend_Request_Count 0
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Resend_Packet_Count 0
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: (00000208A155DD80) Statistic_Failed_Packet_Count 0
[2021-03-12 09:54:25,056:Pylon.GigE.Stream] INFO: End of grab statistics for (00000208A155DD80).
[2021-03-12 09:54:25,065:Pylon.GigE.Stream] INFO: Finished grab successfully for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,065:Pylon.GigE.Stream] INFO: Closing stream grabber for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,066:Pylon.GigE.Stream] INFO: Closed stream grabber successfully for 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,066:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnGrabStopped
[2021-03-12 09:54:25,067:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab loop thread stopped
[2021-03-12 09:54:25,067:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnClose
[2021-03-12 09:54:25,067:Pylon.GigE.Device] NOTICE: Closing device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,068:Pylon.GigE.Device] NOTICE: Device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' closed successfully.
[2021-03-12 09:54:25,068:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnClosed
[2021-03-12 09:54:25,068:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnDestroy
[2021-03-12 09:54:25,068:Pylon.GigE.Device] NOTICE: Closing device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956'.
[2021-03-12 09:54:25,069:Pylon.GigE.Device] NOTICE: Device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' closed successfully.
[2021-03-12 09:54:25,078:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnDestroyed
[2021-03-12 09:54:25,094:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Destroying CInstantCamera
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Grab loop thread joined
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Device removal forwarding thread stopped
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Device removal forwarding thread joined
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Clearing configuration event handler registry.
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationDeregistered, cookie=0000020927CD5FF8
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnConfigurationDeregistered, cookie=0000020927AC38A8
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: Clearing image event handler registry.
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnImageEventHandlerDeregistered, cookie=0000020927CD5FE8
[2021-03-12 09:54:25,095:pylon.base.InstantCamera] NOTICE: Camera 0000020927D00B40: OnImageEventHandlerDeregistered, cookie=0000020927AC3898
[2021-03-12 09:54:31,673:Pylon.GigE.TL] DEBUG: Adding discovered device 'Basler acA1300-60gc#00305334F661#192.168.0.15:3956' discovered on interface '192.168.0.22'
[2021-03-12 09:54:31,816:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnConfigurationRegistered, cookie=0000020927DB61D8
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnImageEventHandlerRegistered, cookie=0000020924175018
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: Clearing configuration event handler registry.
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnConfigurationDeregistered, cookie=0000020927DB61D8
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnConfigurationRegistered, cookie=0000020924175028
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnImageEventHandlerRegistered, cookie=00000209241A7E18
[2021-03-12 09:54:31,817:pylon.base.InstantCamera] NOTICE: Camera 0000020927A6D2D0: OnConfigurationRegistered, cookie=00000209241A7E28