aravis icon indicating copy to clipboard operation
aravis copied to clipboard

ValueError: Pointer arguments are restricted to integers, capsules, and None. See: https://bugzilla.gnome.org/show_bug.cgi?id=683599

Open hk-du opened this issue 1 year ago • 1 comments

Describe the bug Creating a preallocated buffer in python throws the above error

To Reproduce import gi, numpy gi.require_version('Aravis','0.8') from gi.repository import Aravis,

fake_array = numpy.arange(1,17, dtype= numpy.uint16).reshape((4,4)) fake_buffer = Aravis.Buffer.new(fake_array.nbytes, fake_array.flatten().tobytes())

Expected behavior I expected to have an Aravis.Buffer reference to be created

Camera description:

  • arv-fake-gv-camera-0.8 -i 127.0.0.1

Platform description:

  • Aravis version 0.8
  • OS: [Ubuntu 22.04]
  • Hardware [x86_64]
  • Python version: Python 3.10.12 64bit

Additional context Trying in python to create an Aravis Buffer which is already preallocated and populated with fake values like above. The context is to push this buffer into a stream, start acquiring with a fake camera, and see if the values can be correctly read out once the buffer is poped.

hk-du avatar Jun 10 '24 16:06 hk-du

Thanks for the report.

Could you please attach a simple python script that shows the issue ?

EmmanuelP avatar Jun 16 '24 06:06 EmmanuelP

No update, I'm closing the issue. Don't hesitate to reopen with the requested information.

Thanks.

EmmanuelP avatar Aug 14 '24 15:08 EmmanuelP