[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #SEW-796353]: RE: idv.removeDisplayControl() does not remove display



> Hi Yuan,
> 
> Unfortunately, this does not solve my problem. What my script is trying to do 
> is load a sequence of Cloud and Moisture Imagery files to create a sort of 
> time lapse animation. Every time it loads an image into the viewer, the 
> previous image is being removed using display.doRemove(). This doesn't remove 
> the file from memory, however, and so I will be running into the memory limit 
> for IDV unless I can remove both the display and the data from memory. Is 
> there a line of code to remove the data from memory as well as removing the 
> display?
> 
> Thanks,
> Ryland

Hi Ryland,

How much memory does your computer have and how many time steps you were 
playing?
If you can allocate 8G memory to the IDV, you should be able to generate 10 t0 
20 images sequence. Otherwise, you need to
write an ISL script and inside the ISL you can have a loop, and reload the 
bundle each time to generate only fewer images  and save these images in the 
same location, 
at the end you can group all images to generate animation. When you reload the 
bundle, it will free up the memory.


Yuan
> 
> -----Original Message-----
> From: Unidata IDV Support <address@hidden>
> Sent: Friday, September 21, 2018 10:23 AM
> To: Newman, Ryland <address@hidden>
> Cc: address@hidden; Newman, Ryland <address@hidden>
> Subject: [IDV #SEW-796353]: RE: idv.removeDisplayControl() does not remove 
> display
> 
> > Hi Yuan,
> >
> > How do you recommend that I resolve the "out of memory java heap space" 
> > error?
> >
> > Thanks,
> > Ryland
> >
> Increase the memory allocated to the IDV: Edit > Preferences > System.
> 
> 
> Yuan
> >
> > -----Original Message-----
> > From: Unidata IDV Support <address@hidden>
> > Sent: Friday, September 21, 2018 5:28 AM
> > To: Newman, Ryland <address@hidden>
> > Cc: address@hidden; Newman, Ryland
> > <address@hidden>
> > Subject: [IDV #SEW-796353]: RE: idv.removeDisplayControl() does not
> > remove display
> >
> > > Hi Yuan,
> > >
> > > I'm still unable to free up memory through Jython with IDV. Is there any 
> > > line of code I could run to allow me to do this?
> > >
> > > Thanks,
> > > Ryland
> > >
> >
> > Hi Ryland,
> >
> > In general we do not recommend user to do the memory release. The memory is 
> > free up automatically in the JVM, you don't need to worry about this issue.
> >
> >
> > Yuan
> > > From: Newman, Ryland
> > > Sent: Friday, September 7, 2018 3:40 PM
> > > To: address@hidden
> > > Subject: Re: [IDV #SEW-796353]: RE: idv.removeDisplayControl() does
> > > not remove display
> > >
> > >
> > > Hi Yuan,
> > >
> > >
> > >
> > > display.doRemove() is working for me, but I am also now running into an 
> > > issue with the script I am writing that I think is tied to having too 
> > > much data loaded at once. I get the following error popup:
> > >
> > > [cid:image001.png@01D44E9E.332EA040]
> > >
> > >
> > >
> > > Is there another similar line of code to clear from memory displays that 
> > > I have removed?
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Ryland
> > >
> > > ________________________________
> > > From: Unidata IDV Support
> > > <address@hidden<mailto:address@hidden>>
> > > Sent: Friday, August 31, 2018 3:00:22 PM
> > > To: Newman, Ryland
> > > Subject: [IDV #SEW-796353]: RE: idv.removeDisplayControl() does not
> > > remove display
> > >
> > > > Hello,
> > > >
> > > > I am still unable to remove a single display in IDV using Jython. Is 
> > > > there another line of code I should be using instead of with 
> > > > idv.removeDisplayControl(display) ?
> > > >
> > > > Thanks,
> > > > Ryland Newman
> > > >
> > > > From: Newman, Ryland
> > > > Sent: Tuesday, July 24, 2018 4:21 PM
> > > > To: 'address@hidden'
> > > > <address@hidden<mailto:address@hidden>>
> > > > Subject: idv.removeDisplayControl() does not remove display
> > > >
> > > > Using the jython shell I am attempting to load and remove a single CMI 
> > > > product file.
> > > > Loading and visualizing the file works fine, but I am unable to remove 
> > > > it with idv.removeDisplayControl(display).
> > > > idv.removeAllDisplays() does work, but I want to only remove a selected 
> > > > single display.
> > > >
> > > > Attached is an example script I am running and the sample data file.
> > > >
> > > > Thanks,
> > > > Ryland Newman
> > > >
> > > >
> > > Hi Ryland,
> > >
> > > You probably have more than one display control, make sure the input
> > > is the correct display. You can add one line: display.doRemove()
> > > before calling idv.removeDisplayControl(display)
> > >
> > > Yuan
> > >
> > > Ticket Details
> > > ===================
> > > Ticket ID: SEW-796353
> > > Department: Support IDV
> > > Priority: Normal
> > > Status: Open
> > > ===================
> > > NOTE: All email exchanges with Unidata User Support are recorded in the 
> > > Unidata inquiry tracking system and then made publicly available through 
> > > the web.  If you do not want to have your interactions made available in 
> > > this way, you must let us know in each email you send to us.
> > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: SEW-796353
> > Department: Support IDV
> > Priority: High
> > Status: Closed
> > ===================
> > NOTE: All email exchanges with Unidata User Support are recorded in the 
> > Unidata inquiry tracking system and then made publicly available through 
> > the web.  If you do not want to have your interactions made available in 
> > this way, you must let us know in each email you send to us.
> >
> >
> >
> 
> 
> Ticket Details
> ===================
> Ticket ID: SEW-796353
> Department: Support IDV
> Priority: High
> Status: Open
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 


Ticket Details
===================
Ticket ID: SEW-796353
Department: Support IDV
Priority: High
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.