Page MenuHomePhabricator

Unable to reactivate video device after deactivation in Ultrasound Support
Closed, WontfixPublic

Description

Steps to reproduce:

  • Plug-in video device (e.g. USB webcam)
  • Open Ultrasound Support view
  • Add new video device
  • Click 'Activate'

--> Webcam image is shown in render window

  • Click 'Deactivate'
  • Click 'Activate' again

--> Message shown 'Could not activate device. Check logging for details.'

Event Timeline

eisenman created this task.

After first activation, the logger always shows following error:
ServiceRegistrationBase object invalid

Sometimes also an exception is logged:
PLUGIN_ERROR #34 ("[...]/MITK-build/lib/plugins/liborg_mitk_gui_qt_ultrasound.so") exception: "ctkRuntimeException: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)"

The described error does not occur on a Win32 bit build, however, the mentioned error messages are logged there as well.

eisenman moved this task from Wishlist to In Progress on the IGT board.

I just checked with MITK release tag v2016.11. The device cannot be activated again.

The logger shows no error - just the following warning when trying to reactive the device:
"Could not activate us video device. Check if video grabber is configured correctly."

The error "ServiceRegistrationBase object invalid" was solved in T24505.

I installed Video 4 Linux (V4L) as backend on my system (Ubuntu 15.04) and rebuild OpenCV. Now the video device can be reactivated! Note that backends are available only if they have been built with OpenCV binaries.