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

Memory leak #14

Open
Patresko opened this issue Jul 11, 2022 · 0 comments
Open

Memory leak #14

Patresko opened this issue Jul 11, 2022 · 0 comments

Comments

@Patresko
Copy link

Patresko commented Jul 11, 2022

When Im trying to load pictures from data I have seen big increase of memory usage.

Also API does not return all images with thumbnail even on sandbox environment website I see that thumbnail is generated. Can you please update documentation or example how to properly deal with attachments?

When I tried download missing thumbnails, API return error resource was not found, even on website is visible.

I have tried to print onAppear of each picture
print("THUMBNAIL: hasThumbnail: \(media.hasThumbnailPreview) hasThumbnailonServer: \(media.hasThumbnailOnServer) canDownloadThumbnail: \(media.canDownloadThumbnail) thumbnail: \(media.thumbnail) thumbnailImage: \(media.thumbnailImage)")

First image where Im missing thumbnail which is visible from web-sandbox return

THUMBNAIL: hasThumbnail: false hasThumbnailonServer: true canDownloadThumbnail: false thumbnail: nil thumbnailImage: nil and this log is basically for every single picture where Im missing thumbnail. So how do I get thumbnail if method for downloading thumbnail does not work?

If im trying to use data instead of thumbnailData property I see in log

2022-07-11 07:21:08.106152+0200 DholRainbow[31822:2512651] [File:127] Search for cached data for file 62b041c3c12a0d4594519b05 at url: file:///var/mobile/Containers/Data/Application/CCB48BF4-7B0F-40B3-B15D-F49407AB21CE/Library/Caches62b041c3c12a0d4594519b05.pvt

and this appear all the time when picture appear in the view which cause big memory leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant