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

Make sure to properly disconnect camera (Allied Vision) #19

Open
AZehrer opened this issue Oct 20, 2022 · 0 comments
Open

Make sure to properly disconnect camera (Allied Vision) #19

AZehrer opened this issue Oct 20, 2022 · 0 comments

Comments

@AZehrer
Copy link
Collaborator

AZehrer commented Oct 20, 2022

c:\users\ando\documents\imswitch_dev\imswitch\imcommon\view\guitools\naparitools.py:103: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.5.0. It is considered an "implementation detail" of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
  napariViewer.window.qt_viewer.dockLayerList.show()
c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\view\widgets\ImageWidget.py:94: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.5.0. It is considered an "implementation detail" of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
  canvas=self.napariViewer.window.qt_viewer.canvas,
c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\view\widgets\ImageWidget.py:95: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.5.0. It is considered an "implementation detail" of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
  view=self.napariViewer.window.qt_viewer.view,
c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\view\widgets\ImageWidget.py:96: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.5.0. It is considered an "implementation detail" of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
  parent=self.napariViewer.window.qt_viewer.view.scene,
2022-10-20 11:07:29 DEBUG [ImConMainController] Initializing
2022-10-20 11:07:31 DEBUG [ImConMainController] Started server with URI -> PYRO:ImSwitchServer@:::54333
Object <imswitch.imcontrol.controller.server.ImSwitchServer.ImSwitchServer object at 0x000001F8D1405D30>:
    uri = PYRO:ImSwitchServer@[::]:54333
Pyro daemon running.
2022-10-20 11:07:31 DEBUG [ESP32Manager -> ESP32] COM3
2022-10-20 11:07:33 DEBUG [ESP32Manager -> ESP32] Trying out port COM3 failed
2022-10-20 11:07:33 ERROR [ESP32Manager -> ESP32] name 'serialdevice' is not defined
2022-10-20 11:07:33 DEBUG [ESP32Manager -> ESP32] COM4
2022-10-20 11:07:38 DEBUG [ESP32Manager -> ESP32] Trying out port COM4 failed
2022-10-20 11:07:38 ERROR [ESP32Manager -> ESP32] could not open port 'COM4': OSError(22, 'The semaphore timeout period has expired.', None, 121)
2022-10-20 11:07:38 DEBUG [ESP32Manager -> ESP32] No USB device connected! Using DUMMY!
2022-10-20 11:07:38 DEBUG [ESP32Manager -> ESP32] COM3
2022-10-20 11:07:40 DEBUG [ESP32Manager -> ESP32] Trying out port COM3 failed
2022-10-20 11:07:40 ERROR [ESP32Manager -> ESP32] name 'serialdevice' is not defined
2022-10-20 11:07:40 DEBUG [ESP32Manager -> ESP32] COM4
2022-10-20 11:07:45 DEBUG [ESP32Manager -> ESP32] Trying out port COM4 failed
2022-10-20 11:07:45 ERROR [ESP32Manager -> ESP32] could not open port 'COM4': OSError(22, 'The semaphore timeout period has expired.', None, 121)
2022-10-20 11:07:45 DEBUG [ESP32Manager -> ESP32] No USB device connected! Using DUMMY!
2022-10-20 11:07:46 DEBUG [AVManager -> WidefieldCamera] Trying to initialize Allied Vision camera 1
2022-10-20 11:07:47 DEBUG [AVManager -> WidefieldCamera] camera connected
2022-10-20 11:07:47 INFO [AVManager -> WidefieldCamera] Initialized camera, model: AVCamera
2022-10-20 11:07:47 WARNING [AVManager -> WidefieldCamera] Property image_width does not exist
2022-10-20 11:07:47 WARNING [AVManager -> WidefieldCamera] Property image_height does not exist
2022-10-20 11:07:47 ERROR [AVManager -> WidefieldCamera] Other error.
2022-10-20 11:07:47 ERROR [AVManager -> WidefieldCamera] PixelFormat
2022-10-20 11:07:47 DEBUG [AVManager -> WidefieldCamera] Value not available?
10-20-2022 11:07:48.041 [T] cCameraActor - failed to setup features
2022-10-20 11:07:48 DEBUG [AVManager -> WidefieldCamera] A multiple registers read or write was partially completed.
2022-10-20 11:07:48 DEBUG [ImConMainController] Shutting down
2022-10-20 11:07:48 ERROR [ExceptionHandler] Traceback (most recent call last):
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\__init__.py", line 54, in getMainViewAndController
    controller = ImConMainController(options, setupInfo, view, moduleCommChannel)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\controller\ImConMainController.py", line 37, in __init__
    self.__masterController = MasterController(self.__setupInfo, self.__commChannel,
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\controller\MasterController.py", line 26, in __init__
    self.detectorsManager = DetectorsManager(self.__setupInfo.detectors, updatePeriod=100,
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\DetectorsManager.py", line 21, in __init__
    MultiManager.__init__(self, detectorInfos, 'detectors', **lowLevelManagers)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\MultiManager.py", line 26, in __init__
    self._subManagers[managedDeviceName] = manager(
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\detectors\AVManager.py", line 29, in __init__
    self._camera.setPropertyValue(propertyName, propertyValue)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\interfaces\avcamera.py", line 202, in setPropertyValue
    self.start_live()
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\interfaces\avcamera.py", line 60, in start_live
    self.camera.start_frame_acquisition()
  File "C:\Users\Ando\Anaconda3\envs\imswitch39\lib\site-packages\pymba\camera.py", line 241, in start_frame_acquisition
    raise VimbaException(VimbaException.ERR_INVALID_CAMERA_MODE)
pymba.vimba_exception.VimbaException: Invalid camera mode for the requested operation.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\controller\ImConMainController.py", line 140, in closeEvent
    self.__factory.closeAllCreatedControllers()
AttributeError: 'ImConMainController' object has no attribute '_ImConMainController__factory'

2022-10-20 11:07:48 ERROR [main] Failed to initialize module imcontrol
2022-10-20 11:07:48 ERROR [main] Traceback (most recent call last):
  File "c:\Users\Ando\Documents\ImSwitch_dev\imswitch\__main__.py", line 58, in main
    view, controller = modulePkg.getMainViewAndController(
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\__init__.py", line 57, in getMainViewAndController
    raise e
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\__init__.py", line 54, in getMainViewAndController
    controller = ImConMainController(options, setupInfo, view, moduleCommChannel)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\controller\ImConMainController.py", line 37, in __init__
    self.__masterController = MasterController(self.__setupInfo, self.__commChannel,
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\controller\MasterController.py", line 26, in __init__
    self.detectorsManager = DetectorsManager(self.__setupInfo.detectors, updatePeriod=100,
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\DetectorsManager.py", line 21, in __init__
    MultiManager.__init__(self, detectorInfos, 'detectors', **lowLevelManagers)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\MultiManager.py", line 26, in __init__
    self._subManagers[managedDeviceName] = manager(
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\managers\detectors\AVManager.py", line 29, in __init__
    self._camera.setPropertyValue(propertyName, propertyValue)
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\interfaces\avcamera.py", line 202, in setPropertyValue
    self.start_live()
  File "c:\users\ando\documents\imswitch_dev\imswitch\imcontrol\model\interfaces\avcamera.py", line 60, in start_live
    self.camera.start_frame_acquisition()
  File "C:\Users\Ando\Anaconda3\envs\imswitch39\lib\site-packages\pymba\camera.py", line 241, in start_frame_acquisition
    raise VimbaException(VimbaException.ERR_INVALID_CAMERA_MODE)
pymba.vimba_exception.VimbaException: Invalid camera mode for the requested operation.
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

No branches or pull requests

1 participant