Open KevS272 opened 3 years ago
@KevS272 I fixed the issue making the following changes:
const BufferType = self.crossOriginIsolated ? SharedArrayBuffer : ArrayBuffer;
with const BufferType = ArrayBuffer;
const notSharedData = rawData.buffer instanceof SharedArrayBuffer ? new Uint8Array(rawData) : rawData;
with const notSharedData = rawData;
SharedArrayBuffer: true,
with SharedArrayBuffer: false,
Hello,
when I try to play back the compressed image topic of my rosbag I just get the error message
Error: SharedArrayBuffer is not defined
It also says "failed to decode image on /detection_image/compressed:"
I am using Chrome version 92.0.4515.107 (Official Build) (64-bit).
I was looking on the web for the problem and it seems that google did some stuff with the SharedArrayBuffer, but I'm not familiar with the whole topic: https://developer.chrome.com/blog/enabling-shared-array-buffer/
Any idea how this could be fixed?
Thanks and BR Kevin
Upvoting. I am using the web-version and facing the same issue https://webviz.io/app/
I also have the same problem. The image can be correctly encode, but compressedImg can't be.
When I tried the newest version of Webviz, I found this problem has been fixed. 👍
For anyone experiencing this issue, I'd encourage you to try out Foxglove Studio, which renders compressed and uncompressed images without using SharedArrayBuffers.
Foxglove Studio is a visualization tool originally based on webviz, available as a cross-platform native app and also a web app. If you have any questions or issues with it, you can contact us on GitHub or in our Slack workspace!
Hello,
when I try to play back the compressed image topic of my rosbag I just get the error message
Error: SharedArrayBuffer is not defined
It also says "failed to decode image on /detection_image/compressed:"
I am using Chrome version 92.0.4515.107 (Official Build) (64-bit).
I was looking on the web for the problem and it seems that google did some stuff with the SharedArrayBuffer, but I'm not familiar with the whole topic: https://developer.chrome.com/blog/enabling-shared-array-buffer/
Any idea how this could be fixed?
Thanks and BR Kevin