VimbaPython
VimbaPython copied to clipboard
vmbpy.c_binding.vmb_common.VmbCError: VmbCError(<VmbError.IO: -20>)
When configuration of particular camera file is loaded, i am getting this error: File "/app/camera_configurator.py", line 30, in setup camera.load_settings(settings_file, PersistType.All) File "/opt/venv/lib/python3.10/site-packages/vmbpy/util/context_decorator.py", line 101, in wrapper return func(*args, **kwargs) File "/opt/venv/lib/python3.10/site-packages/vmbpy/util/runtime_type_check.py", line 58, in wrapper return func(*args, **kwargs) File "/opt/venv/lib/python3.10/site-packages/vmbpy/featurecontainer.py", line 207, in load_settings call_vmb_c('VmbSettingsLoad', File "/opt/venv/lib/python3.10/site-packages/vmbpy/util/tracer.py", line 131, in wrapper result = func(*args, **kwargs) File "/opt/venv/lib/python3.10/site-packages/vmbpy/c_binding/vmb_c.py", line 891, in call_vmb_c getattr(_lib_instance, func_name)(*args) File "/opt/venv/lib/python3.10/site-packages/vmbpy/c_binding/vmb_c.py", line 815, in _eval_vmberror raise VmbCError(result) vmbpy.c_binding.vmb_common.VmbCError: VmbCError(<VmbError.IO: -20>)
I was just changing the settings of the camera. 2 - 3 times i changed after i load it for 3 third time its giving me above error When i check the configuration file whether it is present or not. It is present but not able to load.
Error -20 does mean read or write error in camera or disk. How fast are you changing the settings in the camera between second and third time and is it always the third time loading the settings that gives out the error? If you keep the number of times you change settings the same, but use different xml files for each load, does the error still happen?
https://docs.alliedvision.com/Vimba_X/Vimba_X_DeveloperGuide/troubleshooting.html?highlight=error%20codes#error-codes
Loading different xml file worked. Thank you for the solution.
In some scenario it worked changing the xml file and loading it again, but the solution didn't work for some cameras.
How long is the time in between loading settings?
We try to load settings after every 1 minutes. We wanted to know in which scenarios the read /write error occurs.