Image scale caching causing problems

I have an app with a image that the user must be able to zoom and scroll.
When the image is first loaded it is at full view. When the user zooms the memory usage sky rockets, and during this zooming the app is very laggy.
Once the memory has added about 70Mb, the zooming runs without lag.
If the user waits however, the memory usage goes back down, the scaling lags again, and the memory fills again.
I have been able to get around this with making the height an odd number of pixels.
This causes the memory to stay at the +70Mb and prevent lagging, but this may not be a permanent solution.
Is there any way to prevent the GC from wiping the scale information? Or any way to manage how the cached scale data is stored?

The image is large. The app is for iOS and Android devices.
The images are 5464x3073 (should be 3072, but made it odd to prevent problem), they are simply scaled to fit the screen (usually about 0.2 scale).
Till this point is fine, obvious pause when loading the image, but when the user zooms in, the memory gets an extra 70Mb(if you zoom all the way in) and stays for about 10-20 seconds. During this time zoom is smooth. When the memory goes back down the process of zooming causes lag and memory usage again.

Similar Messages

  • File cache causing problems?

    Since installing Mavericks I experience pauses when switching between apps. I have the full16 meg capacity RAM and have not had this problem in prior versions of OS X. I note I have 8.3 meg of "file cache" and 3  meg of free memory. Is the file cache causing the problem? Any other ideas?

    When you have the problem, note the exact time: hour, minute, second.   
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above. Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Image caching causing problems

    I am making a Java based game. I'm using a mixture of static and animated gifs (things should switch to animated gifs now and then e.g. when something explodes).
    I am using Tookit.getImage() to get images, e.g.
    Toolkit kit;
    Image image;
    image =  kit.getImage("images/Explode.gif");This caching is all very well for the static gifs, but very bad for the animated ones. For a 'repeat once' gif, it'll only ever play once upon first load, in future it just starts at the end of the animation. If I have the gifs repeat forever, all instances of the gif are synchronised at the exact same point (so if something is already exploding, then another explodes, it would start mid animation).
    The Toolkit API suggests createImage (because getImage implements its own caching), but with createImage, the gifs don't animate whatsoever (they just display the initial frame). Anyone got any ideas to get independant instances of animated gifs working?
    Thank you

    Use a so called "sprite sheet" instead. Thats a single image, which contains all the frames next to each other.
    A sprite sheet can look like this:
    http://kaioa.com/k/newexplosion7_sheet.png
    (Note that this one has full alpha. Drawing it will be very slow usually.)
    And here is one with bitmask transparency:
    http://kaioa.com/k/dither_ex.png
    For displaying the animation you simply draw a specific region of the image each frame. You can do that for example with that drawImage method, which takes 2 clipping regions (4 coord pairs).
    Getting "independant instances" is a matter of using seperate counters for each explosion on screen. You can for example use some Explosion object, which holds x, y and the frame number.

  • Disk image system copy causes problems

    Hi
      Working with a client who chose to copy a PRD SAP ECC 6.0 system to a new box (as DEV) via a disk image copy. They renamed enough of the new SAP system to get it running but they still have problems.
    The command CHGR3SHLOC fails when the PRD box tries to create the mount to DEV. Also the source system name show up in the name of the default & instance profiles even when the old profiles are deleted and regenerated.
    I was wondering if anyone had a list of things to be changed when using a disk image to create a new SAP system.
    Personally I always do a normal install followed by a DB copy to create a DEV system from a PRD system.
    Thanks
    Matt

    Hi Matt,
    I'm sorry, but I never used DSPR3SYS or similar ... you udefinetely do not need to redo the copy, but you need to fix the root cause. As I do not know your issue, I cannot help you ...
    I would change the data area in r3sid400, the profiles and the /usr/sap/trans/config/SID ... (except the rest of my document)
    In crazy cases delete of the IFS stuff in /usr/sap & /sapmnt should help as well and then use crtr3sys and crtr3inst ...
    For more details, I need to check online ...
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • Is there a solution to Rapidweaver Stacks Cache size problems?

    Is there a solution to Rapidweaver Stacks Cache size problems?
    My website http://www.optiekvanderlinden.be , has about 100 pages and is about 250MB in size. Every time I open RapidWeaver with the Stacks-plugin, the user/library/cache/com.yourhead.YHStacksKit folder grows to several Gigabytes in size. If I don't  manually empty the com.yourhead.YHStacksKit Cache daily, AND empty the Trash before i turn off my mac, my Mac still has problems and stalls at startup the next day. Sometimes up to 5 minutes and more before he really boots. If i have a been working on such a large site for a few weeks without deleting that cache, than my iMac doesn't start up anymore, and the only thing left to do is completely reinstall the iOs operating system. This problem doesn't happen the days i use all my other programs but don't use Rapidweaver.
    Does anyone know a solution and / or what is the cause of this?

    once more,
    i just launched my project in Rapidweaver, and WITHOUT making any changes to my pages, the cache/com.yourhead.YHStacksKit folder filled itself with 132 folders (total 84Mb), most of them containing images of specific pages etc. The largest folder in the cache is the one with the images of a page containing a catalogue of my company, this folder is 7Mb. It seems by just starting up a project, immediately different folders are created containing most of the images in my project, and some folders with a log.txt file. Still i don't see the reason why it is filling op a huge Cache even without making changes to the project. I have 2 different sites, so 2 different projects, and i get this with both of them.

  • Image loadClip memory usage problem

    I'm trying to create a gallery with built in slideshow. I
    load the images sequentially and then use the tween class to
    animate alpha values to shift between images. But when about 20-25
    images are loaded, the memory usage get too high and the animations
    start to lag.
    I know i can remove the images again, but that means i have
    to load them all over again when the slideshow starts over again.
    I know there must be a solution 'cause i've seen galleries
    which loads images without increasing memory usage, and the images
    is cached after loading.
    Hope you can help me.

    No. The basic principle is that you need to set the images to
    invisible. Only the two that are tweening can be visible. The
    problem you are experiencing occurs when you have more than 8 or 9
    images. Usually I put the first image at the bottom of the stack so
    that's why I said 'the one on top'.

  • I want to uninstall ReloadEvery as I think it is causing problems however it is not in my list of Extensions or Plugins yet it is clearly installed, I tried reinstalling FF but it was still there! How can I get rid of it?

    I installed ReloadEvery a while ago and it seemed to be working fine however I am now having problems with FF crashing and weird things like pages not reloading and not being able to use the back button etc
    I have already tried uninstalling and reinstalling FF and upgrading to FF 4.
    When I upgraded to FF 4 I was still having problems even though I didn't have any Extensions installed at all, or so I thought. I noticed that ReloadEvery was still installed. I was rather puzzled as I had done a clean install of FF 4. I want to remove ReloadEvery to see if it will solve my problems.
    I have also tried following the help on the FF Troubleshooting about manually uninstalling Extensions but again ReloadEvery not listed there yet I am still able to use it in FF!
    I want to get rid of it!! I really need some help please.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    If clearing cookies doesn't work then it is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookie files like <b>cookies.sqlite-journal</b> in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    *http://kb.mozillazine.org/Cookies

  • FF 3.6 AND 5 on same Mac, 1 profile - can I uninstall 5 without causing problems running 3.6 or with the profile?

    I upgraded from 3.6.16 to 5, but don't like how 5 handles tabs (auto reloading 'problem loading' tabs when internet connection is reestablished). So I installed 3.6 in a separate folder, e.g. both versions are on this computer. I went back to using 3.6, and let it upgrade to either 3.6.18 or 19 (don't recall which & it's not open right now). I'm having problems with it using too much CPU & Memory, and not sure if that's a difference between 3.6.16 & 3.6.18/19, or if having 5 on the same computer even if closed could be causing the problem.
    Can I uninstall 5 without causing problems with the 3.6 version and the single profile?

    If you haven't tried this, give it a try. It worked for me, hopefully it will work for you. In your version 3 firefox, disable all extensions, I had two plugins (doubletwist and joost, disable those if you have them). Then install firefox 5 by overwriting your version 3 firefox. It should work fine after that. I tried everything before, I gave that a last ditch shot. Oh yeah, before you install firefox 5, clear your cache of everything just to be sure.
    Hopefully that helps.

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • IWeb: changing the slideshow image scale and viewing time

    I moved my iWeb sites over to another server (iPage) and went through the sites to observe for inconsistencies and problems.  While doing this, I noted that my image galleries, when placed into the slides show mode, were very small on my iPad 2 and that they cycled through at a very high speed.  I thought this was odd and I wondered if anyone else has observed the same thing?  It sounds to me that an HTML under-the-hood modification may be required or a bug fix to the iWeb code is in order, to change the sideshow image scale and viewing time/slide value.  Comments?  [I suspect that Apple does not hold iWeb bug fixes at or near to the top of its software development to-does priority list.  Sounds like I need to change web authoring software.]

    Why do you think it's a bug?
    Anyway :
    Is there any reason photos in an album page display small on the iPad, but normally on an iMac? And videos on a movies page don't play on the iPad, but are OK on the iMac?
    I use my own show :
    http://home.wyodor.net/photo/

  • What controls whether embedded images scale to email window size?

    When I create a new Mail.app msg and insert or drag/drop an image inline, it visually scales to fit the size of my msg window, which is about 60% of my screen width. (I'm not talking about altering the physical size of the image)
    However, when I look at the msg from the sent folder or from a copy sent to myself, it appears fullsize, and this causes the msg text to now have a line length equal to the width of the embedded image. So now I have to scroll sideways to read the msg/view the image, or open the note to the size of the image, which I don't want to do. I want the computer to adapt to me, not the other way around.
    I'm pretty sure that this used to function as I desire. To further rub it in, I got a msg from a relative today, sent from his peecee using DarkSideSoftware, and those images scale to my msg size. What's the deal?
    iMac G5 2GHz Mac OS X (10.4.8)

    hi, in prefs, Composing: Message Format: Rich Text
    The only contextual menu choices are Download Image and Copy Image. However, if I check an image that scales properly in the email I mentioned, the resulting menu includes:
    Open Attachment
    Open With
    Save Attachment
    Save to Downloads Folder
    View as Icon
    I also notice that 1 sec after hovering over the image in the "good" note, I get a popup for a few seconds indicating the image name, status, mime-type but hovering over the image in the other note produces no result.
    I thought it might have something to do with send/recv via .mac (imap) VS the "good" note came via another of my pop accts, but testing shows the same results.
    For grins, I blew the dust off Entourage 2004 and let it go get about 200 mail msgs, and the "good" note acts exactly the same, that is the images all scale to window size. The last note I sent via Mail with a 1920x1200 img and downloaded into Entourage displays inline --> smaller <-- than the note window size... It appears Entourage in general wants to scale to 50% of whatever the window size is moved to.
    Ok, I took the "good" note which was scaling correctly and used Mail.app to fwd it to my .mac acct and when I download it with Mail.app the images no longer scale, but now show fullsize. Same note functions as before/correctly in Entourage.

  • Did enabling feedburner after submitting my podcast cause problems?

    My podcast was submitted at http://www.audiotim.com/rss.xml, but since then I created a feed on feedburner at http://feeds.feedburner.com/AudioTim
    My two problems so far are that when I created my profile on feedburner for this site I added category, subtitle, etc but that isn't showing up on the itunes page; and secondly, I now have a weird message on top of my second post that reads:
    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
    I'm not sure if enabling feedburner after submitting caused either of these problems, but can you explain to me how to correct these two errors? I've read the http://www.apple.com/itunes/podcasts/techspecs.html page, but man is that confusing in regards to submitting metadata such as category, subtitle, etc.

    iTunes is looking for the feed at http://www.audiotim.com/rss.xml , which you have removed. What is displayed in the Store is cached from that feed, and won't be updated again unless you restore it. If you want to use the Feedburner version then you need to restore the original feed, and add the following tag in the top section (between the 'channel' tag and the first 'item' tag:
    <itunes:new-feed-url>http://feeds.feedburner.com/AudioTim</itunes:new-feed-url>
    You should leave the old feed in place for a couple of weeks.
    As to the mysterious message, this was in the original feed and is in the present one. It's something you've put there yourself, though I can't say how. Sometimes people use a word processor to create a feed or its contents and this causes problems with the hidden commands - you should use a plain text editor. If you've created this feed by submitting data to Feedburner and letting it write the feed, rather than simply submitting the original feed to Feedburner, you will need to find the pace where you entered this info, delete it all and write it in again.

  • Null values from DB2 cause problems

    Hi,
    I have another problem with database link to DB2 using IBM iSeries Access for Linux on 64 bit OEL5 with Oracle Database gateway and unixODBC 2.2.14.
    DB link works. However, null values from DB2 cause problems. Date columns that are null on db2 return a date '30.11.0002', and character columns that are null return an error ORA-28528: Heterogeneous Services datatype conversion error.
    isql returns correct results.
    How can i fix this? Perhaps set some parameters for data conversion on the gateway?
    Thank you.

    If the driver is not fully ODBC level 3 compliant and misses functions, we're lost. But sometimes the drivers are ODBC level 3 compliant but miss the correct 64bit implementation. In those cases we can tell the gateway to use the 32bit ODBC level 3 standard by setting in the gateway init file:
    HS_FDS_SQLLEN_INTERPRETATION=32

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

Maybe you are looking for