functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

generateThumbnail produces toxic image

Open stocksp opened this issue 4 years ago • 6 comments

How to reproduce these conditions

I'm using the sample code as is: It builds and uploads and runs. The thumb_ image can't be downloaded and just 'hangs' in the control panel. I've tried .jpg and .png, small and large. All produce the same failure. Logs say it ran 'ok'. About 6 seconds for a 1 meg image.

Running latest software:

"engines": {
    "node": "10"
  },
  "dependencies": {
    "child-process-promise": "^2.2.1",
    "firebase-admin": "^8.6.0",
    "firebase-functions": "^3.3.0"
  }

firebase-tools are current.

Here is what the console looks like after an upload. The original image uploads fine. The generated thumb never presents an image or a link (though its name and size are correct)

Screen Shot 2019-12-27 at 4 27 20 PM

stocksp avatar Dec 28 '19 00:12 stocksp

@stocksp thanks for filing! I believe this is actually an issue in the Firebase console, not in the function sample. To check if it is a console bug, can you please try downloading the thumbnail with one of the client SDKs and see if that works?

(for Googlers looking at this, a similar internal bug is 145671394)

jhuleatt avatar Jan 13 '20 18:01 jhuleatt

@jhuleatt thanks for getting back to me ... I've moved on and just did the conversion on the client (Flutter) (much faster of course) and they appear in the storage console when I send them there!!

stocksp avatar Jan 13 '20 19:01 stocksp

I tried this one and had same issue. Any solution?

benjoabrasado25 avatar Feb 10 '20 13:02 benjoabrasado25

@stocksp thanks for filing! I believe this is actually an issue in the Firebase console, not in the function sample. To check if it is a console bug, can you please try downloading the thumbnail with one of the client SDKs and see if that works?

(for Googlers looking at this, a similar internal bug is 145671394)

@stocksp I was able to download the new thumb generated via the client SDK. It appears @jhuleatt may be right in thinking it is a console bug.

tbone849 avatar Feb 19 '20 00:02 tbone849

thanks for confirming @tbone849. I have an idea for a hack in the sample that may let us get around the console bug

jhuleatt avatar Feb 19 '20 06:02 jhuleatt

thanks for confirming @tbone849. I have an idea for a hack in the sample that may let us get around the console bug

hey. any news regarding that issue? i have the same problem.

outiii avatar Jul 10 '20 12:07 outiii