Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

vmbpy.c_binding.vmb_common.VmbCError: VmbCError(<VmbError.IO: -20>) #171

Open
HarshitaKanamadi opened this issue Oct 16, 2023 · 5 comments

Comments

@HarshitaKanamadi
Copy link

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.

@Teresa-AlliedVision
Copy link

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

@HarshitaKanamadi
Copy link
Author

Loading different xml file worked. Thank you for the solution.

@HarshitaKanamadi
Copy link
Author

In some scenario it worked changing the xml file and loading it again, but the solution didn't work for some cameras.

@Teresa-AlliedVision
Copy link

How long is the time in between loading settings?

@HarshitaKanamadi
Copy link
Author

HarshitaKanamadi commented Oct 16, 2023

We try to load settings after every 1 minutes.
We wanted to know in which scenarios the read /write error occurs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants