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

Spurious DataDiscarded errors when streaming from cameras #156

Closed
strohel opened this issue Mar 14, 2023 · 2 comments · Fixed by #166
Closed

Spurious DataDiscarded errors when streaming from cameras #156

strohel opened this issue Mar 14, 2023 · 2 comments · Fixed by #166
Labels
C-bug Category: Bug P-high Priority: High

Comments

@strohel
Copy link
Member

strohel commented Mar 14, 2023

Filing this to track an issue discovered in #153 (comment) - that PayloadReceiver::*recv*() methods sometimes spuriously return InvalidPayload("trailer status indicates error: DataDiscarded") error.

The error is recoverable and not really frequent, so this is definitely not critical.

To reproduce:

  1. Run the stream example with current main

We now see this has been "always" happening for us at a slow rate (with occassional clusters of higher frequency) with the 0.1.8 release (mind logarithmic axis, truncated error string):
image

Tonari's internal tracking issue https://github.com/tonarino/portal/issues/2344.

Meta

@Y-Nak
Copy link
Member

Y-Nak commented Apr 13, 2023

Could you re-run the same script with the current main if it's not so much trouble? I'm really interested in the outcome.

@strohel
Copy link
Member Author

strohel commented Apr 15, 2023

@Y-Nak with 1023142 (current main) I still sometimes get:

     Running `target/debug/examples/stream`
payload receive error: invalid payload has been sent: trailer status indicates error: DataDiscarded
payload receive error: invalid payload has been sent: trailer status indicates error: DataDiscarded
payload receive error: invalid payload has been sent: trailer status indicates error: DataDiscarded
payload received! block_id: 3, timestamp: 285321.20223315s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 4, timestamp: 285321.2222338s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 5, timestamp: 285321.2422345s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 6, timestamp: 285321.26223515s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 7, timestamp: 285321.28223585s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 8, timestamp: 285321.3022365s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

payload received! block_id: 9, timestamp: 285321.3222372s
ImageInfo { width: 3088, height: 2076, x_offset: 0, y_offset: 0, pixel_format: BayerRG8, image_size: 6410688 }

A lot of times I correctly get the 10 frames, once I got 10 DataDiscarded errors, sometimes first 2-4 frames error.

This is with /sys/module/usbcore/parameters/usbfs_memory_mb set to 1000 (1 GB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug P-high Priority: High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants