Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
bbooks
Posts: 16
Registered: ‎09-15-2011
My Device: curve

Re: Device memory is Low issue for an WebWork app

sorry i am testing os6 on 9800 actual device
Contributor
mysudbury
Posts: 18
Registered: ‎10-17-2011
My Device: Torch9800

Re: Device memory is Low issue for an WebWork app

[ Edited ]

I am using this basic code (from http://code.google.com/apis/maps/documentation/javascript/maptypes.html) to load a Google Map on the Torch 9800:

 

var myLatlng =new google.maps.LatLng(-34.397,150.644);
var myOptions ={
  zoom
:8,
  center
: myLatlng,
  mapTypeId
: google.maps.MapTypeId.ROADMAP
};
var map =new google.maps.Map(document.getElementById("map_canvas"),
    myOptions
);

The map loads correctly on my device. When I zoom in 8-10 times, I get the low memory error.  The error comes sooner if I have markers on the map (because more memory is being used to display those).  There is definitely a memory leak problem here (note that I have already installed the pre-release fix which did not improve my problem).

 

Hopefully that helps narrow down the problem!  Thank you for your help!

Contributor
bbooks
Posts: 16
Registered: ‎09-15-2011
My Device: curve

Re: Device memory is Low issue for an WebWork app

Hello

You say no problem in device browser or simulator. Can you please test in webworks on device. I am not getting errors on device browser. But same code give error in webworks on device.

Contributor
mysudbury
Posts: 18
Registered: ‎10-17-2011
My Device: Torch9800

Re: Device memory is Low issue for an WebWork app

I am also having the issue with webworks on device.  I just meant to point out that the same code works fine in device browser and simulator.  Sorry I wasn't clear in my earlier post!  The problem is definitely related to Webworks.

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Device memory is Low issue for an WebWork app

The amount of memory allocated to the WebView used in WebWorks is different than the amount set aside for the Browser... It could be hitting an upper limit or could be something else.

Do you have a sample website or app that we could use to try that reliably reproduces the problem.
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Device memory is Low issue for an WebWork app

Whoops.. Just saw your code example now :smileyhappy:
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
mysudbury
Posts: 18
Registered: ‎10-17-2011
My Device: Torch9800

Re: Device memory is Low issue for an WebWork app

Hi Tim,

 

Have your developers been able to reproduce the "Low Memory" error on the Torch 9800?  I can send you my entire app package if that helps.  Right now, all of the app's features work except for the Map page, where I am getting the low memory error after zooming in and out.  I am developing an app for a big client and they don't want to disappoint Blackberry users by not including the map as it is a key feature of the app.

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Device memory is Low issue for an WebWork app

Is it possible for you to send me the source through a pivate message
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Member
benreed
Posts: 1
Registered: ‎10-21-2011
My Device: All

Re: Device memory is Low issue for an WebWork app

Hi, any word on when the new SDK will be launched? I can still only see reference to the pre-release version.

 

Thanks

Contributor
inawire
Posts: 33
Registered: ‎07-08-2010
My Device: Bold 9700/9900 - Playbook v2.0.xxx

Re: Device memory is Low issue for an WebWork app