Re: Memory Leak with IE7

2009-02-26 Thread koalina

Hi Eric,
i agree with you about the samples in HelloMaps, but the situation is
quite different: in this case, removing the overlays (marker and
markerClickHandler) does not depend on event but it's periodically
scheduled in a timer. I've tried also with two vector: the first one
is for the markers, the second one is for the  markerClickHandler and
then call the removeOverlay with this arguments. The problem in my
opinion are:
-) number of markers, beeing a tracking application, is not knows a
priori
-) the clearOverlays does not free memory with ie7
-) the issue is with the markerClickHandlerVector: in fact, commenting
that, memory does not increase.
As suggested some posts ago, I've recompiled the gwt-user commenting
the opacity attribute in PopUpImplIe6... perhaps quite better, but
however memory usage increases and increases..
any suggestions?
thx,
Michela

On 26 Feb, 13:34, Eric Ayers  wrote:
> A Marker is a subclass of Overlay.  I have an example in JavaScript
> attached to this issue:
>
> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> There is a GWT binding for the GMap2.removeOverlay() method on the
> MapWidget class.
>
> For future reference, many of the methods in the API have example code
> in the HelloMaps example, including removing a marker using
> removeOverlay().
>
>
>
> On Thu, Feb 26, 2009 at 4:52 AM, koalina  wrote:
>
> > Matas, I've tried recompiling commenting the line in PopUpImplIE6 you
> > suggest but with no luck :-(
> > I've seen that declaring a vector of labeledMarker and then adding :
> > labeledMarkerVector.add(new LabeledMarker(point, options));
> > removing :
> > map.clearOverlays();
>
> >                            Iterator v = labeledMarkerVector.iterator
> > ();
> >                            while (v.hasNext()) {
> >                                //250209Miki: rimuovo anche overlay
> > singolarmente
> >                                map.removeOverlay((LabeledMarker)
> > v.next());
>
> >                            }
> >                            //250209Miki: e poi svuoto vettore di
> > appoggio
> >                            labeledMarkerVector.clear();
>
> > is the same thing memory usage still increase. I notice that only
> > with the vector, without any listener, memory doesn't increase...
> > the leak seems to be here:
> > ((LabeledMarker) labeledMarkerVector.lastElement()).
> >        addMarkerClickHandler(new MarkerClickHandler() {
>
> >            public void onClick(MarkerClickEvent event) {
> >                //050209Miki: gestisco qui il popup informativo
> >                InfoWindow info = map.getInfoWindow();
> >                info.open(event.getSender(),
> >                new InfoWindowContent(
> >                " > "+
> >                "class='info-window'>"+
> >                //"" +
> >             etc ."
> >                ));
>
> >            }
>
> >        });
>
> > is it a kwonwn issue?
> > thx
> > Michela
>
> > On 26 Feb, 10:36, koalina  wrote:
> >> Hi Matas,
> >> I've found this line in PopUpImplIE6..i don't call this object but
> >> perhaps it's called by InfoWindow in gwt google maps api... have i
> >> only to recompile gwt-user.jar or all the gwt and google maps jars?
> >> thx, have a nice day,
> >> Michela
>
> >> On 25 Feb, 16:43, Matas  wrote:
>
> >> > hi, Michela,
> >> > I have similar problem (in different context) with gwt 1.5.3. and
> >> > IE6/7memoryleaks. After some findings I found that leaking is caused
> >> > by trasparency filter:
>
> >> > style.filter = 'alpha(opacity=0)';
>
> >> > Try to remove transparency effects and then check formemoryleaks.
>
> >> > Please, take a look at the issue for 
> >> > details:http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=p...
>
> >> > --
> >> > Matas
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-26 Thread Eric Ayers

A Marker is a subclass of Overlay.  I have an example in JavaScript
attached to this issue:

http://code.google.com/p/gmaps-api-issues/issues/detail?id=945

There is a GWT binding for the GMap2.removeOverlay() method on the
MapWidget class.

For future reference, many of the methods in the API have example code
in the HelloMaps example, including removing a marker using
removeOverlay().

On Thu, Feb 26, 2009 at 4:52 AM, koalina  wrote:
>
> Matas, I've tried recompiling commenting the line in PopUpImplIE6 you
> suggest but with no luck :-(
> I've seen that declaring a vector of labeledMarker and then adding :
> labeledMarkerVector.add(new LabeledMarker(point, options));
> removing :
> map.clearOverlays();
>
>
>
>                            Iterator v = labeledMarkerVector.iterator
> ();
>                            while (v.hasNext()) {
>                                //250209Miki: rimuovo anche overlay
> singolarmente
>                                map.removeOverlay((LabeledMarker)
> v.next());
>
>                            }
>                            //250209Miki: e poi svuoto vettore di
> appoggio
>                            labeledMarkerVector.clear();
>
> is the same thing memory usage still increase. I notice that only
> with the vector, without any listener, memory doesn't increase...
> the leak seems to be here:
> ((LabeledMarker) labeledMarkerVector.lastElement()).
>        addMarkerClickHandler(new MarkerClickHandler() {
>
>            public void onClick(MarkerClickEvent event) {
>                //050209Miki: gestisco qui il popup informativo
>                InfoWindow info = map.getInfoWindow();
>                info.open(event.getSender(),
>                new InfoWindowContent(
>                " "+
>                "class='info-window'>"+
>                //"" +
>             etc ."
>                ));
>
>            }
>
>        });
>
> is it a kwonwn issue?
> thx
> Michela
>
>
> On 26 Feb, 10:36, koalina  wrote:
>> Hi Matas,
>> I've found this line in PopUpImplIE6..i don't call this object but
>> perhaps it's called by InfoWindow in gwt google maps api... have i
>> only to recompile gwt-user.jar or all the gwt and google maps jars?
>> thx, have a nice day,
>> Michela
>>
>> On 25 Feb, 16:43, Matas  wrote:
>>
>> > hi, Michela,
>> > I have similar problem (in different context) with gwt 1.5.3. and
>> > IE6/7memoryleaks. After some findings I found that leaking is caused
>> > by trasparency filter:
>>
>> > style.filter = 'alpha(opacity=0)';
>>
>> > Try to remove transparency effects and then check formemoryleaks.
>>
>> > Please, take a look at the issue for 
>> > details:http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=p...
>>
>> > --
>> > Matas
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-26 Thread koalina

Matas, I've tried recompiling commenting the line in PopUpImplIE6 you
suggest but with no luck :-(
I've seen that declaring a vector of labeledMarker and then adding :
labeledMarkerVector.add(new LabeledMarker(point, options));
removing :
map.clearOverlays();



Iterator v = labeledMarkerVector.iterator
();
while (v.hasNext()) {
//250209Miki: rimuovo anche overlay
singolarmente
map.removeOverlay((LabeledMarker)
v.next());

}
//250209Miki: e poi svuoto vettore di
appoggio
labeledMarkerVector.clear();

is the same thing memory usage still increase. I notice that only
with the vector, without any listener, memory doesn't increase...
the leak seems to be here:
((LabeledMarker) labeledMarkerVector.lastElement()).
addMarkerClickHandler(new MarkerClickHandler() {

public void onClick(MarkerClickEvent event) {
//050209Miki: gestisco qui il popup informativo
InfoWindow info = map.getInfoWindow();
info.open(event.getSender(),
new InfoWindowContent(
""+
//"" +
 etc ."
));

}

});

is it a kwonwn issue?
thx
Michela


On 26 Feb, 10:36, koalina  wrote:
> Hi Matas,
> I've found this line in PopUpImplIE6..i don't call this object but
> perhaps it's called by InfoWindow in gwt google maps api... have i
> only to recompile gwt-user.jar or all the gwt and google maps jars?
> thx, have a nice day,
> Michela
>
> On 25 Feb, 16:43, Matas  wrote:
>
> > hi, Michela,
> > I have similar problem (in different context) with gwt 1.5.3. and
> > IE6/7memoryleaks. After some findings I found that leaking is caused
> > by trasparency filter:
>
> > style.filter = 'alpha(opacity=0)';
>
> > Try to remove transparency effects and then check formemoryleaks.
>
> > Please, take a look at the issue for 
> > details:http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=p...
>
> > --
> > Matas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-26 Thread koalina

Hi Matas,
I've found this line in PopUpImplIE6..i don't call this object but
perhaps it's called by InfoWindow in gwt google maps api... have i
only to recompile gwt-user.jar or all the gwt and google maps jars?
thx, have a nice day,
Michela

On 25 Feb, 16:43, Matas  wrote:
> hi, Michela,
> I have similar problem (in different context) with gwt 1.5.3. and
> IE6/7memoryleaks. After some findings I found that leaking is caused
> by trasparency filter:
>
> style.filter = 'alpha(opacity=0)';
>
> Try to remove transparency effects and then check formemoryleaks.
>
> Please, take a look at the issue for 
> details:http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=p...
>
> --
> Matas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-25 Thread koalina

Hi eric,
the removeOverlay() you are telling about, is the one from gwt? what
argument do you pass?I've tried having a vector of markers, each time
i put a new marker in... then, after clearOverlays, i've tried with
this:
Iterator v = labeledMarkerVector.iterator();
while(v.hasNext())
 {
 //250209Miki: rimuovo anche overlay singolarmente
map.removeOverlay((LabeledMarker)v.next());

}
//250209Miki: e poi svuoto vettore di appoggio
labeledMarkerVector.clear();

but with no luck.. I don't undestand what take the removeOverlay
method... and if it could solve the problem
Thx
Michela

On 25 Feb, 21:58, Eric Ayers  wrote:
> In my tests, an implementation that uses 'removeOverlay()' didn't seem
> to leak after running a long time (although it used more memory than
> the pool implementation)
>
> The clearOverlays() leak is independent of the GWT wrappers, so about
> the best I can say for getting the memory leak resolved is to go to
> the issue and 'star' the issue.  You can post on the issue or on the
> Maps API list about why this is blocking for your application.
>
> Depending on how many icons you have, I think you could work around it
> by creating pools of markers by icon, and use some of the LabelMarker
> setters to reset the text labels.  If there is some functionality you
> need, since you have the source to LabeledMarker, maybe there is some
> enhancement you could make to it to help add a way to set resources
> after the LabeledMarker is constructed.
>
> -Eric.
>
>
>
> On Wed, Feb 25, 2009 at 2:54 PM, koalina  wrote:
>
> > thx eric, the problem is that in gwt i have to instantiate a new
> > marker object every time i add a marker: in fact it's not possible to
> > update the "options", but they are defined only in the constructor.So,
> > how can i solve with this application?is there any patch for google
> > maps api for gwt?
> > thx,
>
> > Michela
>
> > On Feb 25, 6:24 pm, Eric Ayers  wrote:
> >> I've been able to reproduce a leak in pure JavaScript without any GWT.
> >>  This issue is described in the Maps API issue tracker
>
> >>http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> >> I attached some sample JavaScript for creating a pool of markers
> >> instead of removing them from the map.
>
> >> -Eric.
>
> >> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> >> > hi all,
> >> > I've tried as suggested by jason with this semplified piece of code:
> >> > public class MainEntryPoint implements EntryPoint{
>
> >> >    private Marker marker;
> >> >    private MapWidget map;
>
> >> >    public MainEntryPoint() {
> >> >    }
>
> >> >    /**
> >> >     * The entry point method, called automatically by loading a
> >> > module
> >> >     * that declares an implementing class as an entry-point
> >> >     */
> >> >    public void onModuleLoad() {
>
> >> >        map = new MapWidget(LatLng.newInstance(38.1890087,
> >> > 15.5648162), 12);
>
> >> >        map.checkResizeAndCenter();
> >> >        RootPanel.get().add(map);
> >> >        Timer t = new Timer(){
> >> >           �...@override
> >> >            public void run() {
> >> >                for (int i = 0; i < 10; i++)
> >> >                {
> >> >                    map.clearOverlays();
> >> >                    map.addOverlay(createMarker());
> >> >                }
> >> >            }
> >> >        };
> >> >        t.scheduleRepeating(3000);
>
> >> >        //180209Miki:per prima cosa devo caricare le api
> >> > *dinamicamente*
> >> >        //...poi tutto il resto di conseguenza
>
> >> >        //lookupKey(Window.Location.getHost());
>
> >> >    }
> >> >    public Marker createMarker()
> >> >    {
> >> >        marker = null;
> >> >        marker = new Marker(LatLng.newInstance(new Double(15), new
> >> > Double(38)));
> >> >        return marker;
>
> >> >    }
> >> > }
>
> >> > I would expect memory doesn't increase.. it doesn't
> >> > clearOverlays does not remove references with ie7
> >> > any workaround...?
> >> > please help, thx,
> >> > Michela
>
> >> > On 24 Feb, 20:22, koalina  wrote:
> >> >> commenting the addOverlay, memory usage is costant...
> >> >> that's why i think there's something wrong with the clearOverlays..
> >> >> thx for help,
> >> >> michela
>
> >> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> >> >> > Yeah, you are right.
>
> >> >> > One thing you could try is to comment out the 'addOverlay()' call and
> >> >> > measure your memory again.  You won't see anything, but it will tell
> >> >> > you if this is the problem.
>
> >> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> >> >> > > but i call the clerOverlays each time i run the timer.. at each loop
> >> >> > > the markers should be deallocated... aren't they?
> >> >> > > Michela
>
> >> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> >> >> > >> Think about what your code is doing here.
>
> >> >> > >> You are allocating marker objects and adding them to the map every
> >> >> > >> time your timer expires.
> >> >> > >> The map will track these things for you

Re: Memory Leak with IE7

2009-02-25 Thread Eric Ayers

In my tests, an implementation that uses 'removeOverlay()' didn't seem
to leak after running a long time (although it used more memory than
the pool implementation)

The clearOverlays() leak is independent of the GWT wrappers, so about
the best I can say for getting the memory leak resolved is to go to
the issue and 'star' the issue.  You can post on the issue or on the
Maps API list about why this is blocking for your application.

Depending on how many icons you have, I think you could work around it
by creating pools of markers by icon, and use some of the LabelMarker
setters to reset the text labels.  If there is some functionality you
need, since you have the source to LabeledMarker, maybe there is some
enhancement you could make to it to help add a way to set resources
after the LabeledMarker is constructed.

-Eric.

On Wed, Feb 25, 2009 at 2:54 PM, koalina  wrote:
>
> thx eric, the problem is that in gwt i have to instantiate a new
> marker object every time i add a marker: in fact it's not possible to
> update the "options", but they are defined only in the constructor.So,
> how can i solve with this application?is there any patch for google
> maps api for gwt?
> thx,
>
> Michela
>
> On Feb 25, 6:24 pm, Eric Ayers  wrote:
>> I've been able to reproduce a leak in pure JavaScript without any GWT.
>>  This issue is described in the Maps API issue tracker
>>
>> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>>
>> I attached some sample JavaScript for creating a pool of markers
>> instead of removing them from the map.
>>
>> -Eric.
>>
>> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>>
>> > hi all,
>> > I've tried as suggested by jason with this semplified piece of code:
>> > public class MainEntryPoint implements EntryPoint{
>>
>> >    private Marker marker;
>> >    private MapWidget map;
>>
>> >    public MainEntryPoint() {
>> >    }
>>
>> >    /**
>> >     * The entry point method, called automatically by loading a
>> > module
>> >     * that declares an implementing class as an entry-point
>> >     */
>> >    public void onModuleLoad() {
>>
>> >        map = new MapWidget(LatLng.newInstance(38.1890087,
>> > 15.5648162), 12);
>>
>> >        map.checkResizeAndCenter();
>> >        RootPanel.get().add(map);
>> >        Timer t = new Timer(){
>> >           �...@override
>> >            public void run() {
>> >                for (int i = 0; i < 10; i++)
>> >                {
>> >                    map.clearOverlays();
>> >                    map.addOverlay(createMarker());
>> >                }
>> >            }
>> >        };
>> >        t.scheduleRepeating(3000);
>>
>> >        //180209Miki:per prima cosa devo caricare le api
>> > *dinamicamente*
>> >        //...poi tutto il resto di conseguenza
>>
>> >        //lookupKey(Window.Location.getHost());
>>
>> >    }
>> >    public Marker createMarker()
>> >    {
>> >        marker = null;
>> >        marker = new Marker(LatLng.newInstance(new Double(15), new
>> > Double(38)));
>> >        return marker;
>>
>> >    }
>> > }
>>
>> > I would expect memory doesn't increase.. it doesn't
>> > clearOverlays does not remove references with ie7
>> > any workaround...?
>> > please help, thx,
>> > Michela
>>
>> > On 24 Feb, 20:22, koalina  wrote:
>> >> commenting the addOverlay, memory usage is costant...
>> >> that's why i think there's something wrong with the clearOverlays..
>> >> thx for help,
>> >> michela
>>
>> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>>
>> >> > Yeah, you are right.
>>
>> >> > One thing you could try is to comment out the 'addOverlay()' call and
>> >> > measure your memory again.  You won't see anything, but it will tell
>> >> > you if this is the problem.
>>
>> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>>
>> >> > > but i call the clerOverlays each time i run the timer.. at each loop
>> >> > > the markers should be deallocated... aren't they?
>> >> > > Michela
>>
>> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
>> >> > >> Think about what your code is doing here.
>>
>> >> > >> You are allocating marker objects and adding them to the map every
>> >> > >> time your timer expires.
>> >> > >> The map will track these things for you until you call 
>> >> > >> map.removeOverlay().
>>
>> >> > >> My guess is that you have hundreds of markers added to the map, all
>> >> > >> stacked on top of each other.
>>
>> >> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>>
>> >> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>>
>> >> > >> > Hi all, I've found the cause of the memory leak isolating by some
>> >> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
>> >> > >> > the map.addOverlay(createMarker(point,  myObject));
>>
>> >> > >> > where createMarker is:
>>
>> >> > >> > Icon icon = Icon.newInstance(baseIcon);
>>
>> >> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
>> >> > >> > (nave)+"_ship.png");
>>
>> >> > >> >        GWT.log("Carico i

Re: Memory Leak with IE7

2009-02-25 Thread koalina

thx eric, the problem is that in gwt i have to instantiate a new
marker object every time i add a marker: in fact it's not possible to
update the "options", but they are defined only in the constructor.So,
how can i solve with this application?is there any patch for google
maps api for gwt?
thx,

Michela

On Feb 25, 6:24 pm, Eric Ayers  wrote:
> I've been able to reproduce a leak in pure JavaScript without any GWT.
>  This issue is described in the Maps API issue tracker
>
> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> I attached some sample JavaScript for creating a pool of markers
> instead of removing them from the map.
>
> -Eric.
>
> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> > hi all,
> > I've tried as suggested by jason with this semplified piece of code:
> > public class MainEntryPoint implements EntryPoint{
>
> >    private Marker marker;
> >    private MapWidget map;
>
> >    public MainEntryPoint() {
> >    }
>
> >    /**
> >     * The entry point method, called automatically by loading a
> > module
> >     * that declares an implementing class as an entry-point
> >     */
> >    public void onModuleLoad() {
>
> >        map = new MapWidget(LatLng.newInstance(38.1890087,
> > 15.5648162), 12);
>
> >        map.checkResizeAndCenter();
> >        RootPanel.get().add(map);
> >        Timer t = new Timer(){
> >           �...@override
> >            public void run() {
> >                for (int i = 0; i < 10; i++)
> >                {
> >                    map.clearOverlays();
> >                    map.addOverlay(createMarker());
> >                }
> >            }
> >        };
> >        t.scheduleRepeating(3000);
>
> >        //180209Miki:per prima cosa devo caricare le api
> > *dinamicamente*
> >        //...poi tutto il resto di conseguenza
>
> >        //lookupKey(Window.Location.getHost());
>
> >    }
> >    public Marker createMarker()
> >    {
> >        marker = null;
> >        marker = new Marker(LatLng.newInstance(new Double(15), new
> > Double(38)));
> >        return marker;
>
> >    }
> > }
>
> > I would expect memory doesn't increase.. it doesn't
> > clearOverlays does not remove references with ie7
> > any workaround...?
> > please help, thx,
> > Michela
>
> > On 24 Feb, 20:22, koalina  wrote:
> >> commenting the addOverlay, memory usage is costant...
> >> that's why i think there's something wrong with the clearOverlays..
> >> thx for help,
> >> michela
>
> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> >> > Yeah, you are right.
>
> >> > One thing you could try is to comment out the 'addOverlay()' call and
> >> > measure your memory again.  You won't see anything, but it will tell
> >> > you if this is the problem.
>
> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> >> > > but i call the clerOverlays each time i run the timer.. at each loop
> >> > > the markers should be deallocated... aren't they?
> >> > > Michela
>
> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> >> > >> Think about what your code is doing here.
>
> >> > >> You are allocating marker objects and adding them to the map every
> >> > >> time your timer expires.
> >> > >> The map will track these things for you until you call 
> >> > >> map.removeOverlay().
>
> >> > >> My guess is that you have hundreds of markers added to the map, all
> >> > >> stacked on top of each other.
>
> >> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> >> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> >> > >> > Hi all, I've found the cause of the memory leak isolating by some
> >> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
> >> > >> > the map.addOverlay(createMarker(point,  myObject));
>
> >> > >> > where createMarker is:
>
> >> > >> > Icon icon = Icon.newInstance(baseIcon);
>
> >> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> >> > >> > (nave)+"_ship.png");
>
> >> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> >> > >> >        LabeledMarkerOptions options = 
> >> > >> > LabeledMarkerOptions.newInstance
> >> > >> > ();
> >> > >> >        options.setTitle(nave.getNomeNave());
> >> > >> >        options.setIcon(icon);
>
> >> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> >> > >> >        options.setLabelClass("labeledMarker");
>
> >> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> >> > >> > così...
> >> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
> >> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
> >> > >> >        //altrimenti devo shiftare la label di due posti a 
> >> > >> > sinistra...
> >> > >> >        else
> >> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
> >> > >> > //
>
> >> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> >> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> >> > >> > () {
>
>

Re: Memory Leak with IE7

2009-02-25 Thread Matas

hi, Michela,
I have similar problem (in different context) with gwt 1.5.3. and
IE6/7 memory leaks. After some findings I found that leaking is caused
by trasparency filter:

style.filter = 'alpha(opacity=0)';

Try to remove transparency effects and then check for memory leaks.

Please, take a look at the issue for details:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=popuppanel%20leak#c5

--
Matas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-25 Thread Eric Ayers

I've been able to reproduce a leak in pure JavaScript without any GWT.
 This issue is described in the Maps API issue tracker

http://code.google.com/p/gmaps-api-issues/issues/detail?id=945

I attached some sample JavaScript for creating a pool of markers
instead of removing them from the map.

-Eric.

On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> hi all,
> I've tried as suggested by jason with this semplified piece of code:
> public class MainEntryPoint implements EntryPoint{
>
>    private Marker marker;
>    private MapWidget map;
>
>    public MainEntryPoint() {
>    }
>
>    /**
>     * The entry point method, called automatically by loading a
> module
>     * that declares an implementing class as an entry-point
>     */
>    public void onModuleLoad() {
>
>
>
>
>
>        map = new MapWidget(LatLng.newInstance(38.1890087,
> 15.5648162), 12);
>
>        map.checkResizeAndCenter();
>        RootPanel.get().add(map);
>        Timer t = new Timer(){
>           �...@override
>            public void run() {
>                for (int i = 0; i < 10; i++)
>                {
>                    map.clearOverlays();
>                    map.addOverlay(createMarker());
>                }
>            }
>        };
>        t.scheduleRepeating(3000);
>
>        //180209Miki:per prima cosa devo caricare le api
> *dinamicamente*
>        //...poi tutto il resto di conseguenza
>
>        //lookupKey(Window.Location.getHost());
>
>
>    }
>    public Marker createMarker()
>    {
>        marker = null;
>        marker = new Marker(LatLng.newInstance(new Double(15), new
> Double(38)));
>        return marker;
>
>
>
>    }
> }
>
> I would expect memory doesn't increase.. it doesn't
> clearOverlays does not remove references with ie7
> any workaround...?
> please help, thx,
> Michela
>
> On 24 Feb, 20:22, koalina  wrote:
>> commenting the addOverlay, memory usage is costant...
>> that's why i think there's something wrong with the clearOverlays..
>> thx for help,
>> michela
>>
>> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>>
>> > Yeah, you are right.
>>
>> > One thing you could try is to comment out the 'addOverlay()' call and
>> > measure your memory again.  You won't see anything, but it will tell
>> > you if this is the problem.
>>
>> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>>
>> > > but i call the clerOverlays each time i run the timer.. at each loop
>> > > the markers should be deallocated... aren't they?
>> > > Michela
>>
>> > > On 24 Feb, 17:31, Eric Ayers  wrote:
>> > >> Think about what your code is doing here.
>>
>> > >> You are allocating marker objects and adding them to the map every
>> > >> time your timer expires.
>> > >> The map will track these things for you until you call 
>> > >> map.removeOverlay().
>>
>> > >> My guess is that you have hundreds of markers added to the map, all
>> > >> stacked on top of each other.
>>
>> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>>
>> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>>
>> > >> > Hi all, I've found the cause of the memory leak isolating by some
>> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
>> > >> > the map.addOverlay(createMarker(point,  myObject));
>>
>> > >> > where createMarker is:
>>
>> > >> > Icon icon = Icon.newInstance(baseIcon);
>>
>> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
>> > >> > (nave)+"_ship.png");
>>
>> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
>> > >> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
>> > >> > ();
>> > >> >        options.setTitle(nave.getNomeNave());
>> > >> >        options.setIcon(icon);
>>
>> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>>
>> > >> >        options.setLabelClass("labeledMarker");
>>
>> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
>> > >> > così...
>> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
>> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
>> > >> >        //altrimenti devo shiftare la label di due posti a sinistra...
>> > >> >        else
>> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
>> > >> > //
>>
>> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>>
>> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
>> > >> > () {
>>
>> > >> >            public void onClick(MarkerClickEvent event) {
>> > >> >                //050209Miki: gestisco qui il popup informativo
>> > >> >                InfoWindow info = map.getInfoWindow();
>> > >> >                info.open(event.getSender(),
>>
>> > >> >                new InfoWindowContent(
>> > >> >                "> > >> > " +
>> > >> >                "class='info-window'>" +
>> > >> >                //"" +
>> > >> >                "Nome nave: "+nave.getNomeNave()+"" +
>> > >> >                "Localita' Partenza: " +nave

Re: Memory Leak with IE7

2009-02-25 Thread koalina

hi all,
I've tried as suggested by jason with this semplified piece of code:
public class MainEntryPoint implements EntryPoint{

private Marker marker;
private MapWidget map;

public MainEntryPoint() {
}

/**
 * The entry point method, called automatically by loading a
module
 * that declares an implementing class as an entry-point
 */
public void onModuleLoad() {





map = new MapWidget(LatLng.newInstance(38.1890087,
15.5648162), 12);

map.checkResizeAndCenter();
RootPanel.get().add(map);
Timer t = new Timer(){
@Override
public void run() {
for (int i = 0; i < 10; i++)
{
map.clearOverlays();
map.addOverlay(createMarker());
}
}
};
t.scheduleRepeating(3000);

//180209Miki:per prima cosa devo caricare le api
*dinamicamente*
//...poi tutto il resto di conseguenza

//lookupKey(Window.Location.getHost());


}
public Marker createMarker()
{
marker = null;
marker = new Marker(LatLng.newInstance(new Double(15), new
Double(38)));
return marker;



}
}

I would expect memory doesn't increase.. it doesn't
clearOverlays does not remove references with ie7
any workaround...?
please help, thx,
Michela

On 24 Feb, 20:22, koalina  wrote:
> commenting the addOverlay, memory usage is costant...
> that's why i think there's something wrong with the clearOverlays..
> thx for help,
> michela
>
> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> > Yeah, you are right.
>
> > One thing you could try is to comment out the 'addOverlay()' call and
> > measure your memory again.  You won't see anything, but it will tell
> > you if this is the problem.
>
> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> > > but i call the clerOverlays each time i run the timer.. at each loop
> > > the markers should be deallocated... aren't they?
> > > Michela
>
> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> > >> Think about what your code is doing here.
>
> > >> You are allocating marker objects and adding them to the map every
> > >> time your timer expires.
> > >> The map will track these things for you until you call 
> > >> map.removeOverlay().
>
> > >> My guess is that you have hundreds of markers added to the map, all
> > >> stacked on top of each other.
>
> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> > >> > Hi all, I've found the cause of the memory leak isolating by some
> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
> > >> > the map.addOverlay(createMarker(point,  myObject));
>
> > >> > where createMarker is:
>
> > >> > Icon icon = Icon.newInstance(baseIcon);
>
> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> > >> > (nave)+"_ship.png");
>
> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> > >> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
> > >> > ();
> > >> >        options.setTitle(nave.getNomeNave());
> > >> >        options.setIcon(icon);
>
> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> > >> >        options.setLabelClass("labeledMarker");
>
> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> > >> > così...
> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
> > >> >        //altrimenti devo shiftare la label di due posti a sinistra...
> > >> >        else
> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
> > >> > //
>
> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> > >> > () {
>
> > >> >            public void onClick(MarkerClickEvent event) {
> > >> >                //050209Miki: gestisco qui il popup informativo
> > >> >                InfoWindow info = map.getInfoWindow();
> > >> >                info.open(event.getSender(),
>
> > >> >                new InfoWindowContent(
> > >> >                " > >> > " +
> > >> >                "class='info-window'>" +
> > >> >                //"" +
> > >> >                "Nome nave: "+nave.getNomeNave()+"" +
> > >> >                "Localita' Partenza: " +nave.getLocalitaPartenza()
> > >> > +"" +
> > >> >                "Localita' Arrivo: "+nave.getLocalitaPartenza()+" > >> >>" //+
> > >> >                //"Merci Pericolose a Bordo: " +
> > >> > nave.getMerciPericolose()+""
> > >> >                ));
>
> > >> >            }
>
> > >> >        });
>
> > >> >        return marker;
>
> > >> > It' squite strange but now I'm sure the issue is with this piece of
> > >> > code..
> > >> > is     map.clearOverlays(); sufficient to deallocate the previous
> > >> > markers?
> >

Re: Memory Leak with IE7

2009-02-24 Thread koalina

commenting the addOverlay, memory usage is costant...
that's why i think there's something wrong with the clearOverlays..
thx for help,
michela


On Feb 24, 5:47 pm, Eric Ayers  wrote:
> Yeah, you are right.
>
> One thing you could try is to comment out the 'addOverlay()' call and
> measure your memory again.  You won't see anything, but it will tell
> you if this is the problem.
>
> On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> > but i call the clerOverlays each time i run the timer.. at each loop
> > the markers should be deallocated... aren't they?
> > Michela
>
> > On 24 Feb, 17:31, Eric Ayers  wrote:
> >> Think about what your code is doing here.
>
> >> You are allocating marker objects and adding them to the map every
> >> time your timer expires.
> >> The map will track these things for you until you call map.removeOverlay().
>
> >> My guess is that you have hundreds of markers added to the map, all
> >> stacked on top of each other.
>
> >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> >> > Hi all, I've found the cause of the memory leak isolating by some
> >> > piece of code. It seems not to be caused by gwt-ext but when I make
> >> > the map.addOverlay(createMarker(point,  myObject));
>
> >> > where createMarker is:
>
> >> > Icon icon = Icon.newInstance(baseIcon);
>
> >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> >> > (nave)+"_ship.png");
>
> >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> >> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
> >> > ();
> >> >        options.setTitle(nave.getNomeNave());
> >> >        options.setIcon(icon);
>
> >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> >> >        options.setLabelClass("labeledMarker");
>
> >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> >> > così...
> >> >        if((Integer.toString(nave.getIdNave())).length()==1)
> >> >            options.setLabelOffset(Size.newInstance(1, -26));
> >> >        //altrimenti devo shiftare la label di due posti a sinistra...
> >> >        else
> >> >            options.setLabelOffset(Size.newInstance(-2, -26));
> >> > //
>
> >> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> >> > () {
>
> >> >            public void onClick(MarkerClickEvent event) {
> >> >                //050209Miki: gestisco qui il popup informativo
> >> >                InfoWindow info = map.getInfoWindow();
> >> >                info.open(event.getSender(),
>
> >> >                new InfoWindowContent(
> >> >                " >> > " +
> >> >                "class='info-window'>" +
> >> >                //"" +
> >> >                "Nome nave: "+nave.getNomeNave()+"" +
> >> >                "Localita' Partenza: " +nave.getLocalitaPartenza()
> >> > +"" +
> >> >                "Localita' Arrivo: "+nave.getLocalitaPartenza()+" >> >>" //+
> >> >                //"Merci Pericolose a Bordo: " +
> >> > nave.getMerciPericolose()+""
> >> >                ));
>
> >> >            }
>
> >> >        });
>
> >> >        return marker;
>
> >> > It' squite strange but now I'm sure the issue is with this piece of
> >> > code..
> >> > is     map.clearOverlays(); sufficient to deallocate the previous
> >> > markers?
> >> > thx,
> >> > Michela
>
> >> > On 24 Feb, 10:56, Alexey_Tsiunchik  wrote:
> >> >> Hello,
>
> >> >> We already have discussion about GWT memory management 
> >> >> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> >> >> Tuesday, February 24, 2009, 11:31:44 AM, you wrote:
>
> >> >> > I've tried reloading, I made a mistake some posts ago.. memory
> >> >> > decreases only if the browser is closed and then opened again. Only
> >> >> > reloading causes a bigger increment of memory usage.
> >> >> > On 24 Feb, 10:20, koalina  wrote:
> >> >> >> Hi alex,
> >> >> >> sorry but I can't see how fix the number of rows as I'm using a
> >> >> >> memoryProxy object.
> >> >> >> So, the timer is defined as follows:
> >> >> >> Timer t = new Timer() {
>
> >> >> >>             public void run() {
> >> >> >>                 getShipInfo();
>
> >> >> >>             }
>
> >> >> >>         };
> >> >> >>  where getShipInfo() is
>
> >> >> >> private void getShipInfo() {
>
> >> >> >>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
> >> >> >> AsyncCallback() {
>
> >> >> >>             public void onFailure(Throwable caught) {
> >> >> >>                 throw new UnsupportedOperationException("Not 
> >> >> >> supported
> >> >> >> yet.");
> >> >> >>             }
>
> >> >> >>             public void onSuccess(Object result) {
> >> >> >>                 Vector listaNavi = (Vector) result;
> >> >> >>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
> >> >> >> null);
> >> >> >>                 if (li

Re: Memory Leak with IE7

2009-02-24 Thread Eric Ayers

Yeah, you are right.

One thing you could try is to comment out the 'addOverlay()' call and
measure your memory again.  You won't see anything, but it will tell
you if this is the problem.

On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> but i call the clerOverlays each time i run the timer.. at each loop
> the markers should be deallocated... aren't they?
> Michela
>
> On 24 Feb, 17:31, Eric Ayers  wrote:
>> Think about what your code is doing here.
>>
>> You are allocating marker objects and adding them to the map every
>> time your timer expires.
>> The map will track these things for you until you call map.removeOverlay().
>>
>> My guess is that you have hundreds of markers added to the map, all
>> stacked on top of each other.
>>
>> http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>>
>> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>>
>> > Hi all, I've found the cause of the memory leak isolating by some
>> > piece of code. It seems not to be caused by gwt-ext but when I make
>> > the map.addOverlay(createMarker(point,  myObject));
>>
>> > where createMarker is:
>>
>> > Icon icon = Icon.newInstance(baseIcon);
>>
>> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
>> > (nave)+"_ship.png");
>>
>> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
>> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
>> > ();
>> >        options.setTitle(nave.getNomeNave());
>> >        options.setIcon(icon);
>>
>> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>>
>> >        options.setLabelClass("labeledMarker");
>>
>> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
>> > così...
>> >        if((Integer.toString(nave.getIdNave())).length()==1)
>> >            options.setLabelOffset(Size.newInstance(1, -26));
>> >        //altrimenti devo shiftare la label di due posti a sinistra...
>> >        else
>> >            options.setLabelOffset(Size.newInstance(-2, -26));
>> > //
>>
>> >        LabeledMarker marker = new LabeledMarker(point, options);
>>
>> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
>> > () {
>>
>> >            public void onClick(MarkerClickEvent event) {
>> >                //050209Miki: gestisco qui il popup informativo
>> >                InfoWindow info = map.getInfoWindow();
>> >                info.open(event.getSender(),
>>
>> >                new InfoWindowContent(
>> >                "> > " +
>> >                "class='info-window'>" +
>> >                //"" +
>> >                "Nome nave: "+nave.getNomeNave()+"" +
>> >                "Localita' Partenza: " +nave.getLocalitaPartenza()
>> > +"" +
>> >                "Localita' Arrivo: "+nave.getLocalitaPartenza()+"> >>" //+
>> >                //"Merci Pericolose a Bordo: " +
>> > nave.getMerciPericolose()+""
>> >                ));
>>
>> >            }
>>
>> >        });
>>
>> >        return marker;
>>
>> > It' squite strange but now I'm sure the issue is with this piece of
>> > code..
>> > is     map.clearOverlays(); sufficient to deallocate the previous
>> > markers?
>> > thx,
>> > Michela
>>
>> > On 24 Feb, 10:56, Alexey_Tsiunchik  wrote:
>> >> Hello,
>>
>> >> We already have discussion about GWT memory management 
>> >> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>>
>> >> Tuesday, February 24, 2009, 11:31:44 AM, you wrote:
>>
>> >> > I've tried reloading, I made a mistake some posts ago.. memory
>> >> > decreases only if the browser is closed and then opened again. Only
>> >> > reloading causes a bigger increment of memory usage.
>> >> > On 24 Feb, 10:20, koalina  wrote:
>> >> >> Hi alex,
>> >> >> sorry but I can't see how fix the number of rows as I'm using a
>> >> >> memoryProxy object.
>> >> >> So, the timer is defined as follows:
>> >> >> Timer t = new Timer() {
>>
>> >> >>             public void run() {
>> >> >>                 getShipInfo();
>>
>> >> >>             }
>>
>> >> >>         };
>> >> >>  where getShipInfo() is
>>
>> >> >> private void getShipInfo() {
>>
>> >> >>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
>> >> >> AsyncCallback() {
>>
>> >> >>             public void onFailure(Throwable caught) {
>> >> >>                 throw new UnsupportedOperationException("Not supported
>> >> >> yet.");
>> >> >>             }
>>
>> >> >>             public void onSuccess(Object result) {
>> >> >>                 Vector listaNavi = (Vector) result;
>> >> >>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
>> >> >> null);
>> >> >>                 if (listaNavi.size()>0) {
>>
>> >> >>                     Object[][] data = new Object[listaNavi.size()]
>> >> >> [15];
>> >> >>                     Iterator i = listaNavi.iterator();
>> >> >>                     int index = 0;
>>
>> >> >>                     while (i.hasNext()) {
>> >> >>                         Nave unaNave = (Nave) i.next();
>> >> >>                

Re: Memory Leak with IE7

2009-02-24 Thread koalina

but i call the clerOverlays each time i run the timer.. at each loop
the markers should be deallocated... aren't they?
Michela

On 24 Feb, 17:31, Eric Ayers  wrote:
> Think about what your code is doing here.
>
> You are allocating marker objects and adding them to the map every
> time your timer expires.
> The map will track these things for you until you call map.removeOverlay().
>
> My guess is that you have hundreds of markers added to the map, all
> stacked on top of each other.
>
> http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> > Hi all, I've found the cause of the memory leak isolating by some
> > piece of code. It seems not to be caused by gwt-ext but when I make
> > the map.addOverlay(createMarker(point,  myObject));
>
> > where createMarker is:
>
> > Icon icon = Icon.newInstance(baseIcon);
>
> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> > (nave)+"_ship.png");
>
> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
> > ();
> >        options.setTitle(nave.getNomeNave());
> >        options.setIcon(icon);
>
> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> >        options.setLabelClass("labeledMarker");
>
> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> > così...
> >        if((Integer.toString(nave.getIdNave())).length()==1)
> >            options.setLabelOffset(Size.newInstance(1, -26));
> >        //altrimenti devo shiftare la label di due posti a sinistra...
> >        else
> >            options.setLabelOffset(Size.newInstance(-2, -26));
> > //
>
> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> > () {
>
> >            public void onClick(MarkerClickEvent event) {
> >                //050209Miki: gestisco qui il popup informativo
> >                InfoWindow info = map.getInfoWindow();
> >                info.open(event.getSender(),
>
> >                new InfoWindowContent(
> >                " > " +
> >                "class='info-window'>" +
> >                //"" +
> >                "Nome nave: "+nave.getNomeNave()+"" +
> >                "Localita' Partenza: " +nave.getLocalitaPartenza()
> > +"" +
> >                "Localita' Arrivo: "+nave.getLocalitaPartenza()+" >>" //+
> >                //"Merci Pericolose a Bordo: " +
> > nave.getMerciPericolose()+""
> >                ));
>
> >            }
>
> >        });
>
> >        return marker;
>
> > It' squite strange but now I'm sure the issue is with this piece of
> > code..
> > is     map.clearOverlays(); sufficient to deallocate the previous
> > markers?
> > thx,
> > Michela
>
> > On 24 Feb, 10:56, Alexey_Tsiunchik  wrote:
> >> Hello,
>
> >> We already have discussion about GWT memory management 
> >> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> >> Tuesday, February 24, 2009, 11:31:44 AM, you wrote:
>
> >> > I've tried reloading, I made a mistake some posts ago.. memory
> >> > decreases only if the browser is closed and then opened again. Only
> >> > reloading causes a bigger increment of memory usage.
> >> > On 24 Feb, 10:20, koalina  wrote:
> >> >> Hi alex,
> >> >> sorry but I can't see how fix the number of rows as I'm using a
> >> >> memoryProxy object.
> >> >> So, the timer is defined as follows:
> >> >> Timer t = new Timer() {
>
> >> >>             public void run() {
> >> >>                 getShipInfo();
>
> >> >>             }
>
> >> >>         };
> >> >>  where getShipInfo() is
>
> >> >> private void getShipInfo() {
>
> >> >>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
> >> >> AsyncCallback() {
>
> >> >>             public void onFailure(Throwable caught) {
> >> >>                 throw new UnsupportedOperationException("Not supported
> >> >> yet.");
> >> >>             }
>
> >> >>             public void onSuccess(Object result) {
> >> >>                 Vector listaNavi = (Vector) result;
> >> >>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
> >> >> null);
> >> >>                 if (listaNavi.size()>0) {
>
> >> >>                     Object[][] data = new Object[listaNavi.size()]
> >> >> [15];
> >> >>                     Iterator i = listaNavi.iterator();
> >> >>                     int index = 0;
>
> >> >>                     while (i.hasNext()) {
> >> >>                         Nave unaNave = (Nave) i.next();
> >> >>                         data[index] = new Object[]{
> >> >>                             unaNave.getIdNave(), unaNave.getNomeNave
> >> >> (),
>
> >> >>                             unaNave.getLocalita(), unaNave.getImbarco
> >> >> (),
>
> >> >>                             etc
>
> >> >>                         GWT.log("Nave "+data[index][0]+data[index]
> >> >> [1].toString(), null);
>
> >> >>

Re: Memory Leak with IE7

2009-02-24 Thread Eric Ayers

Think about what your code is doing here.

You are allocating marker objects and adding them to the map every
time your timer expires.
The map will track these things for you until you call map.removeOverlay().

My guess is that you have hundreds of markers added to the map, all
stacked on top of each other.

http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html


On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> Hi all, I've found the cause of the memory leak isolating by some
> piece of code. It seems not to be caused by gwt-ext but when I make
> the map.addOverlay(createMarker(point,  myObject));
>
> where createMarker is:
>
> Icon icon = Icon.newInstance(baseIcon);
>
>
>        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> (nave)+"_ship.png");
>
>        GWT.log("Carico immagine "+icon.getImageURL(), null);
>        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
> ();
>        options.setTitle(nave.getNomeNave());
>        options.setIcon(icon);
>
>        options.setLabelText(String.valueOf(nave.getIdNave()));
>
>        options.setLabelClass("labeledMarker");
>
>        //200209Miki: se l'id nave è lungo una solo cifra va bene
> così...
>        if((Integer.toString(nave.getIdNave())).length()==1)
>            options.setLabelOffset(Size.newInstance(1, -26));
>        //altrimenti devo shiftare la label di due posti a sinistra...
>        else
>            options.setLabelOffset(Size.newInstance(-2, -26));
> //
>
>
>
>
>
>        LabeledMarker marker = new LabeledMarker(point, options);
>
>
>        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> () {
>
>            public void onClick(MarkerClickEvent event) {
>                //050209Miki: gestisco qui il popup informativo
>                InfoWindow info = map.getInfoWindow();
>                info.open(event.getSender(),
>
>
>                new InfoWindowContent(
>                " " +
>                "class='info-window'>" +
>                //"" +
>                "Nome nave: "+nave.getNomeNave()+"" +
>                "Localita' Partenza: " +nave.getLocalitaPartenza()
> +"" +
>                "Localita' Arrivo: "+nave.getLocalitaPartenza()+">" //+
>                //"Merci Pericolose a Bordo: " +
> nave.getMerciPericolose()+""
>                ));
>
>            }
>
>        });
>
>        return marker;
>
> It' squite strange but now I'm sure the issue is with this piece of
> code..
> is     map.clearOverlays(); sufficient to deallocate the previous
> markers?
> thx,
> Michela
>
> On 24 Feb, 10:56, Alexey_Tsiunchik  wrote:
>> Hello,
>>
>> We already have discussion about GWT memory management 
>> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>>
>> Tuesday, February 24, 2009, 11:31:44 AM, you wrote:
>>
>>
>>
>> > I've tried reloading, I made a mistake some posts ago.. memory
>> > decreases only if the browser is closed and then opened again. Only
>> > reloading causes a bigger increment of memory usage.
>> > On 24 Feb, 10:20, koalina  wrote:
>> >> Hi alex,
>> >> sorry but I can't see how fix the number of rows as I'm using a
>> >> memoryProxy object.
>> >> So, the timer is defined as follows:
>> >> Timer t = new Timer() {
>>
>> >>             public void run() {
>> >>                 getShipInfo();
>>
>> >>             }
>>
>> >>         };
>> >>  where getShipInfo() is
>>
>> >> private void getShipInfo() {
>>
>> >>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
>> >> AsyncCallback() {
>>
>> >>             public void onFailure(Throwable caught) {
>> >>                 throw new UnsupportedOperationException("Not supported
>> >> yet.");
>> >>             }
>>
>> >>             public void onSuccess(Object result) {
>> >>                 Vector listaNavi = (Vector) result;
>> >>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
>> >> null);
>> >>                 if (listaNavi.size()>0) {
>>
>> >>                     Object[][] data = new Object[listaNavi.size()]
>> >> [15];
>> >>                     Iterator i = listaNavi.iterator();
>> >>                     int index = 0;
>>
>> >>                     while (i.hasNext()) {
>> >>                         Nave unaNave = (Nave) i.next();
>> >>                         data[index] = new Object[]{
>> >>                             unaNave.getIdNave(), unaNave.getNomeNave
>> >> (),
>>
>> >>                             unaNave.getLocalita(), unaNave.getImbarco
>> >> (),
>>
>> >>                             etc
>>
>> >>                         GWT.log("Nave "+data[index][0]+data[index]
>> >> [1].toString(), null);
>>
>> >>                         index++;
>> >>                         unaNave =  null;
>>
>> >>                     }
>> >>                     if (store!=null) {
>> >>                         store.removeAll();
>> >>                     }
>> >>                     MemoryProxy proxy = new MemoryProxy(data);
>> >>                     ArrayReader r

Re: Memory Leak with IE7

2009-02-24 Thread Jason Essington

The engineers at google are very vigilant at avoiding activities that  
cause IE to leak, so my first inclination would be to first look at  
your third party libs particularly if they perform any manual DOM  
manipulation or JSNI. It is rather common on this list to see people  
blaming GWT for some bug that later turns out to actually be behavior  
of some third party lib.

See if you can't simplify your UI (for testing purposes) so that no  
third party libs are needed, and then see what happens with your  
memory usage

-jason


On Feb 24, 2009, at 2:31 AM, koalina wrote:

>
> I've tried reloading, I made a mistake some posts ago.. memory
> decreases only if the browser is closed and then opened again. Only
> reloading causes a bigger increment of memory usage.
>
> On 24 Feb, 10:20, koalina  wrote:
>> Hi alex,
>> sorry but I can't see how fix the number of rows as I'm using a
>> memoryProxy object.
>> So, the timer is defined as follows:
>> Timer t = new Timer() {
>>
>> public void run() {
>> getShipInfo();
>>
>> }
>>
>> };
>>  where getShipInfo() is
>>
>> private void getShipInfo() {
>>
>> MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
>> AsyncCallback() {
>>
>> public void onFailure(Throwable caught) {
>> throw new UnsupportedOperationException("Not  
>> supported
>> yet.");
>> }
>>
>> public void onSuccess(Object result) {
>> Vector listaNavi = (Vector) result;
>> GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
>> null);
>> if (listaNavi.size()>0) {
>>
>> Object[][] data = new Object[listaNavi.size()]
>> [15];
>> Iterator i = listaNavi.iterator();
>> int index = 0;
>>
>> while (i.hasNext()) {
>> Nave unaNave = (Nave) i.next();
>> data[index] = new Object[]{
>> unaNave.getIdNave(), unaNave.getNomeNave
>> (),
>>
>> unaNave.getLocalita(), unaNave.getImbarco
>> (),
>>
>> etc
>>
>> GWT.log("Nave "+data[index][0]+data[index]
>> [1].toString(), null);
>>
>> index++;
>> unaNave =  null;
>>
>> }
>> if (store!=null) {
>> store.removeAll();
>> }
>> MemoryProxy proxy = new MemoryProxy(data);
>> ArrayReader reader = new ArrayReader(recordDef);
>> store = new Store(proxy, reader);
>> store.load();
>> store.commitChanges();
>>
>> grid.reconfigure(store, columnModel);
>> //240209Miki: x diminuire memory leak ...
>> grid.clear();
>> data = null;
>> proxy = null;
>> reader =null;
>> store = null;
>>
>> }
>> }
>>
>> });
>>
>> }
>>
>> I've tried with FF and there's no problem...so it's an issue with  
>> ie7.
>> Can you see some big error in the code i posted just above? thx for
>> help!
>> Michela
>>
>> On 24 Feb, 09:48, "alex.d"  wrote:
>>
>>> Assuming adding/removing markers to/from the map is leakless (google
>>> probably knows how to do this ;-) we are left with gwt-ext grid.  
>>> Every
>>> 10 sec you remove old rows and add new ones. So you have some DOM-
>>> Elements (a table row) that are removed/created every 10 seconds.
>>> Probably it's a grid's particular implementation that leaks. But  
>>> most
>>> probably it's just IE that doesn't really remove garbage properly  
>>> even
>>> when it can/should. So what can you do?
>>> 1. If it's grid that leaks: dump it - implement smth. yourself with
>>> vanilla GWT.
>>> 2. It it's IE: let's say the total ammount of markers is never  
>>> bigger
>>> than 25 - you can create 25 rows in the table and instead of adding/
>>> removing them you just change the text. This way you'll have  
>>> slightly
>>> more memory allocated at the beginning but hopefully no leaks while
>>> running because no DOM-Elements are created/removed.
>>
>>> hth
>>
>>> On 24 Feb., 09:14, koalina  wrote:
>>
 Hi Jason, yes, reloading page cause memory usage fall out.
 My app is quite simple: a gwt ext tab panel, the first tab  
 showing the
 map widget, the second one a gwt ext grid with a few rows (more or
 less 10), each one with some information about the markers showed.
 I've three "thread", implemented as Timer, which refresh  
 positions of
 markers, informations and last update time. Each thread make a rpc
 call and is always running, even when the tab of interest is not
 active
 Do you see some critical issue in this application?
>>>

Re: Memory Leak with IE7

2009-02-24 Thread koalina

Hi all, I've found the cause of the memory leak isolating by some
piece of code. It seems not to be caused by gwt-ext but when I make
the map.addOverlay(createMarker(point,  myObject));

where createMarker is:

Icon icon = Icon.newInstance(baseIcon);


icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
(nave)+"_ship.png");

GWT.log("Carico immagine "+icon.getImageURL(), null);
LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
();
options.setTitle(nave.getNomeNave());
options.setIcon(icon);

options.setLabelText(String.valueOf(nave.getIdNave()));

options.setLabelClass("labeledMarker");

//200209Miki: se l'id nave è lungo una solo cifra va bene
così...
if((Integer.toString(nave.getIdNave())).length()==1)
options.setLabelOffset(Size.newInstance(1, -26));
//altrimenti devo shiftare la label di due posti a sinistra...
else
options.setLabelOffset(Size.newInstance(-2, -26));
//





LabeledMarker marker = new LabeledMarker(point, options);


((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
() {

public void onClick(MarkerClickEvent event) {
//050209Miki: gestisco qui il popup informativo
InfoWindow info = map.getInfoWindow();
info.open(event.getSender(),


new InfoWindowContent(
"" +
//"" +
"Nome nave: "+nave.getNomeNave()+"" +
"Localita' Partenza: " +nave.getLocalitaPartenza()
+"" +
"Localita' Arrivo: "+nave.getLocalitaPartenza()+"" //+
//"Merci Pericolose a Bordo: " +
nave.getMerciPericolose()+""
));

}

});

return marker;

It' squite strange but now I'm sure the issue is with this piece of
code..
is map.clearOverlays(); sufficient to deallocate the previous
markers?
thx,
Michela

On 24 Feb, 10:56, Alexey_Tsiunchik  wrote:
> Hello,
>
> We already have discussion about GWT memory management 
> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> Tuesday, February 24, 2009, 11:31:44 AM, you wrote:
>
>
>
> > I've tried reloading, I made a mistake some posts ago.. memory
> > decreases only if the browser is closed and then opened again. Only
> > reloading causes a bigger increment of memory usage.
> > On 24 Feb, 10:20, koalina  wrote:
> >> Hi alex,
> >> sorry but I can't see how fix the number of rows as I'm using a
> >> memoryProxy object.
> >> So, the timer is defined as follows:
> >> Timer t = new Timer() {
>
> >>             public void run() {
> >>                 getShipInfo();
>
> >>             }
>
> >>         };
> >>  where getShipInfo() is
>
> >> private void getShipInfo() {
>
> >>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
> >> AsyncCallback() {
>
> >>             public void onFailure(Throwable caught) {
> >>                 throw new UnsupportedOperationException("Not supported
> >> yet.");
> >>             }
>
> >>             public void onSuccess(Object result) {
> >>                 Vector listaNavi = (Vector) result;
> >>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
> >> null);
> >>                 if (listaNavi.size()>0) {
>
> >>                     Object[][] data = new Object[listaNavi.size()]
> >> [15];
> >>                     Iterator i = listaNavi.iterator();
> >>                     int index = 0;
>
> >>                     while (i.hasNext()) {
> >>                         Nave unaNave = (Nave) i.next();
> >>                         data[index] = new Object[]{
> >>                             unaNave.getIdNave(), unaNave.getNomeNave
> >> (),
>
> >>                             unaNave.getLocalita(), unaNave.getImbarco
> >> (),
>
> >>                             etc
>
> >>                         GWT.log("Nave "+data[index][0]+data[index]
> >> [1].toString(), null);
>
> >>                         index++;
> >>                         unaNave =  null;
>
> >>                     }
> >>                     if (store!=null) {
> >>                         store.removeAll();
> >>                     }
> >>                     MemoryProxy proxy = new MemoryProxy(data);
> >>                     ArrayReader reader = new ArrayReader(recordDef);
> >>                     store = new Store(proxy, reader);
> >>                     store.load();
> >>                     store.commitChanges();
>
> >>                     grid.reconfigure(store, columnModel);
> >>                     //240209Miki: x diminuire memory leak ...
> >>                     grid.clear();
> >>                     data = null;
> >>                     proxy = null;
> >>                     reader =null;
> >>                     store = null;
>
> >>                 }
> >>             }
>
> >>         });
>
> >> }
>
> >> I've tried with FF and there's no problem...so it's a

Re[2]: Memory Leak with IE7

2009-02-24 Thread Alexey_Tsiunchik

Hello,

We already have discussion about GWT memory management here: 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a690a63c53af27bc


Tuesday, February 24, 2009, 11:31:44 AM, you wrote:

> I've tried reloading, I made a mistake some posts ago.. memory
> decreases only if the browser is closed and then opened again. Only
> reloading causes a bigger increment of memory usage.

> On 24 Feb, 10:20, koalina  wrote:
>> Hi alex,
>> sorry but I can't see how fix the number of rows as I'm using a
>> memoryProxy object.
>> So, the timer is defined as follows:
>> Timer t = new Timer() {
>>
>>             public void run() {
>>                 getShipInfo();
>>
>>             }
>>
>>         };
>>  where getShipInfo() is
>>
>> private void getShipInfo() {
>>
>>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
>> AsyncCallback() {
>>
>>             public void onFailure(Throwable caught) {
>>                 throw new UnsupportedOperationException("Not supported
>> yet.");
>>             }
>>
>>             public void onSuccess(Object result) {
>>                 Vector listaNavi = (Vector) result;
>>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
>> null);
>>                 if (listaNavi.size()>0) {
>>
>>                     Object[][] data = new Object[listaNavi.size()]
>> [15];
>>                     Iterator i = listaNavi.iterator();
>>                     int index = 0;
>>
>>                     while (i.hasNext()) {
>>                         Nave unaNave = (Nave) i.next();
>>                         data[index] = new Object[]{
>>                             unaNave.getIdNave(), unaNave.getNomeNave
>> (),
>>
>>                             unaNave.getLocalita(), unaNave.getImbarco
>> (),
>>
>>                             etc
>>
>>                         GWT.log("Nave "+data[index][0]+data[index]
>> [1].toString(), null);
>>
>>                         index++;
>>                         unaNave =  null;
>>
>>                     }
>>                     if (store!=null) {
>>                         store.removeAll();
>>                     }
>>                     MemoryProxy proxy = new MemoryProxy(data);
>>                     ArrayReader reader = new ArrayReader(recordDef);
>>                     store = new Store(proxy, reader);
>>                     store.load();
>>                     store.commitChanges();
>>
>>                     grid.reconfigure(store, columnModel);
>>                     //240209Miki: x diminuire memory leak ...
>>                     grid.clear();
>>                     data = null;
>>                     proxy = null;
>>                     reader =null;
>>                     store = null;
>>
>>                 }
>>             }
>>
>>         });
>>
>> }
>>
>> I've tried with FF and there's no problem...so it's an issue with ie7.
>> Can you see some big error in the code i posted just above? thx for
>> help!
>> Michela
>>
>> On 24 Feb, 09:48, "alex.d"  wrote:
>>
>> > Assuming adding/removing markers to/from the map is leakless (google
>> > probably knows how to do this ;-) we are left with gwt-ext grid. Every
>> > 10 sec you remove old rows and add new ones. So you have some DOM-
>> > Elements (a table row) that are removed/created every 10 seconds.
>> > Probably it's a grid's particular implementation that leaks. But most
>> > probably it's just IE that doesn't really remove garbage properly even
>> > when it can/should. So what can you do?
>> > 1. If it's grid that leaks: dump it - implement smth. yourself with
>> > vanilla GWT.
>> > 2. It it's IE: let's say the total ammount of markers is never bigger
>> > than 25 - you can create 25 rows in the table and instead of adding/
>> > removing them you just change the text. This way you'll have slightly
>> > more memory allocated at the beginning but hopefully no leaks while
>> > running because no DOM-Elements are created/removed.
>>
>> > hth
>>
>> > On 24 Feb., 09:14, koalina  wrote:
>>
>> > > Hi Jason, yes, reloading page cause memory usage fall out.
>> > > My app is quite simple: a gwt ext tab panel, the first tab showing the
>> > > map widget, the second one a gwt ext grid with a few rows (more or
>> > > less 10), each one with some information about the markers showed.
>> > > I've three "thread", implemented as Timer, which refresh positions of
>> > > markers, informations and last update time. Each thread make a rpc
>> > > call and is always running, even when the tab of interest is not
>> > > active
>> > > Do you see some critical issue in this application?
>> > > thx for help, have a nice day
>> > > Michela
>>
>> > > On 23 Feb, 20:55, Jason Essington  wrote:
>>
>> > > > Well, I've read various articles claiming that IE leaks like a sieve  
>> > > > (don't have any references for you right now, but I'm sure google  
>> > > > could help).
>>
>> > > > One thing to try is does IE's memory usage come down when you reload  
>> > > > the page, or load a

Re: Memory Leak with IE7

2009-02-24 Thread koalina

I've tried reloading, I made a mistake some posts ago.. memory
decreases only if the browser is closed and then opened again. Only
reloading causes a bigger increment of memory usage.

On 24 Feb, 10:20, koalina  wrote:
> Hi alex,
> sorry but I can't see how fix the number of rows as I'm using a
> memoryProxy object.
> So, the timer is defined as follows:
> Timer t = new Timer() {
>
>             public void run() {
>                 getShipInfo();
>
>             }
>
>         };
>  where getShipInfo() is
>
> private void getShipInfo() {
>
>         MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
> AsyncCallback() {
>
>             public void onFailure(Throwable caught) {
>                 throw new UnsupportedOperationException("Not supported
> yet.");
>             }
>
>             public void onSuccess(Object result) {
>                 Vector listaNavi = (Vector) result;
>                 GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
> null);
>                 if (listaNavi.size()>0) {
>
>                     Object[][] data = new Object[listaNavi.size()]
> [15];
>                     Iterator i = listaNavi.iterator();
>                     int index = 0;
>
>                     while (i.hasNext()) {
>                         Nave unaNave = (Nave) i.next();
>                         data[index] = new Object[]{
>                             unaNave.getIdNave(), unaNave.getNomeNave
> (),
>
>                             unaNave.getLocalita(), unaNave.getImbarco
> (),
>
>                             etc
>
>                         GWT.log("Nave "+data[index][0]+data[index]
> [1].toString(), null);
>
>                         index++;
>                         unaNave =  null;
>
>                     }
>                     if (store!=null) {
>                         store.removeAll();
>                     }
>                     MemoryProxy proxy = new MemoryProxy(data);
>                     ArrayReader reader = new ArrayReader(recordDef);
>                     store = new Store(proxy, reader);
>                     store.load();
>                     store.commitChanges();
>
>                     grid.reconfigure(store, columnModel);
>                     //240209Miki: x diminuire memory leak ...
>                     grid.clear();
>                     data = null;
>                     proxy = null;
>                     reader =null;
>                     store = null;
>
>                 }
>             }
>
>         });
>
> }
>
> I've tried with FF and there's no problem...so it's an issue with ie7.
> Can you see some big error in the code i posted just above? thx for
> help!
> Michela
>
> On 24 Feb, 09:48, "alex.d"  wrote:
>
> > Assuming adding/removing markers to/from the map is leakless (google
> > probably knows how to do this ;-) we are left with gwt-ext grid. Every
> > 10 sec you remove old rows and add new ones. So you have some DOM-
> > Elements (a table row) that are removed/created every 10 seconds.
> > Probably it's a grid's particular implementation that leaks. But most
> > probably it's just IE that doesn't really remove garbage properly even
> > when it can/should. So what can you do?
> > 1. If it's grid that leaks: dump it - implement smth. yourself with
> > vanilla GWT.
> > 2. It it's IE: let's say the total ammount of markers is never bigger
> > than 25 - you can create 25 rows in the table and instead of adding/
> > removing them you just change the text. This way you'll have slightly
> > more memory allocated at the beginning but hopefully no leaks while
> > running because no DOM-Elements are created/removed.
>
> > hth
>
> > On 24 Feb., 09:14, koalina  wrote:
>
> > > Hi Jason, yes, reloading page cause memory usage fall out.
> > > My app is quite simple: a gwt ext tab panel, the first tab showing the
> > > map widget, the second one a gwt ext grid with a few rows (more or
> > > less 10), each one with some information about the markers showed.
> > > I've three "thread", implemented as Timer, which refresh positions of
> > > markers, informations and last update time. Each thread make a rpc
> > > call and is always running, even when the tab of interest is not
> > > active
> > > Do you see some critical issue in this application?
> > > thx for help, have a nice day
> > > Michela
>
> > > On 23 Feb, 20:55, Jason Essington  wrote:
>
> > > > Well, I've read various articles claiming that IE leaks like a sieve  
> > > > (don't have any references for you right now, but I'm sure google  
> > > > could help).
>
> > > > One thing to try is does IE's memory usage come down when you reload  
> > > > the page, or load a new page?
>
> > > > -jason
>
> > > > On Feb 23, 2009, at 8:44 AM, koalina wrote:
>
> > > > > is there anyone who knows about memory leaks in this case?I've a
> > > > > tabPanel, but tab are not dinamically added, a MapWidget, periodically
> > > > > rpc to refresh marker on map
> > > > > I'm really getting crazy!
> > > > > thx,
> > > > > Mich

Re: Memory Leak with IE7

2009-02-24 Thread koalina

Hi alex,
sorry but I can't see how fix the number of rows as I'm using a
memoryProxy object.
So, the timer is defined as follows:
Timer t = new Timer() {

public void run() {
getShipInfo();

}

};
 where getShipInfo() is

private void getShipInfo() {


MainEntryPoint.getServiceWsNaviInMare().getInfoNaviInMare(new
AsyncCallback() {

public void onFailure(Throwable caught) {
throw new UnsupportedOperationException("Not supported
yet.");
}

public void onSuccess(Object result) {
Vector listaNavi = (Vector) result;
GWT.log("Lista Navi Ricevuta: "+listaNavi.toString(),
null);
if (listaNavi.size()>0) {

Object[][] data = new Object[listaNavi.size()]
[15];
Iterator i = listaNavi.iterator();
int index = 0;

while (i.hasNext()) {
Nave unaNave = (Nave) i.next();
data[index] = new Object[]{
unaNave.getIdNave(), unaNave.getNomeNave
(),

unaNave.getLocalita(), unaNave.getImbarco
(),

etc

GWT.log("Nave "+data[index][0]+data[index]
[1].toString(), null);

index++;
unaNave =  null;

}
if (store!=null) {
store.removeAll();
}
MemoryProxy proxy = new MemoryProxy(data);
ArrayReader reader = new ArrayReader(recordDef);
store = new Store(proxy, reader);
store.load();
store.commitChanges();


grid.reconfigure(store, columnModel);
//240209Miki: x diminuire memory leak ...
grid.clear();
data = null;
proxy = null;
reader =null;
store = null;

}
}

});
}

I've tried with FF and there's no problem...so it's an issue with ie7.
Can you see some big error in the code i posted just above? thx for
help!
Michela




On 24 Feb, 09:48, "alex.d"  wrote:
> Assuming adding/removing markers to/from the map is leakless (google
> probably knows how to do this ;-) we are left with gwt-ext grid. Every
> 10 sec you remove old rows and add new ones. So you have some DOM-
> Elements (a table row) that are removed/created every 10 seconds.
> Probably it's a grid's particular implementation that leaks. But most
> probably it's just IE that doesn't really remove garbage properly even
> when it can/should. So what can you do?
> 1. If it's grid that leaks: dump it - implement smth. yourself with
> vanilla GWT.
> 2. It it's IE: let's say the total ammount of markers is never bigger
> than 25 - you can create 25 rows in the table and instead of adding/
> removing them you just change the text. This way you'll have slightly
> more memory allocated at the beginning but hopefully no leaks while
> running because no DOM-Elements are created/removed.
>
> hth
>
> On 24 Feb., 09:14, koalina  wrote:
>
> > Hi Jason, yes, reloading page cause memory usage fall out.
> > My app is quite simple: a gwt ext tab panel, the first tab showing the
> > map widget, the second one a gwt ext grid with a few rows (more or
> > less 10), each one with some information about the markers showed.
> > I've three "thread", implemented as Timer, which refresh positions of
> > markers, informations and last update time. Each thread make a rpc
> > call and is always running, even when the tab of interest is not
> > active
> > Do you see some critical issue in this application?
> > thx for help, have a nice day
> > Michela
>
> > On 23 Feb, 20:55, Jason Essington  wrote:
>
> > > Well, I've read various articles claiming that IE leaks like a sieve  
> > > (don't have any references for you right now, but I'm sure google  
> > > could help).
>
> > > One thing to try is does IE's memory usage come down when you reload  
> > > the page, or load a new page?
>
> > > -jason
>
> > > On Feb 23, 2009, at 8:44 AM, koalina wrote:
>
> > > > is there anyone who knows about memory leaks in this case?I've a
> > > > tabPanel, but tab are not dinamically added, a MapWidget, periodically
> > > > rpc to refresh marker on map
> > > > I'm really getting crazy!
> > > > thx,
> > > > Michela
>
> > > > On 23 Feb, 14:37, koalina  wrote:
> > > >> I'm using google maps api for gwt, no memory leak found
> > > >> gwt-ext, some leaks found, but it seems not to be my case...
>
> > > >> please note that with JScript leaks detect there's no leak found...
> > > >> could it be a problem with ajaxLoader?or perhaps something coming  
> > > >> from
> > > >> timer.scheduleRepeating with rpc inside run body?
> > > >> Michela
>
> > > >> On 23

Re: Memory Leak with IE7

2009-02-24 Thread alex.d

Assuming adding/removing markers to/from the map is leakless (google
probably knows how to do this ;-) we are left with gwt-ext grid. Every
10 sec you remove old rows and add new ones. So you have some DOM-
Elements (a table row) that are removed/created every 10 seconds.
Probably it's a grid's particular implementation that leaks. But most
probably it's just IE that doesn't really remove garbage properly even
when it can/should. So what can you do?
1. If it's grid that leaks: dump it - implement smth. yourself with
vanilla GWT.
2. It it's IE: let's say the total ammount of markers is never bigger
than 25 - you can create 25 rows in the table and instead of adding/
removing them you just change the text. This way you'll have slightly
more memory allocated at the beginning but hopefully no leaks while
running because no DOM-Elements are created/removed.

hth

On 24 Feb., 09:14, koalina  wrote:
> Hi Jason, yes, reloading page cause memory usage fall out.
> My app is quite simple: a gwt ext tab panel, the first tab showing the
> map widget, the second one a gwt ext grid with a few rows (more or
> less 10), each one with some information about the markers showed.
> I've three "thread", implemented as Timer, which refresh positions of
> markers, informations and last update time. Each thread make a rpc
> call and is always running, even when the tab of interest is not
> active
> Do you see some critical issue in this application?
> thx for help, have a nice day
> Michela
>
> On 23 Feb, 20:55, Jason Essington  wrote:
>
> > Well, I've read various articles claiming that IE leaks like a sieve  
> > (don't have any references for you right now, but I'm sure google  
> > could help).
>
> > One thing to try is does IE's memory usage come down when you reload  
> > the page, or load a new page?
>
> > -jason
>
> > On Feb 23, 2009, at 8:44 AM, koalina wrote:
>
> > > is there anyone who knows about memory leaks in this case?I've a
> > > tabPanel, but tab are not dinamically added, a MapWidget, periodically
> > > rpc to refresh marker on map
> > > I'm really getting crazy!
> > > thx,
> > > Michela
>
> > > On 23 Feb, 14:37, koalina  wrote:
> > >> I'm using google maps api for gwt, no memory leak found
> > >> gwt-ext, some leaks found, but it seems not to be my case...
>
> > >> please note that with JScript leaks detect there's no leak found...
> > >> could it be a problem with ajaxLoader?or perhaps something coming  
> > >> from
> > >> timer.scheduleRepeating with rpc inside run body?
> > >> Michela
>
> > >> On 23 Feb, 14:29, Mahavir Jain  wrote:
>
> > >>> You should try googling out for memory-leaks for the packages you  
> > >>> are
> > >>> using..
>
> > >>> For eg:- If you are using Image bundles then try googling the  
> > >>> memory leaks
> > >>> related to image bundles..
>
> > >>> Hope this will help.
>
> > >>> Thanks.
> > >>> Mahavir
>
> > >>> On Mon, Feb 23, 2009 at 6:49 PM, koalina   
> > >>> wrote:
>
> >  it is present web mode running on dedicated tomcat (I don't know  
> >  for
> >  hosted mode..).
> >  iexplorer.exe process exponential grows..
>
> >  On 23 Feb, 13:03, Eric Ayers  wrote:
> > > Is this a problem in web mode, hosted mode, or both?
>
> > > On Mon, Feb 23, 2009 at 7:01 AM, koalina   
> > > wrote:
>
> > >> hi Mahavir ,
> > >> thx for your reply.
> > >> I'm working with gwt 1.5.3 and ie7, is this issue valid also in  
> > >> this
> > >> case?
> > >> thx,
> > >> Michela
>
> > >> On 23 Feb, 12:57, Mahavir Jain  wrote:
> > >>> I am not sure whether this applies to you or not but there is  
> > >>> memory
> >  leak
> > >>> issue in IE6 browser for all RPC call.. You can check the issue
> >  onhttp://code.google.com/p/google-web-toolkit/issues/detail?
> >  id=1610..
>
> > >>> But this is not case for firefox.. Did you tried on firefox?
>
> > >>> Mahavir
>
> > >>> On Mon, Feb 23, 2009 at 5:13 PM, koalina   
> > >>> wrote:
>
> >  Hi all,
> >  I've developed a gwt app using MapWidget. The markers showed  
> >  on the
> >  map are periodically refreshed via rpc calls. The refresh time
> >  period
> >  is 10 seconds. The app correctly runs for about an hour, then  
> >  the
> >  memory used increase exponentially... I've installed the js  
> >  leaks
> >  inspector for ie7, but no leak is catched... What can i do to
> >  resolve
> >  this problem? I've reviewed all code..but everything seems to  
> >  be
> >  correct...
> >  Thx for helping, have a nice day,
> >  Michela
>
> > > --
> > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
> >  code.google.com/webtoolkit/
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-We

Re: Memory Leak with IE7

2009-02-24 Thread koalina

Hi Jason, yes, reloading page cause memory usage fall out.
My app is quite simple: a gwt ext tab panel, the first tab showing the
map widget, the second one a gwt ext grid with a few rows (more or
less 10), each one with some information about the markers showed.
I've three "thread", implemented as Timer, which refresh positions of
markers, informations and last update time. Each thread make a rpc
call and is always running, even when the tab of interest is not
active
Do you see some critical issue in this application?
thx for help, have a nice day
Michela

On 23 Feb, 20:55, Jason Essington  wrote:
> Well, I've read various articles claiming that IE leaks like a sieve  
> (don't have any references for you right now, but I'm sure google  
> could help).
>
> One thing to try is does IE's memory usage come down when you reload  
> the page, or load a new page?
>
> -jason
>
> On Feb 23, 2009, at 8:44 AM, koalina wrote:
>
>
>
> > is there anyone who knows about memory leaks in this case?I've a
> > tabPanel, but tab are not dinamically added, a MapWidget, periodically
> > rpc to refresh marker on map
> > I'm really getting crazy!
> > thx,
> > Michela
>
> > On 23 Feb, 14:37, koalina  wrote:
> >> I'm using google maps api for gwt, no memory leak found
> >> gwt-ext, some leaks found, but it seems not to be my case...
>
> >> please note that with JScript leaks detect there's no leak found...
> >> could it be a problem with ajaxLoader?or perhaps something coming  
> >> from
> >> timer.scheduleRepeating with rpc inside run body?
> >> Michela
>
> >> On 23 Feb, 14:29, Mahavir Jain  wrote:
>
> >>> You should try googling out for memory-leaks for the packages you  
> >>> are
> >>> using..
>
> >>> For eg:- If you are using Image bundles then try googling the  
> >>> memory leaks
> >>> related to image bundles..
>
> >>> Hope this will help.
>
> >>> Thanks.
> >>> Mahavir
>
> >>> On Mon, Feb 23, 2009 at 6:49 PM, koalina   
> >>> wrote:
>
>  it is present web mode running on dedicated tomcat (I don't know  
>  for
>  hosted mode..).
>  iexplorer.exe process exponential grows..
>
>  On 23 Feb, 13:03, Eric Ayers  wrote:
> > Is this a problem in web mode, hosted mode, or both?
>
> > On Mon, Feb 23, 2009 at 7:01 AM, koalina   
> > wrote:
>
> >> hi Mahavir ,
> >> thx for your reply.
> >> I'm working with gwt 1.5.3 and ie7, is this issue valid also in  
> >> this
> >> case?
> >> thx,
> >> Michela
>
> >> On 23 Feb, 12:57, Mahavir Jain  wrote:
> >>> I am not sure whether this applies to you or not but there is  
> >>> memory
>  leak
> >>> issue in IE6 browser for all RPC call.. You can check the issue
>  onhttp://code.google.com/p/google-web-toolkit/issues/detail?
>  id=1610..
>
> >>> But this is not case for firefox.. Did you tried on firefox?
>
> >>> Mahavir
>
> >>> On Mon, Feb 23, 2009 at 5:13 PM, koalina   
> >>> wrote:
>
>  Hi all,
>  I've developed a gwt app using MapWidget. The markers showed  
>  on the
>  map are periodically refreshed via rpc calls. The refresh time
>  period
>  is 10 seconds. The app correctly runs for about an hour, then  
>  the
>  memory used increase exponentially... I've installed the js  
>  leaks
>  inspector for ie7, but no leak is catched... What can i do to
>  resolve
>  this problem? I've reviewed all code..but everything seems to  
>  be
>  correct...
>  Thx for helping, have a nice day,
>  Michela
>
> > --
> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
>  code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread Jason Essington

Well, I've read various articles claiming that IE leaks like a sieve  
(don't have any references for you right now, but I'm sure google  
could help).

One thing to try is does IE's memory usage come down when you reload  
the page, or load a new page?

-jason

On Feb 23, 2009, at 8:44 AM, koalina wrote:

>
> is there anyone who knows about memory leaks in this case?I've a
> tabPanel, but tab are not dinamically added, a MapWidget, periodically
> rpc to refresh marker on map
> I'm really getting crazy!
> thx,
> Michela
>
> On 23 Feb, 14:37, koalina  wrote:
>> I'm using google maps api for gwt, no memory leak found
>> gwt-ext, some leaks found, but it seems not to be my case...
>>
>> please note that with JScript leaks detect there's no leak found...
>> could it be a problem with ajaxLoader?or perhaps something coming  
>> from
>> timer.scheduleRepeating with rpc inside run body?
>> Michela
>>
>> On 23 Feb, 14:29, Mahavir Jain  wrote:
>>
>>> You should try googling out for memory-leaks for the packages you  
>>> are
>>> using..
>>
>>> For eg:- If you are using Image bundles then try googling the  
>>> memory leaks
>>> related to image bundles..
>>
>>> Hope this will help.
>>
>>> Thanks.
>>> Mahavir
>>
>>> On Mon, Feb 23, 2009 at 6:49 PM, koalina   
>>> wrote:
>>
 it is present web mode running on dedicated tomcat (I don't know  
 for
 hosted mode..).
 iexplorer.exe process exponential grows..
>>
 On 23 Feb, 13:03, Eric Ayers  wrote:
> Is this a problem in web mode, hosted mode, or both?
>>
> On Mon, Feb 23, 2009 at 7:01 AM, koalina   
> wrote:
>>
>> hi Mahavir ,
>> thx for your reply.
>> I'm working with gwt 1.5.3 and ie7, is this issue valid also in  
>> this
>> case?
>> thx,
>> Michela
>>
>> On 23 Feb, 12:57, Mahavir Jain  wrote:
>>> I am not sure whether this applies to you or not but there is  
>>> memory
 leak
>>> issue in IE6 browser for all RPC call.. You can check the issue
 onhttp://code.google.com/p/google-web-toolkit/issues/detail? 
 id=1610..
>>
>>> But this is not case for firefox.. Did you tried on firefox?
>>
>>> Mahavir
>>
>>> On Mon, Feb 23, 2009 at 5:13 PM, koalina   
>>> wrote:
>>
 Hi all,
 I've developed a gwt app using MapWidget. The markers showed  
 on the
 map are periodically refreshed via rpc calls. The refresh time
 period
 is 10 seconds. The app correctly runs for about an hour, then  
 the
 memory used increase exponentially... I've installed the js  
 leaks
 inspector for ie7, but no leak is catched... What can i do to
 resolve
 this problem? I've reviewed all code..but everything seems to  
 be
 correct...
 Thx for helping, have a nice day,
 Michela
>>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
 code.google.com/webtoolkit/
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread koalina

is there anyone who knows about memory leaks in this case?I've a
tabPanel, but tab are not dinamically added, a MapWidget, periodically
rpc to refresh marker on map
I'm really getting crazy!
thx,
Michela

On 23 Feb, 14:37, koalina  wrote:
> I'm using google maps api for gwt, no memory leak found
> gwt-ext, some leaks found, but it seems not to be my case...
>
> please note that with JScript leaks detect there's no leak found...
> could it be a problem with ajaxLoader?or perhaps something coming from
> timer.scheduleRepeating with rpc inside run body?
> Michela
>
> On 23 Feb, 14:29, Mahavir Jain  wrote:
>
> > You should try googling out for memory-leaks for the packages you are
> > using..
>
> > For eg:- If you are using Image bundles then try googling the memory leaks
> > related to image bundles..
>
> > Hope this will help.
>
> > Thanks.
> > Mahavir
>
> > On Mon, Feb 23, 2009 at 6:49 PM, koalina  wrote:
>
> > > it is present web mode running on dedicated tomcat (I don't know for
> > > hosted mode..).
> > > iexplorer.exe process exponential grows..
>
> > > On 23 Feb, 13:03, Eric Ayers  wrote:
> > > > Is this a problem in web mode, hosted mode, or both?
>
> > > > On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
>
> > > > > hi Mahavir ,
> > > > > thx for your reply.
> > > > > I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> > > > > case?
> > > > > thx,
> > > > > Michela
>
> > > > > On 23 Feb, 12:57, Mahavir Jain  wrote:
> > > > >> I am not sure whether this applies to you or not but there is memory
> > > leak
> > > > >> issue in IE6 browser for all RPC call.. You can check the issue
> > > onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
>
> > > > >> But this is not case for firefox.. Did you tried on firefox?
>
> > > > >> Mahavir
>
> > > > >> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
>
> > > > >> > Hi all,
> > > > >> > I've developed a gwt app using MapWidget. The markers showed on the
> > > > >> > map are periodically refreshed via rpc calls. The refresh time
> > > period
> > > > >> > is 10 seconds. The app correctly runs for about an hour, then the
> > > > >> > memory used increase exponentially... I've installed the js leaks
> > > > >> > inspector for ie7, but no leak is catched... What can i do to
> > > resolve
> > > > >> > this problem? I've reviewed all code..but everything seems to be
> > > > >> > correct...
> > > > >> > Thx for helping, have a nice day,
> > > > >> > Michela
>
> > > > --
> > > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
> > > code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread koalina

I'm using google maps api for gwt, no memory leak found
gwt-ext, some leaks found, but it seems not to be my case...

please note that with JScript leaks detect there's no leak found...
could it be a problem with ajaxLoader?or perhaps something coming from
timer.scheduleRepeating with rpc inside run body?
Michela

On 23 Feb, 14:29, Mahavir Jain  wrote:
> You should try googling out for memory-leaks for the packages you are
> using..
>
> For eg:- If you are using Image bundles then try googling the memory leaks
> related to image bundles..
>
> Hope this will help.
>
> Thanks.
> Mahavir
>
> On Mon, Feb 23, 2009 at 6:49 PM, koalina  wrote:
>
> > it is present web mode running on dedicated tomcat (I don't know for
> > hosted mode..).
> > iexplorer.exe process exponential grows..
>
> > On 23 Feb, 13:03, Eric Ayers  wrote:
> > > Is this a problem in web mode, hosted mode, or both?
>
> > > On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
>
> > > > hi Mahavir ,
> > > > thx for your reply.
> > > > I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> > > > case?
> > > > thx,
> > > > Michela
>
> > > > On 23 Feb, 12:57, Mahavir Jain  wrote:
> > > >> I am not sure whether this applies to you or not but there is memory
> > leak
> > > >> issue in IE6 browser for all RPC call.. You can check the issue
> > onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
>
> > > >> But this is not case for firefox.. Did you tried on firefox?
>
> > > >> Mahavir
>
> > > >> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
>
> > > >> > Hi all,
> > > >> > I've developed a gwt app using MapWidget. The markers showed on the
> > > >> > map are periodically refreshed via rpc calls. The refresh time
> > period
> > > >> > is 10 seconds. The app correctly runs for about an hour, then the
> > > >> > memory used increase exponentially... I've installed the js leaks
> > > >> > inspector for ie7, but no leak is catched... What can i do to
> > resolve
> > > >> > this problem? I've reviewed all code..but everything seems to be
> > > >> > correct...
> > > >> > Thx for helping, have a nice day,
> > > >> > Michela
>
> > > --
> > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
> > code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread Mahavir Jain
You should try googling out for memory-leaks for the packages you are
using..

For eg:- If you are using Image bundles then try googling the memory leaks
related to image bundles..

Hope this will help.

Thanks.
Mahavir

On Mon, Feb 23, 2009 at 6:49 PM, koalina  wrote:

>
> it is present web mode running on dedicated tomcat (I don't know for
> hosted mode..).
> iexplorer.exe process exponential grows..
>
> On 23 Feb, 13:03, Eric Ayers  wrote:
> > Is this a problem in web mode, hosted mode, or both?
> >
> >
> >
> > On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
> >
> > > hi Mahavir ,
> > > thx for your reply.
> > > I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> > > case?
> > > thx,
> > > Michela
> >
> > > On 23 Feb, 12:57, Mahavir Jain  wrote:
> > >> I am not sure whether this applies to you or not but there is memory
> leak
> > >> issue in IE6 browser for all RPC call.. You can check the issue
> onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
> >
> > >> But this is not case for firefox.. Did you tried on firefox?
> >
> > >> Mahavir
> >
> > >> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
> >
> > >> > Hi all,
> > >> > I've developed a gwt app using MapWidget. The markers showed on the
> > >> > map are periodically refreshed via rpc calls. The refresh time
> period
> > >> > is 10 seconds. The app correctly runs for about an hour, then the
> > >> > memory used increase exponentially... I've installed the js leaks
> > >> > inspector for ie7, but no leak is catched... What can i do to
> resolve
> > >> > this problem? I've reviewed all code..but everything seems to be
> > >> > correct...
> > >> > Thx for helping, have a nice day,
> > >> > Michela
> >
> > --
> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
> code.google.com/webtoolkit/
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread koalina

it is present web mode running on dedicated tomcat (I don't know for
hosted mode..).
iexplorer.exe process exponential grows..

On 23 Feb, 13:03, Eric Ayers  wrote:
> Is this a problem in web mode, hosted mode, or both?
>
>
>
> On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
>
> > hi Mahavir ,
> > thx for your reply.
> > I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> > case?
> > thx,
> > Michela
>
> > On 23 Feb, 12:57, Mahavir Jain  wrote:
> >> I am not sure whether this applies to you or not but there is memory leak
> >> issue in IE6 browser for all RPC call.. You can check the issue 
> >> onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
>
> >> But this is not case for firefox.. Did you tried on firefox?
>
> >> Mahavir
>
> >> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
>
> >> > Hi all,
> >> > I've developed a gwt app using MapWidget. The markers showed on the
> >> > map are periodically refreshed via rpc calls. The refresh time period
> >> > is 10 seconds. The app correctly runs for about an hour, then the
> >> > memory used increase exponentially... I've installed the js leaks
> >> > inspector for ie7, but no leak is catched... What can i do to resolve
> >> > this problem? I've reviewed all code..but everything seems to be
> >> > correct...
> >> > Thx for helping, have a nice day,
> >> > Michela
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread Mahavir Jain
This issue is not valid in v1.5.. They have fixed the issue for 1.5..

Mahavir

On Mon, Feb 23, 2009 at 5:33 PM, Eric Ayers  wrote:

>
> Is this a problem in web mode, hosted mode, or both?
>
> On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
> >
> >
> > hi Mahavir ,
> > thx for your reply.
> > I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> > case?
> > thx,
> > Michela
> >
> >
> > On 23 Feb, 12:57, Mahavir Jain  wrote:
> >> I am not sure whether this applies to you or not but there is memory
> leak
> >> issue in IE6 browser for all RPC call.. You can check the issue
> onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
> >>
> >> But this is not case for firefox.. Did you tried on firefox?
> >>
> >> Mahavir
> >>
> >> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
> >>
> >> > Hi all,
> >> > I've developed a gwt app using MapWidget. The markers showed on the
> >> > map are periodically refreshed via rpc calls. The refresh time period
> >> > is 10 seconds. The app correctly runs for about an hour, then the
> >> > memory used increase exponentially... I've installed the js leaks
> >> > inspector for ie7, but no leak is catched... What can i do to resolve
> >> > this problem? I've reviewed all code..but everything seems to be
> >> > correct...
> >> > Thx for helping, have a nice day,
> >> > Michela
> > >
> >
>
>
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread Eric Ayers

Is this a problem in web mode, hosted mode, or both?

On Mon, Feb 23, 2009 at 7:01 AM, koalina  wrote:
>
>
> hi Mahavir ,
> thx for your reply.
> I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
> case?
> thx,
> Michela
>
>
> On 23 Feb, 12:57, Mahavir Jain  wrote:
>> I am not sure whether this applies to you or not but there is memory leak
>> issue in IE6 browser for all RPC call.. You can check the issue 
>> onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
>>
>> But this is not case for firefox.. Did you tried on firefox?
>>
>> Mahavir
>>
>> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
>>
>> > Hi all,
>> > I've developed a gwt app using MapWidget. The markers showed on the
>> > map are periodically refreshed via rpc calls. The refresh time period
>> > is 10 seconds. The app correctly runs for about an hour, then the
>> > memory used increase exponentially... I've installed the js leaks
>> > inspector for ie7, but no leak is catched... What can i do to resolve
>> > this problem? I've reviewed all code..but everything seems to be
>> > correct...
>> > Thx for helping, have a nice day,
>> > Michela
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread koalina


hi Mahavir ,
thx for your reply.
I'm working with gwt 1.5.3 and ie7, is this issue valid also in this
case?
thx,
Michela


On 23 Feb, 12:57, Mahavir Jain  wrote:
> I am not sure whether this applies to you or not but there is memory leak
> issue in IE6 browser for all RPC call.. You can check the issue 
> onhttp://code.google.com/p/google-web-toolkit/issues/detail?id=1610..
>
> But this is not case for firefox.. Did you tried on firefox?
>
> Mahavir
>
> On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:
>
> > Hi all,
> > I've developed a gwt app using MapWidget. The markers showed on the
> > map are periodically refreshed via rpc calls. The refresh time period
> > is 10 seconds. The app correctly runs for about an hour, then the
> > memory used increase exponentially... I've installed the js leaks
> > inspector for ie7, but no leak is catched... What can i do to resolve
> > this problem? I've reviewed all code..but everything seems to be
> > correct...
> > Thx for helping, have a nice day,
> > Michela
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Memory Leak with IE7

2009-02-23 Thread Mahavir Jain
I am not sure whether this applies to you or not but there is memory leak
issue in IE6 browser for all RPC call.. You can check the issue on
http://code.google.com/p/google-web-toolkit/issues/detail?id=1610..

But this is not case for firefox.. Did you tried on firefox?

Mahavir

On Mon, Feb 23, 2009 at 5:13 PM, koalina  wrote:

>
> Hi all,
> I've developed a gwt app using MapWidget. The markers showed on the
> map are periodically refreshed via rpc calls. The refresh time period
> is 10 seconds. The app correctly runs for about an hour, then the
> memory used increase exponentially... I've installed the js leaks
> inspector for ie7, but no leak is catched... What can i do to resolve
> this problem? I've reviewed all code..but everything seems to be
> correct...
> Thx for helping, have a nice day,
> Michela
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Memory Leak with IE7

2009-02-23 Thread koalina

Hi all,
I've developed a gwt app using MapWidget. The markers showed on the
map are periodically refreshed via rpc calls. The refresh time period
is 10 seconds. The app correctly runs for about an hour, then the
memory used increase exponentially... I've installed the js leaks
inspector for ie7, but no leak is catched... What can i do to resolve
this problem? I've reviewed all code..but everything seems to be
correct...
Thx for helping, have a nice day,
Michela
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---