mixture-art@Q
技術+アイディア+世俗+なんとなく思ったこと、すべての融合がmixture-art
The two steps advanced solutions of “iPad / iPhone apps shut down (force quit)”

Usually, this blog is described in Japanese. But this post is very useful, though I leave these information in English for helping many bothering people all over the world.

———————-

Sometimes, unexpectedly iPad / iPhone apps are shut down.

Immediately after you launch the app, you are writing an email, as soon as you click on the link to a photo on Facebook.

Timing that occurs are various but this is a common issue on iOS apps in general.

And this issue had been indicated from past time.

The reason is clear. Out of memory.

Basically Android and iOS release the memory “as necessary”

Memory is continuously expended more and more when you use.
Once the system is thinking, “Oh, not enough” and when needed, the system ensures the free space by erasing unwanted things from those at that time.

image-34

When this is not working for some reason, application is trying to access memory address “that should not access”
The system kills(force quit) that application.

Not because of the app, It’s the responsibility of 100% iOS side.
Because the allocation of memory can not be managed from the application side basically.

However uncertain state is continued about the solution.
Because Apple does not expose the inner algorithm of iOS. And never.

Therefore sometimes, a solution is proposed from someone of the user, we say “Oh, solved it? Did become comfortable?” but after a while we are suffered from the same problem.

That is continuing.

That’s the current status.

This blog would be one of the suggestions which proceed the our, users’, debugging process.


However,

for now, try to arrange for some solutions which are commonly referred.


“Turn off” the apps which you are not using

The bottom menu that appears when you double-click the Home button

20130526-021140.jpg

If you drag any app, it becomes possible to erase the app which is not used now.

20130526-021152.jpg

It is that the applications you are not using on iOS basically also running in the background.
It must occur the memory pressure.

Let’s make the habit to turn off them frequently.


To clean up the memory

It’s helplessly that such waste would accumulate on memory.
As well as we know, “Ordinary it’s not disappeared completely just deleting the file”, log and configuration data are remaining left as recoverable state if turned off the application, even if deleted application.

You must clean it up.

This is made possible by installing the “Free Memory app” something.
You can find so many apps when you search the words “Memory” and “liberation”
It’s up to you which app you use.

The method which archives above two points by single action is “Reboot”

It is rebooted automatically when you press and hold at the same time with “home button” and “power button”.

We don’t want to do that so often because it takes time, but when hopeless, let’s do it.


Well,,,

People who are solved or satisfied by common ones may not have arrived to this post.

So, the unfortunate people who it did not so (Actually my wife is also)

I add two points

which I think “These are related apparently”.


One,

Remaining amount of flash memory

“Flash memory” is a region that is generally recognized as so-called “storage size of the iPhone / iPad.”
(16GB, 32GB, 64GB, etc.)

It can be seen from

“Settings”> “General”> “Use”

Screen Shot 2013-05-26 at 5.21.14 PM

If you go from conventional wisdom, there is no relationship with “Working memory area” which the running application is expanded on. Because It has to be “Storage memory area for saving”.

Usually, “Store memory” and “Working memory” are separated from the hardware level.

Each component is prepared for each purpose. Because there is a difference in between the ways.

Working memory is faster, Storage memory is slower.
Working memory is smaller, Storage memory is larger.
Working memory is difficult for expansion, Storage memory is easy (such as external memory).

So, we should not access storage memory area occasionally, and the operation that settled in a short period of time should process on working memory area.

image-35

Although these are proper use roughly,,,

but in recent years, this difference has become less clear.

The speed of the external bus is getting faster, and otherwise capacity of the internal memory on the CPU is also steadily expanding.

In other words, I think that there is when the system are using Storage memory as for operation in applications.

So, I think Storage memory area is not unrelated to this matter.

Actually I have experience of that frequency of “shut down” goes up when storage area is being squeezed by so much photographs and etc..


Another is

Increase frequency of synchronization with the mother ship

There are times it is NOT going to,

” Usage” + “remaining amount” = ” size of the memory of the original ”

“Original” does not mean that the capacity of 16GB/32GB/64GB of spec.
Because it is a “capacity of all”, it is necessary to subtract the file size of iOS itself.
So, it might be better to say,
“Memory size of the original ” = ” free space at the time of the purchase ”

Why that equality is not satisfied?
It is considered that there are various deposited stuffs “System circumstances” for example update patches and logs.

The files for the update of the firmware is an example of this.
If you allow only download and do not “Install → restart “, the memory are being squeezed significantly . (I have experience)

The above is only one example but,

Much garbage data -> Spend storage -> Out of memory -> Apps shut down

this path can be easily anticipated.

This issue would be addressed through synchronization with mother ship (PC/Mac).


So what would have been helpful.

This kind of problem can not go out of the realm of trial and error unfortunately .
There is no reliable diagnostic method neither also reliable answer.

And I hope that we could met in another post somewhere on the solution of the end of your trial and error.