Error while installing cvb on WSL Ubuntu 20.04

I receive the message

Failed to retrieve/decode the log configuration for module GEVSVC: Failed to connect to the shared memory with connection info: No such file or directory

*****************************************************************
                  (c) 2015 STEMMER IMAGING GmbH
*****************************************************************

STEMMER IMAGING Logging Service Application
BuildDate : May 26 2021

when I install cvb 13.04.003 on my WSL.

Do you have an idea what went wrong here and how I could solve this?

That particular warning about the log configuration hints at the siLogSvc daemon not running (yet) when the application (in this case the sigevsvc daemon) started. This should not really hamper operation of the siGevSvc, it means, however, that the siGevSvc will be unable to emit log messages to :cvb:'s log viewer.

Okay, then do you have a solution for me on how to fix the problem. I suspect that this problem is preventing the GEV server from starting. Because when trying to start a GEV server the following error messages come up.

Failed to retrieve/decode the log configuration for module BaseDLO: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module CoreDLO: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module CVGevServer: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module GEVSD: Failed to connect to the shared memory with connection info: No such file or directory
terminate called after throwing an instance of 'std::domain_error'
  what():  failed to register updated handler

Hi @ASchmitt,

Just to make things a bit clearer. WSL is a bit more reluctant to start services (not the same runlevels as a default linux system or none).
The “Failed to re…” messages can be removed by explicitly start/execute “sudo service siLogSvc restart” and “sudo service siGevSvc restart” “sudo service cvmgmtd restart” should start the rest of the services.

The error you provided does not really say much, could you send a backtrace? Or an info where this exception originates from?

And WSL1 and WSL2 will be quite different due to the network setup of WSL2. WSL2 will be much harder to “bludgeon” into a working Gev setup.
Even for the GevServer. Which one are you using?

(Just as a note, since both the gev service and the gev server are mentioned, we have to be careful about nomenclature here)

Hi @c.hartmann,
I am running the WSL2.
I don`t know, how I can get the backtrace with cvb. Can you tell me, where I can find the log?
The exception happens, when I try to run code like this:

// Create server
gev_server = Cvb::GevServer::Server::CreateWithConstSize(image->Size(),
	Cvb::ColorModel::RGBGuess,
	Cvb::DataType::FromNativeType<bool>(),
	static_cast<Cvb::GevServer::DriverType>(0));

// Set the resent-buffer to zero, as no ring-buffer is used and the images and packets that were lost during the transmission process cannot be requested again
gev_server->Stream()->SetResendBuffersCount(0);

//*** Send the image ***
gev_server->Stream()->TrySend(*image);

After using the restarting commands you have posted and staring the GEV Server again, I will get the following error message:

terminate called after throwing an instance of 'std::domain_error'
  what():  failed to register updated handler
Aborted

I have now also tried it with WSL1 and the cvb version 13.04.000.
The procedure was as follows:

  1. install the WSL1 Ubuntu20.04
  2. run “sudo apt update” and “sudo apt upgrade”.
  3. install the build essentials with " sudo apt-get install -y build-essential".
  4. install cmake with “sudo apt install cmake”.
  5. install cvb with “sudo sh install_cvb.sh”.
    → after installing cvb for the first time the following errors appear
Installing Codemeter package
Selecting previously unselected package codemeter.
(Reading database ... 40709 files and directories currently installed.)
Preparing to unpack .../codemeter_7.21.4611.501_amd64.deb ...
Unpacking codemeter (7.21.4611.501) ...
dpkg: dependency problems prevent configuration of codemeter:
 codemeter depends on libxcb-icccm4 (>= 0.4.1); however:
  Package libxcb-icccm4 is not installed.
 codemeter depends on libxcb-image0 (>= 0.2.1); however:
  Package libxcb-image0 is not installed.
 codemeter depends on libxcb-keysyms1 (>= 0.4.0); however:
  Package libxcb-keysyms1 is not installed.
 codemeter depends on libxcb-render-util0; however:
  Package libxcb-render-util0 is not installed.
 codemeter depends on libxcb-render0; however:
  Package libxcb-render0 is not installed.
 codemeter depends on libxcb-xinerama0; however:
  Package libxcb-xinerama0 is not installed.
 codemeter depends on libxcb-xkb1; however:
  Package libxcb-xkb1 is not installed.
 codemeter depends on libxkbcommon-x11-0 (>= 0.5.0); however:
  Package libxkbcommon-x11-0 is not installed.
 codemeter depends on libxkbcommon0 (>= 0.5.0); however:
  Package libxkbcommon0 is not installed.

dpkg: error processing package codemeter (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 codemeter
Selecting previously unselected package cvb-camerasuite.
dpkg: regarding .../cvb-camerasuite-13.04.003-ubu2004-x86_64.deb containing cvb-camerasuite, pre-dependency problem:
 cvb-camerasuite pre-depends on codemeter (>= 5.22.1504.500)
  codemeter is unpacked, but has never been configured.

dpkg: error processing archive /mnt/c/Users/aSchmitt/Documents/Emulation/cvbinst/cvb-camerasuite-13.04.003-ubu2004-x86_64.deb (--install):
 pre-dependency problem - not installing cvb-camerasuite
Selecting previously unselected package cvb-camerasuite-dev.
(Reading database ... 41783 files and directories currently installed.)
Preparing to unpack .../cvb-camerasuite-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-camerasuite-dev:
 cvb-camerasuite-dev depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-camerasuite-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 /mnt/c/Users/aSchmitt/Documents/Emulation/cvbinst/cvb-camerasuite-13.04.003-ubu2004-x86_64.deb
 cvb-camerasuite-dev
Selecting previously unselected package cvb-foundation.
(Reading database ... 42450 files and directories currently installed.)
Preparing to unpack .../cvb-foundation-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation (13.04.003) ...
Selecting previously unselected package cvb-foundation-dev.
Preparing to unpack .../cvb-foundation-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-foundation:
 cvb-foundation depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-foundation (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cvb-foundation-dev:
 cvb-foundation-dev depends on cvb-camerasuite-dev (= 13.04.003); however:
  Package cvb-camerasuite-dev is not configured yet.

dpkg: error processing package cvb-foundation-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cvb-foundation
 cvb-foundation-dev
Selecting previously unselected package cvb-tools.
(Reading database ... 42532 files and directories currently installed.)
Preparing to unpack .../cvb-tools-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools (13.04.003) ...
Selecting previously unselected package cvb-tools-dev.
Preparing to unpack .../cvb-tools-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-tools:
 cvb-tools depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-tools (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cvb-tools-dev:
 cvb-tools-dev depends on cvb-camerasuite-dev (= 13.04.003); however:
  Package cvb-camerasuite-dev is not configured yet.

dpkg: error processing package cvb-tools-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cvb-tools
 cvb-tools-dev

Reboot required!
  1. machine was restarted
  2. because of the errors cvb was uninstalled with “sudo sh uninstall-cvb.sh”.
  3. machine was restarted
  4. cvb is installed again with "sudo sh install_cvb.sh
    → the following log appears:
Installing Codemeter package
(Reading database ... 41843 files and directories currently installed.)
Preparing to unpack .../codemeter_7.21.4611.501_amd64.deb ...
invoke-rc.d: could not determine current runlevel
 * Stopping CodeMeter WebAdmin codemeter-webadmin                                                                [ OK ]
invoke-rc.d: could not determine current runlevel
 * Stopping CodeMeter Server codemeter                                                                           [ OK ]
Unpacking codemeter (7.21.4611.501) over (7.21.4611.501) ...
Setting up codemeter (7.21.4611.501) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: could not determine current runlevel
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 41843 files and directories currently installed.)
Preparing to unpack .../cvb-camerasuite-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite (13.04.003) ...
Selecting previously unselected package cvb-camerasuite-dev.
Preparing to unpack .../cvb-camerasuite-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite-dev (13.04.003) ...
Setting up cvb-camerasuite (13.04.003) ...
Creating symbolic link from /opt/cvb-13.04.003 to /opt/cvb
Setting CVB services up...
Failed to retrieve/decode the log configuration for module GEVSVC: Failed to connect to the shared memory with connection info: No such file or directory

*****************************************************************
                  (c) 2015 STEMMER IMAGING GmbH
*****************************************************************

STEMMER IMAGING Logging Service Application
BuildDate :     May 26 2021


Enter service
Updating udev rules...
Setting up cvb-camerasuite-dev (13.04.003) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package cvb-foundation.
(Reading database ... 42712 files and directories currently installed.)
Preparing to unpack .../cvb-foundation-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation (13.04.003) ...
Selecting previously unselected package cvb-foundation-dev.
Preparing to unpack .../cvb-foundation-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation-dev (13.04.003) ...
Setting up cvb-foundation (13.04.003) ...
Setting up cvb-foundation-dev (13.04.003) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package cvb-tools.
(Reading database ... 42793 files and directories currently installed.)
Preparing to unpack .../cvb-tools-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools (13.04.003) ...
Selecting previously unselected package cvb-tools-dev.
Preparing to unpack .../cvb-tools-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools-dev (13.04.003) ...
Setting up cvb-tools (13.04.003) ...
Setting up cvb-tools-dev (13.04.003) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

Reboot required!

afaik cvb should not be installed as sudo as the folders will not be accessible during notmal execution

Hi @ASchmitt,

i think your installation is just fine. Simply verify the services are running before use: siLogSvc, siGevSvc and cvmgmtd. Oh and codemeter.

Hi @c.hartmann ,
Thanks for the help, the services run fine after using “sudo service siLogSvc restart”, “sudo service siGevSvc restart” and “sudo service cvmgmtd restart”. But after this I am getting the error message:

Server Could not bind to 169.254.186.244:3956: Unspecified error (System error: #99).
terminate called after throwing an instance of 'cvboost159::exception_detail::clone_impl<cvboost159::exception_detail::error_info_injector<cvboost159::lock_error> >'
  what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)

A few days before everything was fine and the program that starts a GEV server ran without problems in the WSL, I don’t know what could have changed, I also reinstalled the WSL to solve the problem but nothing helped :(.

Hi @ASchmitt,

could you please send a dump to the support? We would then have a look at it.

Yes, I can make an image-file from my WSL and send it to you.

To me this looks like a not-gracefully-handled reaction to a problem that potentially lies somewhere else, triggered by the failing bind call. Can you tell which of the three services terminated here?

Other than that, I agree with @usernv - dump file would be most helpful here.

I have uploaded my exported WSL here: https://we.tl/t-ZlTJajBKpG
You can start the program /root/Vector_Gev, which is a C++ program, that creates a GEV_Server and starts them.

Don’t get me wrong, the program works now, but it throws some messages it shouldn’t.
It is a bit strange.
I will try to reproduce the error consistently.