logo
All About Symbian - Features
Nav (0)

How to: avoid 'Memory' errors on a Symbian OS smartphone

Steve Litchfield explains the cause of 'Memory' errors, discusses ways to avoid them and points out a silver lining.

P990 and N95

If you've owned a Nokia E70, N95 or N93, or a Sony Ericsson P990i, the chances are that, at some point, you've had a 'Memory' error, usually in the context of 'Low memory' or 'Out of memory'. Other Symbian OS models are vulnerable too, of course, but these devices have the worst track record. And it's easy to see why. The more powerful a device, the more memory is needed to accomplish the advanced functions and it soon runs out.

Memory = RAM

Smartphone's memory architectureBut wait. Just to be absolutely clear, when manufacturers like Nokia talk about publicly about 'memory', they usually mean the flash storage chips on which you can store files and install applications. RAM, or 'dynamic memory', is the physical chip in which the Symbian Operating System, S60 or UIQ, and all your programs actually run, do their business, and so on. And it's vital, absolutely vital, to be aware of your RAM and treat it carefully if you want to avoid running into problems later on. Over and over again, I see problems on AllAboutSymbian forums, to do with things falling over because of lack of 'memory', and in most cases the device is talking about RAM, not flash memory.

How to 'use' RAM 

Now, there's probably not a lot you can do about the base memory configuration of your smartphone, it's as you bought it, complete with basic spec and operator branding (make a note to yourself to try and buy SIM-free next time, perhaps?) However, what you install and how you use the device also has a big effect. And it will help enormously if you understand the implications of using applications like Web, Gallery, Java, and so on. Here are the bullet points:

A silver lining? 

As with most things in life though, it's also useful to stop and consider silver linings in every cloud. OK, so your smartphone may be a little challenged in the RAM department but, as I say above, as long as you stay away from complicated web pages you'll be alright most of the time, with the OS taking care of unloading applications when needed. And, most of all, the limit on RAM means that you're not tempted to have (e.g.) 16 applications all running at the same time - several of these will probably be Java, games or Web itself and, trust me, even with Symbian OS at the helm, the sheer clamour for system events means that something's going to break sooner or later.

For example, I've had plenty of experience of unlimited RAM on the Nokia E90. There's around 80MB available after booting and I set about using every feature of the device without considering RAM or closing anything down with an 'Exit' key. A day or two later and I'm down to 50MB free, with anything up to 15 or even 20 applications running in the background and then something freezes or the E90 reboots itself. As I've said in the past, a modern OS is now so complex that it can't be perfect, and a few badly behaved third party applications don't help matters.

So, the silver lining in having low-ish RAM, if you want to see it, and (as they said in "Friends") you really have to want to see it, is that it's unlikely your stack of running applications will ever get to the point where things topple over - the OS is managing what stays running out of necessity.

Steve Litchfield, AllAboutSymbian, 5 October 2007

Published by Steve Litchfield at 11:44 UTC, October 4th 2007

Categories: How To, Comment, Hardware
Platforms: Series 60, S60 3rd Edition, UIQ 3

Feature Discussion

Ratkat
Comment: Steve, your links wrong for the AAS mobile site, you missed the .com it should be [url]www.allaboutsymbian.com/mobile[/url] or [url]http://mobile.allaboutsymbian.com/[/url]
DKlaus
Comment: [quote]Install NSysInfo[/quote]

Certificate expired.

(N95)
malerocks
Comment: @ DKlaus

Set the phone date to 2006 and then install. No expired certificate errors. After installation, set the phone again to current date.
bchliu
Comment: The biggest problem with memory is definitely the web browsing. This hold true for especially the N80 and N95 users who have got low RAM!

The problem however - is not really with the RAM, but with how the S60 web Browser application. What I have noticed is that this application is the most "bully" of all apps on the phone and tends to use a FIXED amount of RAM (usually associated with the maximum amount of available memory on a "clean" phone) rather than asking "how much RAM have I got left to use?"

I have seen quite a few bugs in the Browser that supports this theory-

1) If you have any application preloaded (eg Roadsync) and is in memory, the Web application will close off any other app without warning. Any attempts at the app reloading (such as Roadsync that reloads from a service once every 2-3 minutes), then you will most likely encounter out of memory errors.

2) Web browser can not only close other apps, but there are no safeguards to protected memory pages that is currently in use by other applications or even the OS. This means that the web app can corrupt memory used by other applications including the S60 shell. I have had many instances whereby the web app will "out of memory" and then kill off my themes and icons on the shell leaving a very basic icon set. A reboot is needed for the phone to function correctly again - but now defaulting back to the original themes selection.

3) Memory is used extremely badly in the web browser. I say this because in comparison to Opera 4 (which also features full desktop style rendering) uses memory much more efficient (and is also a J2ME app!). Yes, Opera does "cheat" by using a pre-rendered forward proxy to scale images down, but Nokia CAN do a similar service as well for their browsers to pre-render and shrink images down to a managable size.

4) The ONLY time when you can run Web Browser without ANY memory problems really is when a phone is brand new or has been flashed recently clearing out all applications. Even the slightest first installation of another app (eg Roadsync or even WorldMate) that eats up 1-2MB of memory, then it will cause memory problems.

Having said all this, the physical memory is definitely an issue - but the other thing of concern is a lack of a swap file. If a proper virtual RAM exists, then a lot of these out of memory issues will go away as background applications can get shifted to the slower virtual memory leaving the fast main memory for foreground apps like Web Browser.

The Internal "Safari" based Browser is fantastic - only if you dont install anything and just use the phone to surf the net!!

Until they resolve these issues, I am afraid that I will continute to use Opera 4 instead as this is the only real browser alternative that does a similar job without memory issues.
Nick17
Comment: Honoustly: Telepathic!

I asked the same question today
in another forum.

Over there I also "preconcluded"
that also the 8GB will cause pro-
blems for me in the long run.

Very interesting though. Thanks.
Nick17
Comment: [quote=DKlaus;341542]Certificate expired.

(N95)[/quote]

Set your date to 18 jan 2007. Install. Set date back. Voilą..
Integrabyte
Comment: Thanks Steve for this article. You are someone who sees that the glass is not half empty but half full. I am very proud of my E70 and in the past 2 years I encountered only a couple times that message. I must admit I wanted to change this phone the next day I bought it because Adobe gave me a memory full error on a 5 MB pdf. I was so annoyed, but then I discovered Pdf+. My error issues with pdfs are gone. The browser, is cool fancy and whatever, but the memory allocation has been improved with the two firmware revisions they launched. I use opera mobile and avoid surfing landscape. I totally forgot that my phone is "under ramed :D ". I never have those messages anymore. I am tempted to purchase the E90 but I am afraid I will shelve a bundle for something I wont use more than my e70. Should I wait for the E70i? :D Get the E90? Wait till next year when Nokia will put some decent RAM in their smartphones?
skagen
Comment: This article is a good one on a practical level. Kudos for that.

However, what should [U]not[/U] be missed is that this article is also an indictment of Nokia/Symbian. go around trumpeting that these are phones they sell are "multitasking" devices, "mutimedia computers", "mobile web device" etc...............Okay, fine - well how about making a product that actually DOES what you claim without crashing? Its a bit silly to claim all that when you basically cant have your web browser and a java app open without freezing the device!

Someone should take this article to the Avertising Standards Authority in a decent country and sue Nokia on the back of these findings - or at least stop them from continuing to lie to customers.

Main Navigation

» Home (1)
» News (2)
» Reviews (3)  
» Features (4)
» Media (5)
» Forums M | Full (6)
» Top (9)

Advert

no links available

mobile.allaboutsymbian.com