nnstreamer icon indicating copy to clipboard operation
nnstreamer copied to clipboard

[converter] assert fails with different sized input frames without any message

Open kparichay opened this issue 4 years ago • 2 comments

I am using tensor_converter element to convert decoded png frames to tensor format and store them into binary files. Below is the used pipeline:

gst-launch-1.0 multifilesrc location="frame%01d.png" ! pngdec ! tensor_converter ! filesink location="frame.bin"

The pipeline works well when the input frames are of the same size. However, with input frames of different sizes, the pipeline fails with an assert failure -

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
**
ERROR:/home/kparichay/FastDrive/Working/nnsuite/nnstreamer_pk.git/gst/nnstreamer/tensor_converter/tensor_converter.c:905:gst_tensor_converter_chain: assertion failed: (offset % 4)
Bail out! ERROR:/home/kparichay/FastDrive/Working/nnsuite/nnstreamer_pk.git/gst/nnstreamer/tensor_converter/tensor_converter.c:905:gst_tensor_converter_chain: assertion failed: (offset % 4)
Aborted (core dumped)

It would be great to have a better error message in this case.

Note: ideally storing data into binary files can be done without tensor_converter, but was just playing with it.

kparichay avatar Mar 08 '22 05:03 kparichay

:octocat: cibot: Thank you for posting issue #3687. The person in charge will reply soon.

taos-ci avatar Mar 08 '22 05:03 taos-ci

You will need to ensure using flexible tensors (other/tensors,format=flexible).

myungjoo avatar Mar 09 '22 08:03 myungjoo

After recent changes in error messages, I'm pretty sure that we will get more detailed error messages.

However, with recent versions, this pipeline does not incur any errors (automatically uses flexible tensors...)

myungjoo avatar Sep 19 '22 07:09 myungjoo