Drawing with paintComponent(Graphics g) problem?

hey, i just recently learnt from a response to previous posts not to put logic type stuff like if statements in the paintComponent method, but how do i get around the issue of drawing something different based on a boolean expression?
i want to be able to do something like,
paintComponent(Graphics g) {
      if(drawCircle == true) {
          g.drawCircle(....)
     }else{
          g.drawRectangle(......)
}Yes, i know i shouldn't do that as i said i've been told NEVER to do this, but how do i work around this issue?
thanks

hey, i just recently learnt from a response to previous posts not to put logic type stuff like if statements in the paintComponent method, but how do i get around the issue of drawing something different based on a boolean expression?If you refer to that [my reply in your former thread|http://forums.sun.com/thread.jspa?messageID=10929900#10929900] , note that I warned you against putting business logic (+if (player.hasCollectedAllDiamonds()&&timer.hasNotTimedOut()&&allEnnemies.areDead()) { game.setState(FINISHED);}+) into your paintComponent(...) method, I didn't ask you to ban logic altogether (+if (player.hasCollectedAllDiamonds()) { Graphics.setColor(Color.GREEN); }+)
EDIT: Oh, how pretentious I was; obviously you merely refer to [this Encephalopathic's post|http://forums.sun.com/thread.jspa?messageID=10929668#10929668], who warns against program logic in paint code; same misunderstanding though, he certainly only meant that the paintXXx's job is not to determine whether the game is over, only to render the game state (whichever it is, it has been determined somewhere else, not in painting code).

Similar Messages

  • Drawing with a graphics tablet in Flash

    Hey community!
    I recently got the newest version of Flash and wanted to do some drawing with my graphics tablet, but whenever i try to draw a freehand line, using the pencil or paintbrush tool, then for some reason, it draws a straight line leading to the bottom left side of the screen, and i have no idea why it is doing this.
    When i use the tablet to draw in Photoshop, then it works absolutely fine, but not in Flash
    Any help will be lovely!!
    Thank you

    Hi,
    The issue is resolved in the latest update of Flash Pro.Please update Flash professional to 14.1.0.96 .Follow the instruction below for the same :
    Installation instructions
    Log out and log in to the CC desktop application. Update the application when prompted.
    You should see the list of new updates as soon as the new CC desktop application is launched.
    Install Flash Professional CC and Mobile Device Packaging app. On a high speed connection, it took me around 8 minutes.
    After the application is installed, you can launch the application directly from the desktop app by clicking on it.
    Thanks & Regards,
    Sangeeta

  • Problems running PC game with bootcamp, graphics card problem?

    I have searched extensively on answers to this question and I've gotten some vague ideas of what to do, but not a direct answer.
    I recently installed a copy of Windows on my 15in Macbook Pro (the ones that came out right before the latest ones in late August/Early October 2008 or whatever). I did this in order to play Final Fantasy XI Online on my laptop. The machine is more than capable of running the game and I've read forum posts that had said that it works fine through bootcamp. I installed the game and was playing it just fine until one day the game began to lag really bad in areas where there were a lot of people or in other words something very demanding of the memory/graphics. I don't mean internet speed lag, I mean the computer would slow the game down to a crawl and the sound would be sort of garbled like it was some sort of feedback. It would happen periodically or if some sort of animation would start (spellcasting, etc)
    I've tried everything from changing the settings of the game so that it's not as demanding to installing modified drivers for the graphics card (256mb Nvidia GeForce 8600M GT). I read that there may be some problems with the graphics and sound cards communicating which causes lag?
    The computer also gets unnaturally hot while I run the game/windows in general. Could it be a cooling problem?
    Please help!

    Processor:     
    Intel(R) Celeron(R) CPU E1400 @ 2,00GHz (2 CPUs)
    Memory:    
    4gig,Corsair TwinX XMS2 DDR2 800Mhz
    Hard Drive:    
    Seagate 1 TB
    Video Card:    
    ATI Radeon HD 3850 X2
    Monitor:    
    EIZO monitor
    Sound Card:    
    Realtek 7.1 HD Sound
    Speakers/Headphones:    
    Mikomi 5.1 HD @ Headphones
    Keyboard:    
    Logitech Gaming Keyboard
    Mouse:    
    Logitech MX510 Gaming Mouse
    Mouse Surface:    
    Belkin Mouse Mat
    Operating System:    
    Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)
    Motherboard:    
    MSI P35 Neo 2
    Computer Case:    
    CiT 1004 CSCIT1004 Black Screwless Gaming Case
    PSU:600 Watt GreatPower
    this is my gaming rig

  • Drawing without paintComponent(Graphics g)

    Hi to all,
    I use paintComponent(Graphics g) to draw particular rectangles on the screen, then i add some event to these rectangles. So far so good.I handle the mouse click from -->
    public void mouseClicked(MouseEvent e){
    // handling goes here
    But an important part of my handling is to also draw something on the screen.
    How can i do that from the mouseClicked method? Can i draw without using paintComponent(...)?
    I mean that, once the paintComponent(...) method finishes, how can i still draw something on the screen?
    Thanks,
    John.

    You can use
    Graphics gg = component.getGraphics();
    gg.draw ....
    but it will be cleared in the paintComponent method
    Look at this sample, the red rectangle will show up when the mouse
    is presses, and gone when the mouse will be released.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.*;
    public class Shapes extends JFrame
         DPanel pan = new DPanel();
    public Shapes()
         addWindowListener(new WindowAdapter()
              public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         setBounds(10,10,400,350); 
         setContentPane(pan);
         setVisible(true);
    public class DPanel extends JPanel implements MouseListener
         Vector shapes = new Vector();
         Shape  cs;
    public DPanel()
         addMouseListener(this);
         shapes.add(new Rectangle(20,20,100,40));
         shapes.add(new Rectangle(40,80,130,60));
         shapes.add(new Line2D.Double(20,150,200,180));
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         Graphics2D g2 = (Graphics2D)g;
         for (int j=0; j < shapes.size(); j++)
              g2.draw((Shape)shapes.get(j));
         g.setColor(Color.red);
         if (cs != null) g2.draw(cs);
    public void mouseClicked(MouseEvent m) {}
    public void mouseEntered(MouseEvent m) {}
    public void mouseExited(MouseEvent m)  {}
    public void mouseReleased(MouseEvent m)
         repaint();
    public void mousePressed(MouseEvent m)
         for (int j=0; j < shapes.size(); j++)
              Shape s = (Shape)shapes.get(j);
              Rectangle r = new Rectangle(m.getX()-1,m.getY()-1,2,2);
              if (s.intersects(r))
                   cs = s;
                   Graphics g = getGraphics();
                   g.setColor(Color.red);
                   g.fillRect(r.x-5,r.y-5,10,10);
    public static void main (String[] args) 
          new Shapes();
    }

  • Adobe Flash Professional cc - I can't draw with my graphic tablet.

    Selection tool is working, bud brush not. Why? How can I fix it?
    Thanks.

    Hallo,
    I have windows 7 professional (64bit), but in my case it's worse.
              CPU - Intel Core 2 Duo 6300 1,86 Ghz (with integtated  graphics card)
              RAM - 4 Gb
    I know... it's really bad PC.
    Ondra

  • PaintComponent(Graphics g) problem

    hi, guys:
    Can someone tell me why my code is not work in paintComponent(Graphics g)
    below are my code:
    protected void paintComponent(Graphics g)
         g.drawLine(0, 0, 100, 100); //this line work
    this.getGraphics().drawLine(0,0,100,100); //this is not work
    I know I should use auto passed "Graphics g", however, I don't understand why this.getGraphics() can't do the same work. It should return the same Graphics object which I expected.
    Thanks for help.

    I just posted my code below (Applet), hope helpful.
    package mypackage;
    import java.applet.Applet;
    import java.awt.*;
    import javax.swing.*;
    class CatchTheCreaturePanel extends JPanel
         private Creature[] creature;
         public CatchTheCreaturePanel()
              this.setPreferredSize(new Dimension(400,300));          
         public void paintComponent(Graphics g)
              g.drawLine(50, 70, 100, 100); //work
              this.getGraphics().drawLine(0, 0, 100, 100); //not work
    public class Jmyass extends JApplet {
         private CatchTheCreaturePanel the_panel;
         public Jmyass() {
              super();
         public void init() {
              the_panel=new CatchTheCreaturePanel();
         public void start() {
              this.getContentPane().add(the_panel);          
    }

  • IPhone 4 (GSM) with a graphics card problem (artifacts).

    Hi,
    My iPhone 4 (GSM) started making a color bands about two minimeters flush with the bottom edge of the screen and about a month and a half later the picture started to bounce and now it appears on the screen that I could call artifacts. I'm sure that the problem comes from the graphics card.
    Serial Number: 81*****A4S

    Yes it does. You just need to obtain a SIM card from your carrier.

  • Help with ( mobo + graphics card ) problem

    i have a MSI P35 Neo2-FR: Platinum and my gpu is a ATI Radeon HD 3850 x2 that runs in crossfire.
    i noticed the other day when i tryed a game for the 1st time in a while.. I only built this pc last xmas.. The problem i noticed is the preformance of the graphics card didn't seem up to scratch with the preformance i have looked around many sites but can't find a solution to the problem when i looked at the review of the MSI P35 Neo2-FR: Platinum motherboard that someone had wrote up i can't remember were i sow it but they said that the Duel cards they have only ran at 4x when i would have thought would run at x16
    any solution how i can fix this problem?

    Processor:     
    Intel(R) Celeron(R) CPU E1400 @ 2,00GHz (2 CPUs)
    Memory:    
    4gig,Corsair TwinX XMS2 DDR2 800Mhz
    Hard Drive:    
    Seagate 1 TB
    Video Card:    
    ATI Radeon HD 3850 X2
    Monitor:    
    EIZO monitor
    Sound Card:    
    Realtek 7.1 HD Sound
    Speakers/Headphones:    
    Mikomi 5.1 HD @ Headphones
    Keyboard:    
    Logitech Gaming Keyboard
    Mouse:    
    Logitech MX510 Gaming Mouse
    Mouse Surface:    
    Belkin Mouse Mat
    Operating System:    
    Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)
    Motherboard:    
    MSI P35 Neo 2
    Computer Case:    
    CiT 1004 CSCIT1004 Black Screwless Gaming Case
    PSU:600 Watt GreatPower
    this is my gaming rig

  • MOVED: help with ( mobo + graphics card ) problem

    This topic has been moved to Intel Core 2 Duo/Quad boards.
    https://forum-en.msi.com/index.php?topic=133975.0

    Processor:     
    Intel(R) Celeron(R) CPU E1400 @ 2,00GHz (2 CPUs)
    Memory:    
    4gig,Corsair TwinX XMS2 DDR2 800Mhz
    Hard Drive:    
    Seagate 1 TB
    Video Card:    
    ATI Radeon HD 3850 X2
    Monitor:    
    EIZO monitor
    Sound Card:    
    Realtek 7.1 HD Sound
    Speakers/Headphones:    
    Mikomi 5.1 HD @ Headphones
    Keyboard:    
    Logitech Gaming Keyboard
    Mouse:    
    Logitech MX510 Gaming Mouse
    Mouse Surface:    
    Belkin Mouse Mat
    Operating System:    
    Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)
    Motherboard:    
    MSI P35 Neo 2
    Computer Case:    
    CiT 1004 CSCIT1004 Black Screwless Gaming Case
    PSU:600 Watt GreatPower
    this is my gaming rig

  • Problem with huge graphic - Lines become noise

    Hi there,
    I have a strange problem when drawing a huge graphic. Is is a kind of line-chart. The graphic (chart) is placed to a JPanel within a JScrollPane. The size can be configured and if it exceeds a size the lines are not visible anymore, but every pixel of the line is distributed within the whole graphic. It looks like noise or a snow flurry.
    The line chart is updated (re-drawn) within a certain interval. I think no manual repaint is done and it happens and sometimes later is ok again and you can see the line chart and then its gone again.
    Can can't exactly tell what the "critical" size is, but the chart is actually about 3000x300 pixels big.
    The strange thing is, that never happens when unsing Java 1.4.XX, it is since Java 1.5, and does not happen with smaller size (at least I think so)
    The lines are "PolyLines" with several thousand edges.
    The code for creating this is like:
              m_bufImage = new BufferedImage(m_nWidth, m_nHeight, BufferedImage.TYPE_INT_RGB);
              m_imageG2D = m_bufImage.createGraphics();
              m_imageG2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              m_imageG2D.setColor(m_colBg);
              m_imageG2D.fillRect(m_nWidth, m_nHeight, m_bufImage.getWidth(), m_bufImage.getHeight());               
              m_pnlChart.add(new JLabel(new ImageIcon(m_bufImage)));     
    Any idea?
    regards

    Any idea?
    Yes.
    m_pnlChart.add(new JLabel(new ImageIcon(m_bufImage)));
    Swing may have a hard time keeping up with repainting thousands of labels.
    You could abandon the components and draw the polyLines directly into an image and draw that
    for each repaint. Try this:
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.util.Random;
    import javax.swing.*;
    public class SimpleDrawing extends JPanel {
        BufferedImage image;
        Random seed = new Random();
        protected void paintComponent(Graphics g) {
             super.paintComponent(g);
             if(image == null)
                 initImage();
             g.drawImage(image, 0, 0, this);
        public Dimension getPreferredSize() {
            return new Dimension(3000, 300);
        private void draw() {
            Dimension d = getPreferredSize();
            int w = d.width;
            int h = d.height;
            int r = 20;
            int cx = r/2 + seed.nextInt(w - r);
            int cy = r/2 + seed.nextInt(h - r);
            int nPoints = 3 + seed.nextInt(4);
            int[] xPoints = new int[nPoints+1];
            int[] yPoints = new int[nPoints+1];
            double theta = 0;
            double thetaInc = 2*Math.PI/nPoints;
            for(int j = 0; j <= nPoints; j++) {
                xPoints[j] = (int)(cx + r*Math.cos(theta));
                yPoints[j] = (int)(cy + r*Math.sin(theta));
                theta += thetaInc;
            Graphics2D g2 = (Graphics2D)image.getGraphics();
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.black);
            g2.drawPolyline(xPoints, yPoints, nPoints+1);
            g2.dispose();
            repaint();
        private void initImage() {
            Dimension d = getPreferredSize();
            int w = d.width;
            int h = d.height;
            int type = BufferedImage.TYPE_INT_RGB;
            image = new BufferedImage(w, h, type);
            Graphics2D g2 = image.createGraphics();
            g2.setBackground(getBackground());
            g2.clearRect(0,0,w,h);
            g2.dispose();
        private void start() {
            Thread thread = new Thread(new Runnable() {
                public void run() {
                    do {
                        try {
                            Thread.sleep(50);
                        } catch(InterruptedException e) {
                            System.out.println("init interrupted");
                            System.exit(1);
                    } while(image == null);
                    while(true) {
                        try {
                            Thread.sleep(50);
                        } catch(InterruptedException e) {
                            System.out.println("interrupted");
                            break;
                        draw();
            thread.setPriority(Thread.NORM_PRIORITY);
            thread.start();
        public static void main(String[] args) {
            final SimpleDrawing test = new SimpleDrawing();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(test));
            f.setSize(500,400);
            f.setLocation(200,200);
            f.setVisible(true);
            test.start();
    }

  • Problem with paintComponent, and CPU usage

    Hi,
    I had the weirdest problem when one of my JDialogs would open. Inside the JDialog, I have a JPanel, with this paintComponent method:
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Color old = g.getColor();
    g.setColor(Color.BLACK);
    g.drawString("TEXT", 150, 15);
    g.setColor(old);
    parent.repaint();
    now when this method is called, the CPU usage would be at about 99%. If i took out the line:
    parent.repaint();
    the CPU usage would drop to normal. parent is just a reference to the Jdialog that this panel lies in.
    Anyone have any ideas on why this occurs?
    Thanks!

    1) I never got a stack overflow, and i have had this in my code for quite sometime...If you called paint() or paintComponent(), I'm betting that you would see a stack overflow. The way I understand it, since you are calling repaint(), all you are doing is notifying the repaint manager that the component needs to be repainted at the next available time, not calling a paint method directly. good article on how painting is done : http://java.sun.com/products/jfc/tsc/articles/painting/index.html#mgr
    2) If this is the case, and the two keep asking eachother to paint over and over, .....
    see above answer

  • Redraw order problems with paintComponent

    hi,
    i've got this test code below which is simply meant to overlay the scrolling transparent text "HELLO" a few times on top of a normal component
    my problem is that the image in the panel, is seemingly being redrawn after the text, when it should be drawn as part of the call to super.paintComponent(g)
    is having a thread calling repaint() every few milliseconds is the right way to be doing this in the first place??
    any help really appreciated,
    asjf
    ps. pls ignore the dodgy positioning of text, and calculations of widths etc :)
    import javax.swing.*;
    import java.awt.*;
    import java.net.URL;
    class AnimTest extends JPanel {
       Font myFont;
       Color myColor;
       int x=0;
       AnimTest(URL u){
          super(new BorderLayout(8,8));
          add(new JLabel("Demo text: ajsk sdjfkl dsjfks jd aisuda siu"), BorderLayout.CENTER);
          add(new JLabel(new ImageIcon(u)), BorderLayout.EAST);
          setOpaque(true);
          setBackground(Color.white);  
          myColor = new Color(255,0,0,128);
          myFont = new Font("Dialog",Font.BOLD,14);
          new Thread(new Runnable(){
             public void run() {
                try {
                   while(true) {
                      repaint();
                      Thread.sleep(25);
                      x++;
                }catch(InterruptedException e) {
                   e.printStackTrace();
          }).start();
       public void paintComponent(Graphics g) {
          super.paintComponent(g);
          g.setColor(myColor);
          g.setFont(myFont);
          int width = 3*(getWidth()/2);
          int mid = getHeight()/2 + 10; // sort out later
          for(int i=0; i<width; i+=width/5)
             g.drawString("HELLO",((x+i) % width)-(width/5),mid);
       public static void main(String [] arg) throws Exception {
          URL demo = new URL("http://java.sun.com/images/duke.gif");
          JFrame frame = new JFrame("AnimTest");
          frame.getContentPane().add(new AnimTest(demo));
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.show();
    }

    hi, thanks for the reply. I am not drawing the image myself, but am expecting it to be done as part of the redraw of my classes superclass
    public void paintComponent(Graphics g) {
       super.paintComponent(g);i was expecting the call to super.paintComponent(g) to draw the contents of the JPanel that I've added (which it does do). The strange this is that the image attached to the JPanel is drawn on top the string that I paint after super.paintComponent(g) has completed. Am not sure how this could possibly happen without some complicated postponing of .drawImage coming into play??
    thanks,
    asjf

  • System crashes after waking; problems with distnoted, graphics chip error

    I am running 10.3.9 on a Dual 1 GHz G4, with 1.5 GB SDRAM, a GeForce4 Ti 4600 LCD display, and a LaCie 1394 external drive. I have recently started to put my computer to sleep at night, rather than leaving it running 24 hours a day (I also installed sleepwatcher, to allow me to put my computer to sleep remotely, and anacron, to allow the nightly system maintenance jobs to continue to run). This was working fine for about a week, but for the last two days, when I woke my computer up in the morning, I got kernel panics after a few minutes. First some aspects of the display would start to get mangled (e.g. strange lines appearing, some text that I typed not showing up, icons in the dock looking speckled, etc.), then some applications would stop responding, and then a minute or so later I would get the feared kernel panic message ("You need to restart your computer" in multiple languages).
    This problem only seems to occur after the computer has been asleep for a long time (I've only experienced it after it's been asleep for 12 hours or so, and not when it's only been asleep for a few minutes). The only thing I can think of that I've changed in the last few days is an AppleScript that mounts my external LaCie drive (using "do shell script diskutil mountDisk ...") before backing up my files - using FoldersSynchronizer - then putting my computer to sleep (before I was never UNmounting this drive, so I didn't have to mount it in the AppleScript - I was still using the script to back up the files then put the computer to sleep).
    I have tried running Apple's Disk Utility (both to repair the permissions, and to repair the disk), DiskWarrior (to rebuild my startup disk), fsck, and TechTool Deluxe. None seemed to reveal any major errors except the "Surface Scan" in TechTool, which failed, presumably because of media defects in the disk (but my understanding is that fixing this would require reformatting my disk, something that I only want to do as a last resort).
    My system.log shows the following, from the time I woke my computer to the time I restarted (I've highlighted some suspicious-looking lines). It seems like the problem might either be occurring in distnoted, or with the graphics chip. Any thoughts on how I can determine the cause of the problem?
    Mar 28 10:58:31 localhost kernel: System Sleep
    Mar 28 10:58:38 localhost kernel: System Wake
    Mar 28 10:58:38 localhost kernel: Wake event 0020
    Mar 28 10:58:38 localhost kernel: enableClockSpreading returned with 0
    Mar 28 10:58:38 localhost kernel: AppleNMI unmask NMI
    Mar 28 10:58:38 localhost kernel: Adaptec warning: Resetting SCSI bus.
    Mar 28 10:58:38 localhost kernel: FWOHCI handleSelfIDInt - nodeID not valid (reset bus and retry 1)
    Mar 28 10:58:38 localhost kernel: UniNEnet::monitorLinkStatus - Link is up at 100 Mbps - Half Duplex
    Mar 28 10:58:44 localhost mDNSResponder[186]: mDNSResponder Waking at 1236250
    Mar 28 10:58:44 localhost SymMissedTask - parent[233]: sleeptime recorded: Mon Mar 27 16:05:06 2006
    Mar 28 10:58:44 localhost SymMissedTask - parent[233]: waketime is: Tue Mar 28 10:58:44 2006
    Mar 28 10:59:04 localhost crontab[436]: (root) LIST (root)
    Mar 28 10:59:04 localhost crontab[438]: (root) LIST (sage)
    Mar 28 11:05:09 localhost crashdump: Unable to determine CPSProcessSerNum pid: 151 name: distnoted
    Mar 28 11:05:09 localhost mach_init[2]: Server 0 in bootstrap d03 uid 0: "/usr/sbin/distnoted": exited as a result of signal 10 [pid 151]
    Mar 28 11:05:09 localhost crashdump: Started writing crash report to: /Library/Logs/CrashReporter/distnoted.crash.log
    Mar 28 11:05:09 localhost crashdump: Finished writing crash report to: /Library/Logs/CrashReporter/distnoted.crash.log
    Mar 28 11:05:10 localhost kernel: Graphics chip error! Restarted.
    Mar 28 11:05:15 localhost last message repeated 2 times
    Mar 28 11:05:19 localhost crashdump: Unable to determine CPSProcessSerNum pid: 448 name: distnoted
    Mar 28 11:05:19 localhost crashdump: Started writing crash report to: /Library/Logs/CrashReporter/distnoted.crash.log
    Mar 28 11:05:19 localhost mach_init[2]: Server 180b in bootstrap d03 uid 0: "/usr/sbin/distnoted": exited as a result of signal 10 [pid 448]
    Mar 28 11:05:19 localhost crashdump: Finished writing crash report to: /Library/Logs/CrashReporter/distnoted.crash.log
    Mar 28 11:05:20 localhost kernel: Graphics chip error! Restarted.
    Mar 28 11:05:29 localhost last message repeated 7 times
    Mar 28 11:06:59 localhost last message repeated 12 times
    Mar 28 11:07:01 localhost crashdump: Started writing crash report to: /Users/sacks/Library/Logs/CrashReporter/MouseWorks Background.crash.log
    Mar 28 11:07:01 localhost kernel: Graphics chip error! Restarted.
    Mar 28 11:07:02 localhost crashdump: Finished writing crash report to: /Users/sacks/Library/Logs/CrashReporter/MouseWorks Background.crash.log
    Mar 28 11:07:11 localhost kernel: Graphics chip error! Restarted.
    Mar 28 11:07:14 localhost last message repeated 2 times
    Mar 28 11:07:24 localhost kernel: NVKernel::initializeChannel time out.
    Mar 28 11:08:43 localhost syslogd: restart
    Yesterday's crash looks similar, except that the Graphics chip error occurs 13 seconds before the distnoted error (rather than after the distnoted error), and rather than a crash of "MouseWorks Background" there was a crash of "WindowServer". A log file from a few days ago, when I woke my computer up without a crash, has one line that is now absent: Mar 23 08:48:43 nitrogen kernel: AFPSleepWakeHandler: waking up.
    panic.log contains:
    Tue Mar 28 11:08:55 2006
    Unresolved kernel trap(cpu 1): 0x300 - Data access DAR=0x000000003AA4C34E PC=0x000000000099E54C
    Latest crash info for cpu 1:
    Exception state (sv=0x2CD3AC80)
    PC=0x0099E54C; MSR=0x00009030; DAR=0x3AA4C34E; DSISR=0x40000000; LR=0x0099EFA0; R1=0x19D63AC0; XCP=0x0000000C (0x300 - Data access)
    Backtrace:
    0x0099FF28 0x0099EFA0 0x00997468 0x00988020 0x0027E650 0x00280324 0x0007AC48 0x00021668
    0x0001BCE8 0x0001C0F0 0x00094318 0x00000000
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.GeForce(3.4.2)@0x981000
    dependency: com.apple.iokit.IOPCIFamily(1.4)@0x4b3000
    dependency: com.apple.iokit.IOGraphicsFamily(1.3.5)@0x4c6000
    dependency: com.apple.NVDAResman(3.4.2)@0x4fc000
    dependency: com.apple.iokit.IONDRVSupport(1.3.5)@0x4e6000
    Proceeding back via exception chain:
    Exception state (sv=0x2CD3AC80)
    previously dumped as "Latest" state. skipping...
    Exception state (sv=0x2CDA8000)
    PC=0x900078B8; MSR=0x0200F030; DAR=0xE0FA8000; DSISR=0x42000000; LR=0x90007438; R1=0xBFFEE3D0; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 7.9.0:
    Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC
    panic(cpu 1): 0x300 - Data access
    Latest stack backtrace for cpu 1:
    Backtrace:
    0x00083498 0x0008397C 0x0001EDA4 0x00090C38 0x0009402C
    Proceeding back via exception chain:
    Exception state (sv=0x2CD3AC80)
    PC=0x0099E54C; MSR=0x00009030; DAR=0x3AA4C34E; DSISR=0x40000000; LR=0x0099EFA0; R1=0x19D63AC0; XCP=0x0000000C (0x300 - Data access)
    Backtrace:
    0x0099FF28 0x0099EFA0 0x00997468 0x00988020 0x0027E650 0x00280324 0x0007AC48 0x00021668
    0x0001BCE8 0x0001C0F0 0x00094318 0x00000000
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.GeForce(3.4.2)@0x981000
    dependency: com.apple.iokit.IOPCIFamily(1.4)@0x4b3000
    dependency: com.apple.iokit.IOGraphicsFamily(1.3.5)@0x4c6000
    dependency: com.apple.NVDAResman(3.4.2)@0x4fc000
    dependency: com.apple.iokit.IONDRVSupport(1.3.5)@0x4e6000
    Exception state (sv=0x2CDA8000)
    PC=0x900078B8; MSR=0x0200F030; DAR=0xE0FA8000; DSISR=0x42000000; LR=0x90007438; R1=0xBFFEE3D0; XCP=0x00000030 (0xC00 - Sp
    The distnoted.crash.log refers to the following exception:
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000006
    (I can post this whole log if it would be helpful.)
    Any thoughts on what might be causing this problem? I will continue to test the effects of changing various aspects of my configuration, but since I can only get the problem to occur once a day (after my computer has been asleep for a while), it might take me a few days or weeks to track the problem down through blind trial-and-error.
    Thanks!
    Dual 1 GHz G4   Mac OS X (10.3.9)   1.5 GB SDRAM, GeForce4 Ti 4600 LCD display, LaCie 1394 external drive

    After a little experimentation, I've managed to narrow the problem down a little, but still haven't resolved it. My computer still crashes almost every time I wake it up after a long sleep (multiple hours). Things work fine for a few minutes, but then some aspects of the display start to get mangled (e.g. strange lines appearing, text becoming distorted, etc.), then some applications start crashing and the system hangs. Sometimes I get a kernel panic, but not always - but I always need to reboot to solve the problem.
    The errors in the system log files differ from crash to crash, but the one thing that seems to be consistent is that I get a "Graphics chip error". Is this usually a hardware problem, or can it be due to a software problem? Sometimes this graphics chip error is the first error to occur, although sometimes an application will crash a few seconds before the graphics chip error is recorded in the system.log.
    In my original post, I suggested that the problem might be due to an AppleScript that mounts an external drive. I have since determined that this is NOT the cause of the problem.
    Any thoughts on what might be going on?
    Here's the relevant part of the system log file from today's crash:
    From /var/log/system.log:
    Mar 31 13:52:18 nitrogen kernel: System Sleep
    Mar 31 13:52:24 nitrogen kernel: System Wake
    Mar 31 13:52:24 nitrogen kernel: Wake event 0020
    Mar 31 13:52:24 nitrogen kernel: enableClockSpreading returned with 0
    Mar 31 13:52:24 nitrogen kernel: AppleNMI unmask NMI
    Mar 31 13:52:24 nitrogen kernel: Adaptec warning: Resetting SCSI bus.
    Mar 31 13:52:24 nitrogen kernel: FWOHCI handleSelfIDInt - nodeID not valid (reset bus and retry 1)
    Mar 31 13:52:24 nitrogen kernel: UniNEnet::monitorLinkStatus - Link is up at 100 Mbps - Half Duplex
    Mar 31 13:52:30 nitrogen mDNSResponder[159]: mDNSResponder Waking at 19764350
    Mar 31 13:52:30 nitrogen mDNSResponder[159]: -1: DNSServiceRegister("Bill's Mostly Celtic Music", "daap.tcp.", "local.", 3689) failed: Client id -1
    invalid (-65549)
    Mar 31 13:52:30 nitrogen mDNSResponder[159]: -1: DNSServiceRegister("iTunesCtrl5DC89B66EC5DD60B", "dacp.tcp.", "local.", 3689) failed: Client id
    -1 invalid (-65549)
    Mar 31 13:52:30 nitrogen SymMissedTask - parent[240]: sleeptime recorded: Thu Mar 30 17:58:59 2006
    Mar 31 13:52:30 nitrogen SymMissedTask - parent[240]: waketime is: Fri Mar 31 13:52:30 2006
    Mar 31 13:52:50 nitrogen crontab[659]: (root) LIST (root)
    Mar 31 13:52:50 nitrogen crontab[661]: (root) LIST (sage)
    Mar 31 13:57:07 nitrogen kernel: Graphics chip error! Restarted.
    Mar 31 13:57:24 nitrogen last message repeated 19 times
    Mar 31 13:57:24 nitrogen crashdump: Started writing crash report to: /Library/Logs/CrashReporter/WindowServer.crash.log
    Mar 31 13:57:24 nitrogen crashdump: Finished writing crash report to: /Library/Logs/CrashReporter/WindowServer.crash.log
    Mar 31 13:57:25 nitrogen kernel: Graphics chip error! Restarted.
    Mar 31 13:57:31 nitrogen last message repeated 42 times
    Mar 31 14:00:00 nitrogen CRON[667]: (root) CMD ("/Library/Application Support/Symantec/Scheduler/SymSecondaryLaunch.app/Contents/schedLauncher" 1 "/Applications/Symantec Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate" " " "oapp" "aevt" "exAG" "-update LUdf -liveupdatequiet YES -liveupdateautoquit YES")
    Mar 31 14:00:00 nitrogen /Library/Application Support/Symantec/Scheduler/SymSecondaryLaunch.app/Contents/schedLauncher[667]: launch for id = 1 event = oapp result = 0
    aped[186]: Attach denied: super-user process, for LiveUpdate[674]
    aped[186]: Attach denied: super-user process, for loginwindow[686]
    aped[186]: Attach denied: super-user process, for SecurityAgent[690]
    aped[186]: Attach denied: super-user process, for IRTool[710]
    aped[186]: Attach denied: super-user process, for loginwindow[836]
    aped[186]: Attach denied: super-user process, for SecurityAgent[839]
    Mar 31 14:01:55 nitrogen sudo: sacks : TTY=ttyp1 ; PWD=/private/var/log ; USER=root ; COMMAND=/sbin/shutdown -r now
    Mar 31 14:01:55 nitrogen shutdown: reboot by sacks:
    Mar 31 14:01:57 nitrogen syslogd: exiting on signal 15
    Mar 31 14:08:44 localhost syslogd: restart
    Dual 1 GHz G4   Mac OS X (10.3.9)   1.5 GB SDRAM, GeForce4 Ti 4600 LCD display, LaCie 1394 external drive

  • Problem with dual graphic

    I own HP PAVILION G6 1202TX model.It is built with dual graphics INTEL and RADEON. INTEL - INTEL(R) HD Graphics 3000 and
    AMD- RADEON(TM) HD 6470M.earlier accidently i lost my windows and its all drivers but my main issue is with ts graphics.If i install AMD drivers a notification bar shows problem with INTEL graphics and if i install INSTALL it shows issue with RADEON.After installing the driver every time i  restart my pc AMD shows a dialogue box and if i have installed AMD ,INTEL keeps poping up notification bar in right lower corner of pc it something related to INTEL SYSTEM TRAY GRAPHICS.
       Now i have installed INTEL graphics driver i and every time ii restart my pc it shows a dialogue box 
    this dialogue box appers every time i start my pc
    PLEASE HELP ME
    Hope for a freequent action
    THNK YOU.
    This question was solved.
    View Solution.

    Hi ashwani26596,
    Let's start by using the HP Support Assistant to check for any updates and drivers to see if that resolves the issue. If that doesn't work then go your Control Panel and then Programs and Features and uninstall the Catalyst Control Center. Then try installing both the Intel High-Definition Audio Driver and the AMD High-Definition Audio Driver.
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Problem with the graphics

    I am having problem with my hp desktop p2-1255il.<br>After installing windows 7. There is a problem with the graphics. The video is not playing in good quality.<br>And the screen resolution is not changing.<br>Please help me please<br>with regards

    Here are the specs for your HP Pavilion p2-1255il Desktop Computer and here is the HP Software and Driver Downloads page for your computer. If you haven't installed any drivers and/or there are unknown devices in the Windows Device Manager, you will need to download and install the proper drivers from the drivers link above. This includes your video adapter being listed as "VGA" instead on "Intel HD xxxx".
    Please  send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

Maybe you are looking for

  • Dynamic update  of cursor records when table gets updated

    Hi, I am having a table with 4 columns as mentioned below For a particular prod the value greater less than 5 should be rounded to 5 and value greater than 5 should be rounded to 10. And the rounded quantity should be adjusted with in a product start

  • CS3 Version Cue as a sync tool?

    Has anyone tried saving a Lightroom library to a VC "Lightroom" project? Any idea if using this approach would work as a way to synch a library & all its related folders/files easily between a desktop/laptop? Thinking of giving it a whirl, but want t

  • Deleted requests from a infocube remain in F table

    I used the manage tab of the infocube to delete seleted requests. The request are no longer visible, but the data for them remains in the F table. how can i reconcile this?

  • Normal to have "Final Cut Studio - Audio Content 1" disc in package?

    Hello All, I am trying to install a newly purchased Logic Studio 9 and the installation is not going well; it is asking me for an "Additional Content" disc...but I don't have such a disk in the box...I do have a Final Cut Studio Audio Content 1 disk

  • Critical Error Message comes up after trying to ingest video in capture mode

    I have a Sony FX1 camera and a MacBook.  The MacBook is brand new and has the newest version of Adobe Premiere Pro.  I am trying to ingest video onto my desktop by capturing the video through Adobe Premiere Pro.  The Sony FX1 camera has an HDV output