skyfeed icon indicating copy to clipboard operation
skyfeed copied to clipboard

Picture upload not working / converting freezes tab

Open HeroHann opened this issue 4 years ago • 2 comments

Hello, I tested it with two different pictures on MacOS Safari & Chrome. Each time the browser freezes (the tab) and isn't recovering after some minutes. Sometimes the loading circle is showing but it is not moving sometimes it isn't even showing.

Look here for some more info: https://skyfeed-beta.hns.siasky.net/#/user/e0763818697a8441abc334daf09ff6efd298f89e8382f884fe69569861854577/posts/0/3

HeroHann avatar Nov 17 '20 10:11 HeroHann

The problem is that SkyFeed needs to process the image client side (preview image and aspect ratio) and this cpu intensive operation runs on the main JS thread which also renders the UI. Running it on a seperate thread is currently not easily possible see https://github.com/flutter/flutter/issues/33577

redsolver avatar Nov 17 '20 14:11 redsolver

Ah yes, I see. So maybe one of the problems is my old laptop...I see. As I get from the mentioned issue it might be possible in the future.

HeroHann avatar Nov 17 '20 14:11 HeroHann