Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Weird situation - Icons disappearing
icon8.gif  Weird situation - Icons disappearing [message #1022883] Fri, 22 March 2013 18:04 Go to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
We are using RAP 1.5.1 and we have about 50 customized icons in the application among 10 or so plugins. We called "initializeImageRegistry(ImageRegistry reg)" to register all of the icons we need for our application, and use "imageRegistry.get(key)" when we need the Image. Nothing extraordinary, and it works fine.


The problem starts when we keep using the application for a while, and some of the icons start to disappear from our application. When this situation happens, the icons inside a tree viewer and table viewer will be gone. I don't see any error message in the Javascript console, nor in the Java exception log.

I know it is difficult to debug without a piece of code that can replicate the problem, but is there something basic that I can test to give me a lead on the problem? Did any of you see this problem before?

One last lead I got from the JavaDoc of the initializeImageRegistry() is that the OSes have limited resources so ideally we should not put many images per plugin. How true is that? Is it possible that the system simply ran out of resources so the images are gone?

Any leads / suggestions are highly appreciated.

Thanks,
Ronald
Re: Weird situation - Icons disappearing [message #1023618 is a reply to message #1022883] Sun, 24 March 2013 18:58 Go to previous message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
I believe I have this mystery resolved. It was caused by caching the ImageRegistry inappropriately. We have a utility class that provides a method to retrieve the images, but we inadvertently cached the image registry to a static variable in the class. ImageRegistry is per session based and that was why it always works the first time.

Previous Topic:GC Captcha and all toher stuff
Next Topic:scrolling on iPad in browser-object
Goto Forum:
  


Current Time: Sun Dec 21 19:39:39 GMT 2014

Powered by FUDForum. Page generated in 0.02798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software