question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MJPEG decode failed: -1

See original GitHub issue

Did you guys ever see this :

[2020-04-18 14:47:40.098] [error] [t=32] ../../src/color/uvc_camerareader.cpp (1300): DecodeMJPEGtoBGRA32(). MJPEG decode failed: -1
[2020-04-18 14:47:40.110] [error] [t=32] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_depth" was popped in a disabled state.
[2020-04-18 14:47:40.124] [error] [t=29] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_color" was popped in a disabled state.
[2020-04-18 14:47:40.170] [error] [t=29] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_color" was popped in a disabled state.
[2020-04-18 14:47:40.184] [error] [t=34] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_capture" was popped in a disabled state.
[2020-04-18 14:47:40.184] [error] [t=34] ../../src/sdk/k4a.c (269): capturesync_get_capture(device->capturesync, capture_handle, timeout_in_ms) returned failure in k4a_device_get_capture()
[2020-04-18 14:47:40.246] [error] [t=29] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_color" was popped in a disabled state.
[2020-04-18 14:47:40.303] [error] [t=29] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_color" was popped in a disabled state.
[2020-04-18 14:47:40.370] [error] [t=29] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_color" was popped in a disabled state.
[2020-04-18 14:47:40.374] [error] [t=34] ../../src/queue/queue.c (112): queue_pop(). Queue "Queue_capture" was popped in a disabled state.
[2020-04-18 14:47:40.374] [error] [t=34] ../../src/sdk/k4a.c (269): capturesync_get_capture(device->capturesync, capture_handle, timeout_in_ms) returned failure in k4a_device_get_capture()

and it goes on forever? I just reset the device and it works after. It doesn’t happen too often but sometimes it does and I find it interesting/annoying. 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
omartin2010commented, Apr 24, 2020

I guess I’m luckier, I have the unit at home… 😃 Got it, makes sense. And I’m not keeping images indefinitely… after some investigation, it seems to be an issue with K4A, not about freeing buffers.

See here : https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1187

I will try to investigate the work to not using BGRA as a format in the capture, or at least what it means in this python package. I’m not super familiar with C/C++ so it might be a bit challenging for me but I can take a stab if I can’t mitigate the issue.

0reactions
lpasselincommented, Aug 6, 2020

Hey if MJPEG decoding is still a problem, you can try directly getting compressed MJPEG color images now: https://github.com/etiennedub/pyk4a/pull/38

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with DecodeMJPEGtoBGRA32: MJPEG decode failed: -1 ...
This means the format of the image being decoded is corrupt. It either happens at the firmware level being read off the camera...
Read more >
MJPEG decode error leads to stream disconnecting from twitch.
I'm not sure what's causing this or even where to look to fix it. But OBS will disconnect when streaming with the following...
Read more >
Solved: i.MX6Q MJPEG decoding error - NXP Community
I'm trying to decode MJPEG stream from IP camera but I'm getting VPU errors. I have enable the VPU wrapper debugging and I...
Read more >
5267 (mjpeg decode error) - FFmpeg Wiki
Summary of the bug: FFmpeg produces incorrect (grey) image. How to reproduce: $ ffmpeg -i http://m.fotoblogia.pl/9cb812a9c09d2e9f9aba34f1c0a8cc76.jpg ...
Read more >
Decoding MJPEG to I420 using MMAL fails for certain JPGs
If I try to convert this test JPEG to I420 using the above code, it fails with an MMAL_ECORRUPT error. However, if I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found