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 warnings & crashes #13

Closed
r3econ opened this issue Jan 2, 2012 · 8 comments
Closed

Memory warnings & crashes #13

r3econ opened this issue Jan 2, 2012 · 8 comments

Comments

@r3econ
Copy link

r3econ commented Jan 2, 2012

So, I loaded 180 images (about 500Kb each). And after I viewed about 15 app crashed (: Memory level is not normal (63%).).

I guess the memory handling is not done in a right way.

@gdavis
Copy link
Owner

gdavis commented Feb 19, 2012

Are you loading the images into memory before FGallery requests them?

@gdavis
Copy link
Owner

gdavis commented Feb 19, 2012

And are you loading from the network or disk?

@ghost
Copy link

ghost commented Jun 17, 2012

I experienced the same issue by loading multiple images from the web. just added additional image URLs to the networkImages NSArray in your example. Memory Usage is growing fast and then the App crashes Is there another way to handle a high amount of pictures loaded from the web?

@ernani
Copy link

ernani commented Oct 2, 2012

I am having the exact same issue, I am testing within an iPhone 3Gs with iOS 5.1.1.

It seems it doesn't like much about the preloading threads, after some usage, it crashes and the available memory gets knocked out.

UPDATED: If using this component on a UINavigationController, I was able to manage the memory by handling the cleanup of images and threads on viewDidDisappear, this way my memory keeps fresh on each viewWillAppear.

@ghost
Copy link

ghost commented Jan 4, 2013

How did you do that? Are you using the code from the memory warning method?
thanks

@ernani
Copy link

ernani commented Jan 4, 2013

I don't have the access to the code for now but will keep your notificaiton
here on my email and will update the message later with the details on my
code, sounds good?

Cheers

On Fri, Jan 4, 2013 at 8:29 AM, acaserop notifications@github.com wrote:

How do you did that? Are you using the code from the memory warning
method?
thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-11878964.

@ghw311
Copy link

ghw311 commented May 14, 2013

Application crashes on loading too many images in iPhone,why?

@ernani
Copy link

ernani commented May 14, 2013

It depends on the size of the images and also the amount of images you are displaying in a grid, also I'd recommend optimizing the methods I've suggested up above.

@r3econ r3econ closed this as completed Jul 24, 2023
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

4 participants