Mail and Preview get stuck using way too much CPU

Has anyone else had an issue with either Mail or Preview getting stuck using over 100% CPU for no apparant reason. This has only happened since downloading 10.8.
With Mail, I can't figure out what sets it off. It happens occasionally when I'm replying to an email, but it doesn't happen everytime. When it happens I have to quit Mail to get it to stop.
With Preview, it happens on some pdf documents when I search for a word. After I'm done searching, the CPU percentage will be going crazy (!00-125%) until I quit the app.
I have a 2011 Mac Mini with 2.3 ghz processor and 8 G RAM

Not a solution, but if the Podcast feed is dormant, why not unsubscribe?
As to the file structure for media on the device it is deliberately obscured as a countermeasure to casual piracy. See Recover your iTunes library from your iPod or iOS device. Content put on the iPod by a non-iPod aware product is going to treat it like any external drive. The iPod firmware won't read that media.
tt2

Similar Messages

  • ITunes store videos using way too much CPU

    I recently purchased some tv shows from the iTunes store (Daily Show and South Park). When I play these, iTunes CPU usage goes up to 90% or higher, and basically freezes my whole computer, including the video. CPU usage spikes especially high in 'action' type sequences. An explosion in an episode of South Park sends CPU up to 110% and freezes everything immediately. I have OS X 10.5 on a Core 2 Duo Macbook with 2gb ram. I have hundreds of other videos and none of them cause this problem.
    Anyone know whats wrong?

    Not a solution, but if the Podcast feed is dormant, why not unsubscribe?
    As to the file structure for media on the device it is deliberately obscured as a countermeasure to casual piracy. See Recover your iTunes library from your iPod or iOS device. Content put on the iPod by a non-iPod aware product is going to treat it like any external drive. The iPod firmware won't read that media.
    tt2

  • HP2050 prints darker than photo on my computer...and uses WAY too much ink. HELP.

    and uses WAY too much ink.  HELP.

    Regarding the USB, see if zapping the PRAM helps.
    Regarding your storage space check out the following: 
    HD Space Checkers:
    Disk Inventory X (FREE)
    WhatSize (SHAREWARE)
    OmniDiskSweeper (FREE)
    GrandPerspective (FREE - donation)
    Mac Performance Guide
    Slimming your hard drive
    ===============
    Quick fix How To Quickly Free Up Hard Drive Space on Mac OS
    http://www.youtube.com/watch?v=fO-mlLApEuk

  • Since upgrading my phone to 6.0.1, I'm using way too much data. I believe it's the podcast app that's not loading shows while I'm connected to wifi. I have the 3g turned off for podcasts??? also after a phone call or an alert it starts playing a podcast?

    since upgrading my phone to 6.0.1, I'm using way too much data. I believe it's the podcast app that's not loading shows while I'm connected to wifi. I have the 3g turned off for podcasts??? also after a phone call or an alert it starts playing a podcast?

    I've also had the same issues, after upgrading to IOS 6.0, the apps in my iPhone 4 were crashing and the battery life run out very fast.
    The only solution worked for me was to remove all mail accounts (Exchange/Gmail) from my iPhone (in settings) and then add them back.
    The crashing were stopped! also the battery was back to normal.
    I found the solution by first looking at the crash logs (in IOS 6). you can find them at Settings -> General -> About (at the bottom of the About menu you will find the option that opens the logs).
    There i saw many logs about Low Memory crash. 99% of the logs were pointed that the largest process (use the most memory) during the crashes is "dataaccessd".
    I search in the web and found that this process is a deamon process that reponsible the Mail accounts (like Exchange/Gmail) and contancts list.
    I've installed the app "System Status - activity monitor" which shows important system info like CPU usage, Memory usage and running processes.
    Before apply my solution (deleting the mail accounts) i saw that the CPU usage was very high which consume the battery very fast. Also i saw that the memory (RAM) was run out.. which probably what cause the crashing..
    After deleting the mail accounts (at Settings -> Mail, Contacts, Calendars) i check again with the System Status app, and saw that the memory and CPU were back to normal.
    Adding the mail accounts back, still everything work ok
    Hope this solution will help you too,
    Enjoy!

  • Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. Does anyone have a solution or should i just switch to chrome?

    Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. I am using windows XP pro and a pretty decent computer. All software is up to date and i do no have a virus. I have even tried to disable my add-ons and plug-ins but it did not make a difference. Does anyone have a solution or should i just switch to chrome?

    Please provide a crash id -> https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report
    Do the issues still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode

  • Canon MX700 gets stuck feeding way too often, any better MFP from Canon?

    I'd like to be able to use the same ink, but I have two Canon MX700 whose feeding can get stuck fairly easily. Is there any other Canon printer that uses the same ink as a multifunction whose scanning and printing works with both 10.4.11 Intel and 10.5.7?
    Message was edited by: a brody

    Hello a brody.
    I have a nephew who is using the MX850 on 10.5.7 and the last I heard he was not having any problems with printing - I don't know how often he uses the machine for scanning. I checked the Canon web and saw this machine uses the same inks as the MX700.
    Is it the original document feeder or the printing section that is getting stuck?
    Pahu

  • Garageband 11: lagging or unresponsive interface; frequently crashes; and is using way too much memory

    Since updating to the newest version of Garageband I've noticed a distinct slow down in interface and functionality; makes editing incredibly difficult having to wait 2-3 seconds after selecting a note or section; sometimes the whole app becomes unresponsive or just crashes altogether. It also completely maxes out memory usage (8GB!) My machine specs are below but I can't imagine why I couldn't run it. It boots up in about 5 seconds and before Mavericks I could run Logic, Garageband, MS Word, Adobe Edge Animate, and Adobe Muse without it breaking a sweat. Now it's running the fans at full blast using way more memory than is necessary.
    My Machine
    The OS and Applications run off of a 120GB SSD and instead of an Optical drive I use a data doubler and a second internal (500GB HDD) for backups and extra storage - neither are anywhere near capacity.
    Also, I'm not running any other apps, and even tried disabling network connections; no change at all. I do know that Mavericks uses memory differently (don't fully understand the benifit or how it works) but when I open Activity Monitor while running GarageBand it show's my "Memory Used:" at 7.99GB/8GB; but the pressure is still in the green. Could someone please explain to me how the memory usage differs now and why my machine needs to use all of the memory at once to run GarageBand when it is the only app open?
    Why is it that 10.9 is substantially more taxing than 10.8 while claiming to be the opposite? What am I missing here?
    Please Help! :-)

    Since updating to the newest version of Garageband I've noticed a distinct slow down in interface and functionality;
    Your question is a bit ambigious - the "Newest version" would be GarageBAnd 10.0.1, but the title of your question says GarageBand '11. Are you saying, you upgraded to GarageBand 10.0, but now GarageBand '11 (version 6.0.5) is having troubles?
    makes editing incredibly difficult having to wait 2-3 seconds after selecting a note or section; sometimes the whole app becomes unresponsive or just crashes altogether.
    Perhaps a crash log could help. Or error messages from the Console window. Does the Console.app show any diagnostic messages, when this hanging occurs?
    and before Mavericks I could run Logic, Garageband, MS Word, Adobe Edge Animate, and Adobe Muse without it breaking a sweat.
    Have all these applications been updated to the latest, Mavericks compatible versions? And all other non-Apple applications?

  • After Effects Ram Preview Drops Frames , Using Strangely Too Much Ram

    System Specs :
         CPU : Core i7 4770k
         Memory : 16 GB DDRIII
         Graphic Card : GTX 770 4GB RAM
         Storage : 256 GB SSD + 2 TB HDD
         OS : Windows 7 SP1
         Using After Effects CC 12.2.1.5
    NOTE : NOT ANY ADDITIONAL HARDWARE IS ATTACHED TO MY PC . NO SOUND RELATED EQUIPMENT NOR CAPTURE CARD NOR ANY THING ELSE
    Hi there
    As you Already Don't know I'm an After effects Specialist Using it for quite long time . There is an Ancient Problem with CS6 CC versions . I have a short Small size 1080p Video , about 8 MB , I drag it into project panel and then put it into timeline hence it creates a sequence . There are no Effects and nothing added to timeline , just a small simple video . The Strange Problem is when I click "0" for ram preview , The video starts playing and the green bar above timeline starts to fill . When Ram preview Finishes and plays the video from beginning I See there are several frames Between which are not being loaded to Ram ! The video plays RGB color bar instead of main video and when I check the Green bar above Timeline I see that those frames are being dropped and there is no Green bar above them !
    I have had this problem several times before but this time it is too important and the problem should be solved . What is obvious is that some frames are not being rendered or are being deleted after render !
    Another Strange problem is that when I open Task manager , It shows AE uses around 10 GB ! of RAM when I press "0" for Ram previewing this video !
    So there is a Logical explanation here , Somehow when I do ram preview this video it uses extra ordinary too much ram so AE is unable to load the full video (8 MB) into Ram and hence deletes some of frames .
    most of my videos have not this problem and use acceptable amount of ram .I've had this issue with some of my videos till now .
    Listen carefully : "This has nothing to do with AE preferences or low memory or plugins . because there is nothing wrong with any individual components of may hardware or software . I have far more than enough RAM for a 8MB video . My Memory has no hardware or software problem . I tested them and if there was any problem with memory or other hardware that should have affected other applications . I have the most recent AE version . I have the most Recent windows updates and drivers . I have a Clean virus free system , and as a computer engineer this strange AE problem is rarely caused by viruses , trust me . I have not any hardware instead of ones a normal PC has . I have not any problem with my whole entire system configuration because I have benchmarked my PC with several up to date softwares . I have tested my PC with almost any STRESS TESTING solutions available for really long period of time , 3 days by IDA64 . Not any driver conflict , dll missing , registry problem have been discovered , as I know perfectly how to solve them ."
    I asked some of my friend whom are expert in AE . I handed them my videos and Watched ALL OF THEM HAD THE SAME ISSUE ! So the problem isn't related to my Local PC . What i believe is that there is some malfunctioning or miss coded part in AE source code that decides to reserve such a huge strange amount of ram for such a tiny 8MB video . The point is that the AE works fine , no crash or any problem report . So the AE it Self decides to allocate such huge amount of ram and thinks it is correct ! So I think this is a work around that AE developers in adobe are using to bypass a problem or conflict ! by Using more amount of RAM . I think that there might be some miss understanding between the AE and my installed codec . I installed MEGA CODEC PACK on my PC to enable some new codec supports , and so are some of Windows default de/encoders changed to new ones . I think there shouldn't be any problem But there is something wrong between AE and de/encoder modules !
    Please any one with any suggestion , I really appreciate your advices .

    ###UPDATED###
    Well thank you guys for your patience ...
    as you considered I forgot to mention the codec itself and other stuff ...
    The video is in 1080p , 35 sec long , it is a green screen shot , this video is directly downloaded from YouTube and plays perfectly on all tested PCs . here are detailed info :
    Format                                   : MPEG-4
    Format profile                          : Base Media
    File size                                 : 8.55 MiB
    Duration                                 : 34s 993ms
    Overall bit rate mode                : Variable
    Overall bit rate                         : 2 050 Kbps
    VideoFormat                            : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : [email protected]
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Bit rate                                    : 1 927 Kbps
    Width                                      : 1 920 pixels
    Height                                     : 1 080 pixels
    Frame rate mode                      : Constant
    Frame rate                               : 30.000 fps
    Color space                              : YUV
    Chroma subsampling                 : 4:2:0
    Bit depth                                  : 8 bits
    Scan type                                 : Progressive
    NOTICE : This video is just for testing the lighting and etc , and so the Sampling and other specs are not considered for broadcast .
    I think you hit the point ! Thats K-lite codec pack installed on every machine which the video is tested on ! The point is whats wrong with it ?! I have had never ever any problem with this codec pack !!!
    The deadly question : So what are the alternative ways to work with codecs that AE doesn't support ?! because installing codec looks simple and sufficient !

  • Createimage() using way way way too much CPU!

    Try the following code. Note you will need Java 5.0 to compile it. There are 3 files. Compile and run ApplicationManager.java
    ApplicationManager.java_
    import java.awt.event.ActionEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    * This is the starting point of the application. It is mainly entrusted with the task of respondong to events
    * generated by MainWindow
    public class ApplicationManager extends MouseAdapter implements ActionListener{
    MainWindow mainWin;
    static ApplicationManager application = null;
          * Main is here. The application starts here.
          * @param args
    public static void main(String[] args) {
              application = new ApplicationManager();
              application.startApp();
          * Initializes the application by doing stuffs that are needed to be done only at startup.
    public void startApp(){
         System.out.println("startApp()");
            mainWin=new MainWindow();
         //Making the main windows visible.
         mainWin.makeAppVisible();
         mainWin.addNewClientSpace("New0");
         ManagerUI m;
             try{
                 //m =mainWin.clientSpace.get(mainWin.ClientArea.getSelectedIndex());
                 m =mainWin.clientSpace.get(0);
             catch(java.lang.NullPointerException e){
               e.printStackTrace();
               return;
    public void actionPerformed(ActionEvent e) {}
    public void mouseClicked(java.awt.event.MouseEvent e){}
    MainWindow.java_
    import java.awt.event.KeyEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.Event;
    import java.awt.BorderLayout;
    import javax.swing.KeyStroke;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JMenu;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import java.awt.Dimension;
    import javax.swing.JTabbedPane;
    import java.util.ArrayList;
    class MainWindow {
         private JFrame jFrame = null;  //  @jve:decl-index=0:visual-constraint="10,10"
         private JPanel jContentPane = null;
         private JMenuBar jJMenuBar = null;
         private JMenu fileMenu = null;
         private JMenuItem exitMenuItem = null;
         private JMenuItem aboutMenuItem = null;
         JMenuItem saveMenuItem = null;
         private JLabel jLabel = null;
         private JMenuItem jMenuItem = null;
            JTabbedPane ClientArea = null;
            ArrayList<ManagerUI> clientSpace;
          * This method initializes jFrame
          * @return javax.swing.JFrame
         private JFrame getJFrame() {
              if (jFrame == null) {
                   jFrame = new JFrame();
                   jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   jFrame.setJMenuBar(getJJMenuBar());
                   jFrame.setSize(1014, 534);
                   jFrame.setContentPane(getJContentPane());
                   jFrame.setTitle("LANSim");
              return jFrame;
          * This method initializes jContentPane
          * @return javax.swing.JPanel
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getClientArea(), BorderLayout.CENTER);
              return jContentPane;
          * This method initializes jJMenuBar
          * @return javax.swing.JMenuBar
         private JMenuBar getJJMenuBar() {
              if (jJMenuBar == null) {
                   jJMenuBar = new JMenuBar();
                   jJMenuBar.add(getFileMenu());
              return jJMenuBar;
          * This method initializes jMenu
          * @return javax.swing.JMenu
         private JMenu getFileMenu() {
              if (fileMenu == null) {
                   fileMenu = new JMenu();
                   //fileMenu.getPopupMenu().setLightWeightPopupEnabled(false);
                   fileMenu.setText("File");
                   fileMenu.add(getSaveMenuItem());
                   fileMenu.add(getExitMenuItem());
                   fileMenu.add(getJMenuItem());  // Generated
              return fileMenu;
          * This method initializes jMenuItem
          * @return javax.swing.JMenuItem
         private JMenuItem getExitMenuItem() {
              if (exitMenuItem == null) {
                   exitMenuItem = new JMenuItem();
                   exitMenuItem.setText("Exit");
                   exitMenuItem.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             System.exit(0);
              return exitMenuItem;
          * This method initializes jMenuItem
          * @return javax.swing.JMenuItem
         private JMenuItem getSaveMenuItem() {
              if (saveMenuItem == null) {
                   saveMenuItem = new JMenuItem();
                   saveMenuItem.setText("Save");
                   saveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,
                             Event.CTRL_MASK, true));
                   saveMenuItem.addActionListener(ApplicationManager.application);
              return saveMenuItem;
          * This method initializes jMenuItem
          * @return javax.swing.JMenuItem
         private JMenuItem getJMenuItem() {
              if (jMenuItem == null) {
                   jMenuItem = new JMenuItem();
              return jMenuItem;
          * This method initializes ClientArea
          * @return javax.swing.JTabbedPane
         private JTabbedPane getClientArea() {
         if (ClientArea == null) {
                   ClientArea = new JTabbedPane();
                   ClientArea.setTabPlacement(JTabbedPane.BOTTOM);  // Generated
                   ClientArea.setPreferredSize(new Dimension(100, 100));  // Generated
                          ClientArea.addMouseListener(ApplicationManager.application);
            return ClientArea;
          * Called to create a new client space where the contents of another file can be shown or created.
          * This allows for opening and creation of multiple files.
         public void addNewClientSpace(String title){
              ClientArea.addTab(title, new JScrollPane().add(getClientRegion(title)));
          * Creates a new client Region and also updates clientSpace.
          * @return
         private ManagerUI getClientRegion(String title){
              ManagerUI m = new ManagerUI(title);
              getClientSpace();
              clientSpace.add(m);
              return m;
          *  This Method intiializes clientSpace if  is null
          *  @return  java.util.ArrayList
        private ArrayList getClientSpace(){
            if(clientSpace==null){
                  clientSpace= new  ArrayList<ManagerUI>();
            return clientSpace;
          * Makes the MainWindow visible
         public void makeAppVisible(){
              getJFrame().setVisible(true);
    ManagerUI.java_
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.util.ArrayList;
    import javax.swing.JPanel;
    import java.awt.Color;
    public class ManagerUI extends JPanel implements Runnable{
    private int frame=0; //This wasn't declared in actual program.
    private Image simBuffer;
    private volatile boolean terminate;
    It does all the drawing in graphics area.
    ManagerUI(String name){
      terminate=false;
      simBuffer=null;
      Thread t;
      t=new Thread(this,name);//Starts the rendering thread.
      t.start();
    public void stop(){
      terminate=true;
    public void run(){
         System.out.println("Thread Started");
           long afterTime, beforeTime, timeDiff, sleepTime;
         long overSleepTime = 0L; //Amount of time (in ms) over slept.
         int noDelays = 0; //Counter for no. of sleeps it has skipped.
         long period = (long) (((double) 1000)/30); //Amount of time a frame maybe displayed, in ms.
         terminate = false;
         beforeTime = System.currentTimeMillis( );
         while(!terminate){
                 repaint();
              //render2buf();
              //activepaint();
              afterTime = System.currentTimeMillis( );
              timeDiff = afterTime - beforeTime;
              sleepTime = (period - timeDiff) - overSleepTime;   // time left in this loop
              if (sleepTime > 0) {   // some time left in this cycle
              try {
                   Thread.sleep(sleepTime);  // in ms
              catch(InterruptedException ex){}
              overSleepTime = (System.currentTimeMillis( ) - afterTime) - sleepTime;
              else {    // sleepTime <= 0; frame took longer than the period
                   overSleepTime = 0L;
                   if (++noDelays >= 6) {
                        Thread.yield( );   // give another thread a chance to run
                        noDelays = 0;
              beforeTime = System.currentTimeMillis( );
    public  synchronized Image render2buf(){
            if(this.getSize().height<=0 || this.getSize().width<=0) return null;
            int PHEIGHT = this.getSize().height;
             int PWIDTH = this.getSize().width;
             Graphics g=null;
             //draw the current frame to an image buffer    
            if (simBuffer == null){  //PROBLEM LINE. coment out this line and...
                 simBuffer = createImage(PWIDTH, PHEIGHT);
                if (simBuffer == null) {
                     System.out.println("simBuffer is null");
                     return null;
                }//PROBLEM LINE. ...this line
            g = simBuffer.getGraphics( );
            //Clear the background
            g.setColor(Color.white);
            g.fillRect (0, 0, PWIDTH, PHEIGHT);
             //code to draw graphics into 'g'.
             g.setColor(Color.BLACK);
             g.drawString("This is test message.",50,50);
             g.drawString("Frame No = "+(frame++),50,200);
         return simBuffer;
    public synchronized void activepaint(Graphics g){//This code is taken from OReilly Killer Game Programming in Java
             //Graphics g;
            try {
                 //g = this.getGraphics( );  // get the panel's graphic context
                  if ((g != null) && (simBuffer != null))
                       g.drawImage(simBuffer, 0, 0, null);
                  Toolkit.getDefaultToolkit( ).sync( );  // sync the display on some systems
                  if (g != null) g.dispose( );
            catch (Exception e)
                 System.out.println("Graphics context error: " + e);
                 e.printStackTrace();
    public void paintComponent(Graphics g){
         super.paintComponent(g);
         render2buf();
         activepaint(g);
    First compile and run the above program. Now in file ManagerUI.java search for two lines with the text "PROBLEM LINE". Comment out both these lines and recompile and re-run the program. Now the CPU usage shoots to above 60% from around 2% (in former case). Why is this happening? Is there a workaround? I have Kubuntu Feisty Fawn 7.04. I have Sun Java 1.6.0-b105 installed.

    Ok here is the modified and updated version. Now I have condensed the program to two files. Now compile and run Main.java
    Main.java_
    import javax.swing.*;
    import java.awt.BorderLayout;
    class Main{
         ManagerUI m;
         public static void main(String a[]){
              Main M = new Main();
              M.startapp();
              M.m.startthread();
         private void startapp(){
              JFrame jFrame = new JFrame();
              jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jFrame.setSize(1014, 534);
              jFrame.setContentPane(getJContentPane());
              jFrame.setTitle("LANSim");
              jFrame.setVisible(true);
         private JPanel getJContentPane() {
              m = new ManagerUI();
              JPanel jContentPane;
              jContentPane = new JPanel();
              jContentPane.setLayout(new BorderLayout());
              jContentPane.add(m, BorderLayout.CENTER);
              return jContentPane;
    ManagerUI.java_
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.util.ArrayList;
    import javax.swing.JPanel;
    import java.awt.Color;
    public class ManagerUI extends JPanel implements Runnable{
    private int frame=0; //This wasn't declared in actual program.
    private Image simBuffer;
    private volatile boolean terminate;
    private Thread t;
    It does all the drawing in graphics area.
    ManagerUI(){
      terminate=false;
      simBuffer=null;
    public void startthread(){
              if(t!=null){
                   terminate = true;
                   try {
                        t.join();//Wait for the thread to end.
                   } catch (InterruptedException e) {
                        System.out.println("Failed to join to ManagerUI Thread before starting another one.");
                        e.printStackTrace();
              terminate=false;
              t=new Thread(this,"Manager");
            t.start();
    public void stop(){
      terminate=true;
    public void run(){
         System.out.println("Thread Started");
           long afterTime, beforeTime, timeDiff, sleepTime;
         long overSleepTime = 0L; //Amount of time (in ms) over slept.
         int noDelays = 0; //Counter for no. of sleeps it has skipped.
         long period = (long) (((double) 1000)/30); //Amount of time a frame maybe displayed, in ms.
         terminate = false;
         beforeTime = System.currentTimeMillis( );
         while(!terminate){
              render2buf();
                 repaint();
              afterTime = System.currentTimeMillis( );
              timeDiff = afterTime - beforeTime;
              sleepTime = (period - timeDiff) - overSleepTime;   // time left in this loop
              if (sleepTime > 0) {   // some time left in this cycle
              try {
                   Thread.sleep(sleepTime);  // in ms
              catch(InterruptedException ex){}
              overSleepTime = (System.currentTimeMillis( ) - afterTime) - sleepTime;
              else {    // sleepTime <= 0; frame took longer than the period
                   overSleepTime = 0L;
                   if (++noDelays >= 6) {
                        Thread.yield( );   // give another thread a chance to run
                        noDelays = 0;
              beforeTime = System.currentTimeMillis( );
    public Image render2buf(){
            if(this.getSize().height<=0 || this.getSize().width<=0) return null;
            int PHEIGHT = this.getSize().height;
             int PWIDTH = this.getSize().width;
             Graphics g=null;
             //draw the current frame to an image buffer    
            if (simBuffer == null){  //PROBLEM LINE. coment out this line and...
                 simBuffer = createImage(PWIDTH, PHEIGHT);
                if (simBuffer == null) {
                     System.out.println("simBuffer is null");
                     return null;
            }//PROBLEM LINE. ...this line
            g = simBuffer.getGraphics( );
            //Clear the background
            g.setColor(Color.white);
            g.fillRect (0, 0, PWIDTH, PHEIGHT);
             //code to draw graphics into 'g'.
             g.setColor(Color.BLACK);
             g.drawString("This is test message.",50,50);
             g.drawString("Frame No = "+(frame++),50,200);
         return simBuffer;
    public void paintComponent(Graphics g){
         super.paintComponent(g);
         if(simBuffer!=null)
         g.drawImage(simBuffer,0,0,null);
    }Don't forget to comment out the lines with the text PROBLEM LINE

  • Kernal Task in Mac 10.10.2 using up too much CPU

    Is it true that kernel_task could be using too much ram its because I  upgraded from and old OS: as an example from MAVERICS TO YOSEMITE ?  If yes - how do I fix this?

    Yes, I am backing up with Time Machine and also an external drive [LaCie].  As I have no other security  programs on my Mac other than what the Mac itself offers - I was backup up to 2 external drives - now real do not see if that is necessary or causing additional problems.   I checked out the internet and conservatively made some adjustments to System Preference  in General  and Privacy.  I deleted and removed from the hard drive files and Applications which I really did not need - then completely deleted them from Trash.  I should have kept a log of what i had done - and certainly will in future particularly if i need to ask for technical assistance.   I started this journey because  that little coloured twirling disk was driving my husband and me crazy and it took forever to open files and programs.  I try to ensure that only those programs that we are using are open.  After use I quit them.  As we both are Seniors but enjoy the Mac and its freedom its important for me to be as informed about what I need to know about troubleshooting the Mac - unfortunately, the Internet has 60 answers for one question - yours, Mr. Davis, has been the most functional and analytical response so far.  If you can bear with us perhaps you can direct us to where we need to go. I will say that after all the tweaks this morning - the system is running better ... although I really cannot say what the specific action were, if any, that made the difference.  I should mention that our internet provider suggested that we weekly  reboot our WiFi connection.  Any assistance or direction you might recommend for future maintenance will be most gratefully appreciated.   

  • How do I keep Mail on my Mac Mini from using way too much system memory?

    Mail is using 1.27G of system memory.  I have selected "Don't keep copies of any messages" under Preferences>>Accounts>>Advanced.  Is there some cache that needs to be cleared?  I realize that I have a LOT of messages on the server but it seems like they shouldn't be stored locally on the mac.  Any ideas?
    Thanks,
    Peter

    I did get rid of the antivirus software which is why I am where I am now

  • Using WAY too much data

    Okay. So this is getting absolutely ridiculous. Every single month I'm apparently using over 14 GB OF DATA. There is no way. My cellular data is ALWAYS turned completely off and the only time it's on I only have 1 or 2 apps on. I'm always on wifi with no cellular data on and it's telling me I have used 14 GB already for the bill cycle ending the 21st and it is July 9th. Our bill is so much money and my dad can't afford it anymore this isn't fair we are paying soooooo much for something I'm not even doing. Nobody else on our plan even uses the internet or apps because it's just my grandparents. I can't even use my phone like normal people or enjoy my phone because it's telling me I'm using so much and I have everything turned off so if I don't find out what's going on we're going to AT&T or somebody else bc we can't pay this every single month and to be honest it's really starting to make me mad. Verizon Wireless Customer Support

        Brookefernandez, I want you to enjoy your phone and not have to worry about anything. We would be sad to see you leave the Verizon Wireless family. So let's take a look and see what is causing all of this data to be used. What kind of device do you have? How many lines are on your account? On a normal day what applications are used the most on the devices? Please keep us posted.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Using WAY too much power while sleeping?

    I am completely sure that before, my 2008 Mac Pro was using 3 watts (give or take a few) while in sleep mode, which is why I've left it running day and night pretty much since purchasing it. (Power useage based on the digital readout on my "smart" UPS backup.) However, just this afternoon I noticed that it seems to be generating a considerable amount of heat, even when not in use, and my power bill has been abnormally high (like twice what it should be), and nothing can really explain that since virtually nothing else runs in the house for any amount of time. Needless to say, I decided to check the UPS readout while the system was asleep. To my surprise, 175 watts were being consumed while the system had been asleep for hours! No wonder it's been hot in my office, and why my power bill seems to have been going up considerably higher than usual! I've got a power hog sitting here running day and night consuming nearly full power 24x7! (Full power reads about 200 watts, displays off, at idle and 275 watts with displays on at idle.)
    Any suggestions on what could have gone wrong that is keeping my system from taking a power nap? I really don't want to power it on and off day in and day out (it gets restarted as necessary). And the Apple Care coverage just ended several months ago. Ugh!

    LOL Looking at the console may have answered my problem. It seems that the xrite device manager for my ColorMunki (screen calibration device) is going bonkers, trying to "start" itself every 2 seconds, give or take. But I thought for sure that I've uninstalled this software to use another application using the same device. Clearly, it forgot to uninstall something that is asking to start but no longer exsists.
    Here's a snipplet:
    9/2/11 11:37:02 PM    com.apple.launchd[1]    (com.xrite.device.colormunki[14665]) Exited with exit code: 1
    9/2/11 11:37:02 PM    com.apple.launchd[1]    (com.xrite.device.colormunki) Throttling respawn: Will start in 10 seconds
    9/2/11 11:37:08 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message[14666]) posix_spawn("/Library/Application Support/X-Rite/Devices/message.app/Contents/MacOS/message", ...): No such file or directory
    9/2/11 11:37:08 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message[14666]) Exited with exit code: 1
    9/2/11 11:37:08 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message) Throttling respawn: Will start in 10 seconds
    9/2/11 11:37:12 PM    com.apple.launchd[1]    (com.xrite.device.colormunki[14667]) posix_spawn("/Library/Application Support/X-Rite/Devices/ColorMunkiDeviceService.app/Contents/MacOS/ColorMunkiDev iceService", ...): No such file or directory
    9/2/11 11:37:12 PM    com.apple.launchd[1]    (com.xrite.device.colormunki[14667]) Exited with exit code: 1
    9/2/11 11:37:12 PM    com.apple.launchd[1]    (com.xrite.device.colormunki) Throttling respawn: Will start in 10 seconds
    9/2/11 11:37:18 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message[14668]) posix_spawn("/Library/Application Support/X-Rite/Devices/message.app/Contents/MacOS/message", ...): No such file or directory
    9/2/11 11:37:18 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message[14668]) Exited with exit code: 1
    9/2/11 11:37:18 PM    com.apple.launchd.peruser.501[216]    (com.xrite.device.message) Throttling respawn: Will start in 10 seconds
    9/2/11 11:37:22 PM    com.apple.launchd[1]    (com.xrite.device.colormunki[14669]) posix_spawn("/Library/Application Support/X-Rite/Devices/ColorMunkiDeviceService.app/Contents/MacOS/ColorMunkiDev iceService", ...): No such file or directory
    9/2/11 11:37:22 PM    com.apple.launchd[1]    (com.xrite.device.colormunki[14669]) Exited with exit code: 1

  • Java uses up WAY too much cpu power only in firefox.

    I seem to have found out that firefox is using up to 60% of my cpu power(average of each core). It seems to be a problem with Java and maybe windows 7 64 bit. When I turn java off it's fine and uses maybe 10% tops. But since 2 main sites I use use only java I can't just turn it off.
    == This happened ==
    Every time Firefox opened
    == I moved up from Win XP 32 bit up to 7 64 bit.

    Ok I guess you have stumped me, but disabling java in the past did bring down my cpu usage. Cpu usage was no where near as high using that looping radar and this open, around 10 percent or less. As for extensions I only have the java console and skype. I've tried using gmail alone without my usual tabs, also tried facebook(which I thought were the culprits) but cpu usage didn't stay up, only spiked at loading. So I guess it's back to square one...I'm wondering if it's just having a somewhat good amount of tabs open. Last night though was fine when I opened firefox just to see.

  • IPhoto 5.0.4 using way too much RAM - Help!

    Hi there, I hate using iPhoto now. Everytime I use it it gobbles up around 300-500MB of memory according to top. This is real memory I am talking about, as listed in the 'RSIZE' column.
    I only have 1300 photos and yet the program is barely usable. I have 1.5 gigs of RAM in my G5 and yet after using iPhoto I have 6 swap files in use for a total of 2 gigs of virtual memory paging files. It bogs down my entire computer and it frustrates the **** out of me.
    Is there anyone else who has a similar sized library as mine and has these horrendous memory usage problems?
    Thanks,
    Graham

    Hi Graham,
    There is a serious bloat and slowdown using certain cameras. these camera have large Makernotes that will bloat and slow down the iPhoto Library to a crawl.
    Do a search in this forum for "Makernotes" and you will see what I mean.
    Or go to this site:
    http://www.ericlindsay.com/apple/iphoto5slow.htm
    Lori

Maybe you are looking for