Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to read chunk data using aravis 0.8 (it worked with 0.6) #899

Open
weichselbaumj opened this issue May 3, 2024 · 3 comments
Open

Comments

@weichselbaumj
Copy link

Describe the bug
Since upgrade to aravis 0.8 (from 0.6) reading chunk data does not work. I also tried the given example code (https://github.com/AravisProject/aravis/blob/main/tests/arvchunkparsertest.c), it does not work in my configuration.

To Reproduce

Expected behavior
Getting desired chunk data.

Camera description:

  • FLIR
  • FLIR-Blackfly S BFS-PGE-16S2C
  • GigE

Platform description:

  • Aravis version 0.8.30
  • OS: Ubuntu 20.04
  • x86_64

Additional context
Reading chunk data worked fine with aravis 0.6. Fore some reason we had to upgrade to aravis 0.8 and besides of the chunk data issue, everything works as expected.
Thanks for your help.

@weichselbaumj
Copy link
Author

Additional output by using ARV_DEBUG=all

[12:58:50.396] 🅸 interface> Found 0 USB3Vision device (among 9 USB devices)
[12:58:50.397] 🅸 interface> [GvDiscoverSocket::new] Add interface 127.0.0.1 (127.0.0.1)
[12:58:50.397] 🅸 interface> [GvDiscoverSocket::new] Add interface 10.101.41.6 (10.101.41.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 192.168.130.1 (192.168.130.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 192.168.86.17 (192.168.86.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 192.168.120.1 (192.168.120.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 192.168.110.1 (192.168.110.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 172.17.0.1 (172.17.255.255)
[12:58:50.398] 🅸 interface> [GvDiscoverSocket::new] Add interface 10.9.0.6 (10.9.0.255)
[12:58:50.400] 🅸 interface> [GvInterface::discovery] Device 'FLIR-Blackfly S BFS-PGE-16S2C-22458335' found (interface 192.168.110.1) user_id '' - MAC '2c:dd:a3:56:af:df'
[12:58:50.400] 🅸 device> [GvDevice::new] Interface address = 192.168.110.1
[12:58:50.400] 🅸 device> [GvDevice::new] Device address = 192.168.110.2
[12:58:50.407] 🅸 device> [GvDevice::load_genicam] xml url = 'Local:BFS-PGE-16S2C_019ADA4C.zip;60000000;13DBC' at 0x200
[12:58:50.407] 🅸 device> [GvDevice::load_genicam] Xml address = 0x60000000 - size = 0x13dbc - BFS-PGE-16S2C_019ADA4C.zip
[12:58:50.600] 🅸 device> [GvDevice::load_genicam] Zipped xml data
[12:58:50.606] 🅸 dom> [GcFeature::set_attribute] Unknown attribute 'xmlns:xi'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentIPConfigurationLLA'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentIPConfigurationDHCP'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentIPConfigurationPersistentIP'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentIPAddress'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentSubnetMask'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevCurrentDefaultGateway'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevNumberOfNetworkInterfaces'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevPersistentIPAddress'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevPersistentSubnetMask'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevPersistentDefaultGateway'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevStreamChannelCount'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevStreamChannelSelector'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPAddrCalc'
[12:58:50.694] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevTimestampTickFrequency'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPHostPort'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPSFireTestPacket'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPSDoNotFragment'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPSBigEndian'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPSPacketSize'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCPD'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCDA'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCSP'
[12:58:50.695] 🅸 genicam> [Gc::set_default_node_data] Add 'ArvGevSCCFGMultipart'
[12:58:50.698] 🅸 device> [GvDevice::new] Device endianness = big
[12:58:50.698] 🅸 device> [GvDevice::new] Packet resend     = yes
[12:58:50.698] 🅸 device> [GvDevice::new] Write memory      = yes
[12:58:50.698] 🅸 device> [GvDevice::new] Legacy endianness handling = yes
[12:58:50.700] 🅸 dom> [GcFeature::set_attribute] Unknown attribute 'xmlns:xi'
[12:58:51.469] 🅸 device> [GvDevice::create_stream] Number of stream channels = 1
[12:58:51.486] 🅸 device> [GvDevice::auto_packet_size] Current packet size check successfull (5000 bytes)
[12:58:51.491] 🅸 stream> [GvStream::stream_new] Stream channel = 0
[12:58:51.494] 🅸 stream> [GvStream::stream_new] Packet size = 5000 byte(s)
[12:58:51.498] 🅸 stream> [GvStream::stream_new] Destination stream port = 53823
[12:58:51.498] 🅸 stream> [GvStream::stream_new] Source stream port = 49153
[12:58:51.498] 🅸 stream> [GvStream::loop] Standard socket method

** (process:561348): CRITICAL **: 12:58:51.538: arv_buffer_get_chunk_data: assertion 'arv_buffer_has_chunks (buffer)' failed
[12:58:51.538] 🆆 chunk> [ChunkWidth] [ChunkWidth_Val] [WidthPort] Chunk 0x05040006 not found
ChunkWidth = 0
error getting chunk data:
[ChunkWidth] [ChunkWidth_Val] [WidthPort] Chunk 0x05040006 not found
[12:58:51.545] 🅸 stream>     bins    ;frame_retent; packet_time;inter_packet
                                    0;           0;          44;         471
                                 2000;           0;          50;           0
                                 4000;           0;          50;           0
                                 6000;           0;          50;           0
                                 8000;           0;          50;           0
                                10000;           0;          50;           0
                                12000;           0;          50;           0
                                14000;           0;          50;           0
                                16000;           0;          50;           0
                                18000;           1;          28;           0
                         -------------
                         >=     20000;           0;           0;           0
                         <          0;           0;           0;           0
                         min         :       19154;           0;           0
                         max         :       19154;       19154;         320
                         last max at :           0;         471;         133
                         counter     :           1:         472:         471
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_completed_buffers    = 1
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_failures             = 0
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_underruns            = 105
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_timeouts             = 0
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_aborted              = 0
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_missing_frames       = 0
[12:58:51.545] 🅸 stream> [GvStream::finalize] n_size_mismatch_errors = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_received_packets     = 577
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_missing_packets      = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_error_packets        = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_ignored_packets      = 105
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_resend_requests      = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_resent_packets       = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_resend_ratio_reached = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_resend_disabled      = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_duplicated_packets   = 0
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_transferred_bytes    = 2336660
[12:58:51.546] 🅸 stream> [GvStream::finalize] n_ignored_bytes        = 517132
[12:58:51.546] 🅸 stream> [Stream::finalize] Flush 0 buffer[s] in input queue
[12:58:51.546] 🅸 stream> [Stream::finalize] Flush 0 buffer[s] in output queue

@EmmanuelP
Copy link
Contributor

Could you attach the genicam data of your device ?

@weichselbaumj
Copy link
Author

Here are the outputs of arv-tool-0.8 values and arv-tool-0.8 features. If that is not what you meant, please let me know. Thanks.
features.txt
values.txt

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

No branches or pull requests

2 participants