Memory full problem when opening the device browser



  • Hi,

    I am working on Qt 4.6.3 for symbian. I got memory message full error when opening the device browser with QDesktopService::OpenURL().

    Scenario is I have two mainwindows and two custom dialogs and in all of the windows and dialogs have WA_DeleteOnClose attrbute set. In one of the window I opened the device browser. After approximately 70 times navigation from mainwindow to dialogs and dialogs to main window when i open the browser I got memory message full prompt and the device browser will not be open by QDesktopServices or even from device->web option. but application runs successfully.

    Even if I closes the application with "QApplication::quit()" slot and open the browser with device->web option getting same message. unless or until I restart the device.

    Kindly help me in this regard

    Thanks



  • Try increasing your Epoc heap size.



  • Thanks for your reply

    Can you please tell me how do I increase Epoc heap size and what is the limit.

    Thanks

    Regards



  • In your .pro file use something like
    @
    symbian: {
    TARGET.EPOCHEAPSIZE = 0x200000 0x2000000
    }@

    This will set your minimum application heap size to 2MB and the maximum to 32MB.



  • Can we increase the size to 32mb? I thought 8mb was max.



  • [quote author="QtK" date="1294213827"]Try increasing your Epoc heap size.[/quote]
    I guess you didn't read the question. This won't help, it will make it worse.

    OP:
    From the description it is obvious that Qt application is using too much memory in the system which is accumulated by opening/closing dialogs and the S60 built-in webbrowser (very memory hungry) fails to start because there isn't enough available to start it.

    Now since you closed the Qt application the commit charge is returned to system, but according to your description it isn't.

    What device you are running this on? Can you monitor the system memory usage e.g. http://www.drjukka.com/YTasks.html to see how much is free'd after the Qt application is closed.

    [quote author="Srinidhi M" date="1294217281"]Can we increase the size to 32mb? I thought 8mb was max. [/quote]

    You can increase it up to 4GB in 32b system (least in theory).



  • I am using Nokia 5230. It means that some objects are not dispose off.
    and only QApplication::quit() doesn't releases the memory. is it right?
    if it is the case then what shoud i do for releasing the application memory on quit()?



  • [quote author="smotiwala" date="1294223155"]I am using Nokia 5230. It means that some objects are not dispose off.
    and only QApplication::quit() doesn't releases the memory. is it right?
    if it is the case then what shoud i do for releasing the application memory on quit()?
    [/quote]

    I'm wondering what the objects would be. Since you close the application the process dies and all resources related the process will be freed. This has something to do with opening multiple windows... maybe their backbuffers? Symbian stores (in your phone) all images to common Font&Bitmap server. It could be that the commit of the font&bitmap server somehow is large enough for not to be able to run the browser. still this is all speculation without proper memory profiling.
    I would try looking for handles left open, memory usage in general, memory usage of F&B server.

    I've seen this issue on my E71 with native apps. e.g. when opening messaging with lot of sms/emails the browser won't start anymore.



  • Thanks for ur reply.
    I don't know why it happens. May be the reason for ont&Bitmap server.

    I'll check it.



  • hey sorry, i am invoking very old thread ... but even i am facing some issue like u ...

    did u solved this issue ???

    please help me to sort my issue...

    u can check my problem "here":http://qt-project.org/forums/viewreply/101215/

    thanks in advance..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.