Pypanel takes up 100% cpu

Every once in a while, and not yet with any similarity in the circumstances which it occurs, pypanel will appear to refresh itself endlessly and while taking up copious amounts of CPU time.  Like, all of it.
Anyone else seeing this?  There aren't any errors printed.  I kill it, restart it, and it goes along merrily for a while until it screws up again.
pypanelrc if it helps:
# PyPanel v2.4 Configuration
# This configuration file is a Python script that will be executed when
# PyPanel is started. In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
VERSION = 2.4 # Config file version
# Colors: Format is hex triplet - 0xrrggbb
BG_COLOR = "0xd6d6d6" # Panel background and tinting color
TASK_COLOR = "0x000000" # Normal task name color
FOCUSED_COLOR = "0x1826de" # Focused task name color
SHADED_COLOR = "0x808080" # Shaded task name color
MINIMIZED_COLOR = "0x808080" # Minimized task name color
DESKTOP_COLOR = "0x000000" # Desktop name color
CLOCK_COLOR = "0xbfbfbf" # Clock text color
LINE_COLOR = "0x606060" # Vertical line color
# Text Shadow Colors
TASK_SHADOW_COLOR = "0xffffff"
FOCUSED_SHADOW_COLOR = "0xffffff"
SHADED_SHADOW_COLOR = "0xffffff"
MINIMIZED_SHADOW_COLOR = "0xffffff"
DESKTOP_SHADOW_COLOR = "0xffffff"
CLOCK_SHADOW_COLOR = "0xffffff"
# Panel Spacing and Location Options: Measured in pixels
P_LOCATION = 0 # Panel placement: 0 = top, 1 = bottom
P_WIDTH = 0 # Panel width: 0 = Use full screen width
P_START = 950 # Starting X coordinate of the panel
P_SPACER = 12 # Spacing between panel objects
P_HEIGHT = 24 # Panel height
# Icon Size Options: Measured in pixels
I_HEIGHT = 16 # Panel application icon height
I_WIDTH = 16 # Panel application icon Width
APPL_I_HEIGHT = 24 # Application launcher icon height
APPL_I_WIDTH = 24 # Application launcher icon width
TRAY_I_HEIGHT = 24 # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH = 24 # System tray icon width (usually 16 or 24)
# If TRAY_I_WIDTH is set to 0, then the
# width specified by the tray app will be used
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#CLOCK_FORMAT = "%Y-%m-%d %H:%M" # Ex: 2004-09-25 17:45
CLOCK_FORMAT = "%B %d %l:%M %p"
# Clock Delay: Seconds between each clock update during periods of inactivity
CLOCK_DELAY = 20
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
HIDE_LIST = []
# Hidden Panel Size: Size of the panel when it's hidden/minimized
HIDDEN_SIZE = 2
# Panel Text Font: This option takes either a traditional or Xft font string
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
# "aquafont-8"
FONT = "Deja Vu Sans-9:Bold"
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled - Selected apps are moved to the current desktop
# 2: Enabled - Current desktop is changed to the selected apps desktop
SHOWALL = 0 # 0, 1 or 2 - see descriptions above
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled - Show only minimized apps on the panel
SHOWMINIMIZED = 0
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# The "default" entry is used for applications with no icon. If left "",
# PyPanel will use the default icon distributed with the source.
# Add entries using the following format -
# "<application name>" : "<full path to icon>",
ICON_LIST = {
"default" : "",
"example" : "/usr/share/imlib2/data/images/audio.png",
# Application Launch List: Ordered list of icons and applications for the
# application launcher.
# Add entries using the following format -
# ("<executable>", "<full path to icon>")
LAUNCH_LIST = [
("gimp-2.2", "/usr/share/imlib2/data/images/paper.png"),
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
SHADE = 0
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
ABOVE = 1 # Panel is always above other apps
APPICONS = 1 # Show application icons
AUTOHIDE = 0 # Autohide uses the CLOCK_DELAY timer above
SHADOWS = 0 # Show text shadows
SHOWLINES = 0 # Show object seperation lines
SHOWBORDER = 0 # Show a border around the panel
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
DESKTOP_NAMES = []
# Panel Layout: -----------------------------------
# [ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above. Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
DESKTOP = 0 # Desktop name section
TASKS = 0 # Task names section
TRAY = 5 # System tray section
CLOCK = 4 # Clock section
LAUNCHER = 0 # Application launcher section
# Button Event Function Definitions
# Left click - button 1
# Middle click - button 2
# Right click - button 3
# Wheel up - button 4
# Wheel down - button 5
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# toggleShade(task)
# - Shade or Unshade an application
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
def desktopButtonEvent(pp, button):
""" Button event handler for the panel's desktop object """
if button == 1:
pp.changeDesktop(-1)
elif button == 2:
pp.changeDesktop(2)
elif button == 3:
pp.changeDesktop(1)
elif button == 4:
pp.changeDesktop(1)
elif button == 5:
pp.changeDesktop(-1)
def clockButtonEvent(pp, button):
""" Button event handler for the panel's clock object """
if button == 1:
os.system("xclock &")
elif button == 2:
pass
elif button == 3:
pp.toggleHidden()
elif button == 4:
pp.showDesktop()
elif button == 5:
pp.showDesktop()
def panelButtonEvent(pp, button):
""" Button event handler for the panel with no active tasks """
if button == 1:
pass
elif button == 2:
pass
elif button == 3:
pass
elif button == 4:
pass
elif button == 5:
pass
def taskButtonEvent(pp, button, task):
""" Button event handler for the panel's tasks """
if button == 1:
pp.taskFocus(task)
elif button == 2:
# Destroy the application
task.obj.destroy()
elif button == 3:
# Ex. - XMMS doesn't shade, so we want to minimize it instead and
# still use button 3 to shade other applications
# task.tclass is the tasks class name (WM_CLASS)
if "xmms" in task.tclass:
pp.toggleMinimize(task)
else:
pp.toggleShade(task)
elif button == 4:
pp.taskRaise(task, focus=1)
elif button == 5:
pp.taskLower(task, focus=0)
I already tried recompiling it.

There are some variables needed that you havent really explained..
1. What kind of environment are you running pypanel in.. is it Xfce.. Openbox.. etc..
2. How are you initiating pypanel to start.. are you starting it from .xinitrc or from something like autostart in Xfce?  If so can you post your .xinitrc or perhaps let us know what the command you are using in Xfce autostart might be etc???
3.  Are you using compositing?
Ive experienced what you speak of when i was in Xfce.. i cant say i recall having it happen in openbox since ive switched but i did find a fix in Xfce when i was using it..  though ive never used compositing.

Similar Messages

  • CORESERVICESD takes 90%-100% CPU about 5 minutes after every fresh start

    So, coreservicesd process takes 90-100% cpu after a fresh start. It doesn't start immediately after login but about 3-5 minutes after, and it happens +every time+ i start my computer and it lasts about 10 minutes or so before it stops eating the cpu.
    I haven't figured out any way to stop this behavior. I've reset smc, emptyed /Library/Caches, clean installed Snow Leopard (without restoring from Time Machine backup) but nothing seems to help.
    Does anyone here know what to do in my situation or does anyone have any new ideas what should I try to do? I appreciate every response.

    OK folks, problem solved. At least mine is. No coreservcesd eating cpu anymore! Hurray! This is the second time I boot and the computer seems to run perfectly. If the coreservicesd problem comes back I'll report here.
    So, what did I do:
    1. Changed from 64 bit kernel + extensions to 32 bit.
    2. Uninstalled SpiceRack and MozyHome Backup preference panes.
    3. Repaired Premissions
    4. Cleaned User Cache
    5. Cleaned System Cache
    6. Cleaned All Users Cache
    7. Rebuilt Launch Services
    8. Forced Empty Trash
    9. Removed Corrupt Preferences
    10. Updated Prebindings
    11. Reindexed Spotlight
    12. Cleaned Archived Logs
    13. Cleaned All Logs
    14. Flushed DNS Cache
    15. Removed .DS_Store Files
    16. Cleaned All Browser Caches
    17. Updated Whatis Database
    18. Updated Locate Database
    19. Cleaned Font Caches
    20. Booted from SL install dvd and ran Disk Utility's repaid disk & repair premissions.
    After these operations my mac runs faster and all errors in the Console log are gone! All steps (except 1, 2 and 20) can be preformed with different maintenance apps. I used an app called MainMenu.
    Message was edited by: sarukuku (fixed some spelling errors)

  • Tiger 10.4.4 Slow Afp access when AppleFileServer app takes up 100% CPU

    I'm hoping maybe someone here will have a clue on this because so far everyone else I've talked to doesnt!
    G4 Xserve Specs:
    G4 1Ghz Proc
    1.5 Gig Ram
    x2 60Gig drives (Software Stripe)
    LAN: 1Gig Asante 1000SX Fiber Card (w/ tiger drivers from Manufacturer)
    Previously running 10.3.9 then upgraded to 10.4.4
    Supports: Mac Manger (90 clients doing MMLocalPrefs)
    Reading Counts (about 60 concurrent clients)
    General Shares (130-160 clients) basically just mounts were people backup their local documents.
    Any given time about 250 users connected
    Users all in NetInfo
    Problem:
    Over Christmas break we upgraded our existing Xserve G4 Slot loader server from 10.3.9 to 10.4.3. When we returned from the break and all the teachers were back on we noticed that AFP file transfers were very slow. Mac Manger login, Reading Counts, Grade Quick, and even general shares were not responding as quickly as they did prior to the upgrade. The day after everyone returned the 10.4.4 update became available. We upgraded and still had the same problem. I called Apple support who ran me through plugging a machine directly into the server and more or less that was very fast. They blamed our switch gear and that was more or less the end of the conversation.
    Through the next 3 weeks I probed our switch guy for a resolution. He made modifications which seemed to get us a little fast, but still not back to where we were. So at the end of the 3rd week we paid a consulting company to come in and turn the new G5 server we recently purchased into the new main server. 10.3.9 Was installed then upgraded to 10.4.4. After all patches were applied we migrated the Netinfo users into Open Directory, moved over their home directories, Reading Counts databases, and Grade Quick databases. Also all Mac Manger stuff was recreated from scratch. Here is what I ended up with:
    G5 Xserve Specs:
    G5 2Ghz Proc
    3 Gig Ram
    x1 80 Gig drive (for System)
    x2 400 Gig drives (Software Stripe for storage)
    LAN: 1 Gig onboard NIC Copper
    10.3.9 Installed for MM usage then upped to 10.4.4
    Supports: Mac Manger (90 clients doing MMLocal Prefs)
    Reading Counts (about 60 concurrent clients)
    General Shares (130-160 clients)
    Users all in Open Directory
    The next morning when all the users came in things were better. Processor was no longer going to 100% early in the morning and staying there all day like it previously had. However it would do so on occasion still. Often staying at 100% for 30 mins and then dropping for no reason. When we continued to have the problem I decided to drop some clients. We previously had all student machines in one of our Elementary buildings doing MM logins as well. It was felt that these student (1 acct for each grade level) accounts could have corrupt files (which Disk Utility doesn’t pick up) because we were allowing them Multiple Logins with the same account. MM was disabled on all these machines and so were the accounts. This dropped us down to approx. 50-60 MM clients and again we seen an improvement. CPU was still sticking but not nearly as long.
    So that more or less brings us up to current. Here are things I’ve tried which don’t really fit too well into the above timeline, but were all done after the new server came online:
    - Went to all MM machines and deleted all the prefs from them. Also deleted the Classic folder out of all users’ profiles forcing new prefs to be created.
    - We had Mac Manger set to copy all prefs to the machines. Changed it to just internet and Admin prefs.
    - Have tested with different buildings disabled to see if one building was more so an issue then another.
    As it stands now when my CPU hits 100% the AppleFileServer app according to Top and activity monitor is using all of it. The hard drives are not blinking and the network graph is only showing approx. 400Kbs of traffic average. All I’m hearing from Apple is that I’m serving too many people which if my HDs were blinking like crazy and the server was putting out some decent network through put I would understand. Others have told me its all Mac Manger’s fault. Again though prior to the upgrade I never had any problem with this stuff! Even when I had high CPU usage in 10.3.9 it was barely noticeable by my network users both MM and regular shares.
    Any one have any ideas?
    -Jesse C. Smillie
    Gateway School District
    Monroeville, PA
    Xserve G4 and Xserve G5   Mac OS X (10.4.4)   Lots of Imacs, G4s, Ibooks, and now some Mac Mini's and G5s

    Hi folks.
    I've upgraded my servers to OS X 10.4.5 server...
    We're still experiencing slowness with clients (about 35), with network home folders. Especially noticable when more users are on-board.
    But even with just a few users logged in. And logging in seems to take longer (30 secs, instead of say, 10 secs).
    And file transfers are painfully slow.
    Logging in as a "local" admin user on the machine works great -- file transfers are faster too.
    Previously, we had a whole boat-load of other services on this particular server box. I've been progressively moving them off to other/new boxes... Aiming for the "one server - one service" principle.
    We also have a file-sharing volume, and Mail on the same box as the LDAP authentication/home folders, so I'm migrating these services to new boxes too (easier said than done in a production environment!).
    I usually run this command in a terminal window on a given machine or server, to see what's running at the time...
    run top -us 10 5
    Check how many page in-outs you have as well (listed in the info at the top of the 'top' command when it's being run).
    Other changes...
    I've recently put in 10/100/1000 HP switches to see if that helped (was 10/100 hubs and switches); that helped a lot, but the problems are still bad. I also upgraded my OS X Server boxes to 5GB of RAM.
    We're not a design studio... We're just an office with a "standard" load of documents being opened, editted and saved. Occasional PDFs, that type of thing. But mostly Word docs, web browsing and Mail.
    Hopefully migrating the large shared folder and Mail services will help too.
    I suspect any directories with a large number of files will be contributing (500+ files in a directory). But I don't have many/any like this.
    Add to that, using apps like Office/Word or Quark across a network, and that will definitely contribute.... Hence my reasoning to separate the stand-alone file-share to a different server box.
    I've also got client machines to only check mail every 15 minutes (especially until I get migrate them to another box).
    I'm also getting my network cabling checked out, just in case ... it is a few years old after all !!! I've replaced suspect patch leads with new CAT5 or CAT6 leads, and destroyed the old ones.
    Also, try checking through all your Log files on both the server, and a 'typical' client machine or two. I've noticed some 'interesting' entries in the Directory Services client log file, for example, talking about "Network transition occurred" and so on.
    My HP managed switches also report some CRC errors, and the occasional duplex-mismatch error... and a few traffic "errors", which I didn't know about until the managed switches were installed. (Might be solved by setting the speed/duplex of the port / Mac manually, or could be cabling issue).
    My client machines are all iMac G4's and iMac G5's. Oh, and occasional recent Powerbook G4's, with gigabit networking.
    Let us know if anyone has a break-through!
    Cheers,
    Derek!
      Mac OS X (10.4.5)  

  • Please help: Course loads very slow and takes almost 100% cpu and 1.08 GB memory

    The total page number is 129. We used Captivate 5.5. We have several Webpage widgets and a few videos. I tried to take out the web widgets and the videos, however, the course still loads very slow.
    I would really appreciate if someone can give somve suggestion.
    Thank you very much.

    Captain Ibuprofen, we actually continued having the slowness problem in the past week. Then one of our developers found out the reason: as same as yours, caused by the page number widget. I wish we would have seen your response earlier. But yeah, so now we took out the page number widget and everything goes normal.
    Also thanks for the tips on using the cpInfoCurrentSlide variable when adding the slide number. Thanks Andy.

  • Photoshop CS5 always around 100% CPU usage

    Photoshop CS5 12.0.1 x64 running on Snow Leopard 10.6.4 always takes around 100% CPU, no matter if it's on screen or not. I can not figure out what it is doing behind the scene. I have deactivated fonts preview and I have no third party plugin except for the FontExplorer plugin (that handles missing font requests).
    Use case example : Right now, Photoshop is hidden and on a different Space (as in Mac "Spaces"). The only open file is a psd file, containg only a few layer and groups, no text and is 240px X 130px. For the past 10 minutes, Photoshop's CPU usage has varied between 99.8% and 103%. This seems odd, comparing to After Effects running at the same time using only around 0.6% CPU...
    Any idea how I can fix this?

    Try turning off font previews, try disabling your third party plugins.
    We've seen several third party plugin bugs that would waste CPU time.
    And font previews can spend time (completely interruptable) until the previews are completed.
    Photoshop normally uses 1% or less CPU when in the background.

  • Reader 9.1 (Linux) takes 100% CPU

    Initially when starting Adobe Reader and opening a document everything is fine. But after a few minutes Reader takes up to 100% CPU. This also happens when starting Adobe Reader without opening a document.
    It's Adobe Reader 9.1 (AdobeReader_enu-9.1.0-1.i486) on Fedora 10 (i386)

    Hello there,
    I can reproduce the same issue. I just start acroread (without any options or files), wait some time and suddenly acroread starts to use one whole cpu. Here some information about the system:
    > cat /etc/issue
    CentOS release 5.2 (Final)
    > uname -a
    Linux wumc0310 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    > acroread -v
    9.1.0
    I also tried the trick with
    > ACRO_DISABLE_FONT_CONFIG=1 acroread
    but it didn't change anything.
    Do you got some ideas how I can track down this problem? I tried to use
    > acroread -DEBUG
    but here absolutely nothing happened, just with
    > acroread -DEBUG acroread
    the reader started and shows
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/Annots.api ... [dlopen success for Annots.api, handle = 0xbf32f68]
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/EScript.api ... [dlopen success for EScript.api, handle = 0xca14620]
    after some minutes the next plugin info occured:
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/EFS.api ... [dlopen success for EFS.api, handle = 0xcc1fad0]
    and some minutes later, the acroread process started to use the whole cpu...
    If I start acroread and try to trace the programm, at first the output looks like:
    gettimeofday({1242055601, 629918}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055601, 629991}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT}], 2, 15) = 0
    gettimeofday({1242055601, 644659}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055601, 644729}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT}], 2, 1) = 0
    gettimeofday({1242055601, 645655}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055601, 645719}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT}], 2, 0) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT}], 2, 0) = 0
    and as soon the cpu consumption has started, the output is:
    gettimeofday({1242055677, 855078}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055677, 855118}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT, revents=POLLERR|POLLHUP}], 2, 5) = 1
    gettimeofday({1242055677, 855158}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055677, 855197}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT, revents=POLLERR|POLLHUP}], 2, 5) = 1
    gettimeofday({1242055677, 855237}, NULL) = 0
    ioctl(3, FIONREAD, [0])                 = 0
    gettimeofday({1242055677, 855277}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=13, events=POLLOUT, revents=POLLERR|POLLHUP}], 2, 5) = 1
    (just for the record)
    Greetings
    Toni

  • Fontd and PS take me almost 100% CPU

    When I am using font function in Photoshop, fontd and PS take me almost 100% CPU!!
    How can i solve this?

    Captain Ibuprofen, we actually continued having the slowness problem in the past week. Then one of our developers found out the reason: as same as yours, caused by the page number widget. I wish we would have seen your response earlier. But yeah, so now we took out the page number widget and everything goes normal.
    Also thanks for the tips on using the cpInfoCurrentSlide variable when adding the slide number. Thanks Andy.

  • Java process take 100% cpu

    Hello,
    I have a webapp running on Tomcat 5.0.28/RHEL 3.0. After some time (approximatively 1 hour), a java process take 100% cpu load and never stop, but the application do nothing.
    Some detail on my configuration :
    Distribution : Redhat Enterprise Linux 3.0 (updated)
    Kernel 2.4.21-37.0.1.ELsmp
    Glibc 2.3.2-95.37
    JVM : JRockit 1.4.2.08 (the last one)
    Tomcat : 5.0.28
    Server : 2*Xeon 3GHz HT, 2Go RAM
    JVM param : -Xmx:256m -Xms:256m
    Thanks for your answers ...

    Try taking thread dump (send a SIGQUIT to JRockit using "kill"). If you
    get a thread dump, the VM is alive, and it's probably your java program
    that's broken. In that case, make a JRA recording to see what's happening:
    http://e-docs.bea.com/jrockit/docs142/usingJRA/jra.html
    The methods pane is probably what you're looking for.
    If you don't get any thread dump when sending a SIGQUIT to JRockit,
    come back here.
    Regards //Johan
    Gr?goire Rolland wrote:
    Hello,
    I have a webapp running on Tomcat 5.0.28/RHEL 3.0. After some time (approximatively 1 hour), a java process take 100% cpu load and never stop, but the application do nothing.
    Some detail on my configuration :
    Distribution : Redhat Enterprise Linux 3.0 (updated)
    Kernel 2.4.21-37.0.1.ELsmp
    Glibc 2.3.2-95.37
    JVM : JRockit 1.4.2.08 (the last one)
    Tomcat : 5.0.28
    Server : 2*Xeon 3GHz HT, 2Go RAM
    JVM param : -Xmx:256m -Xms:256m
    Thanks for your answers ...

  • "IMAQ Stop" takes 10sec to execute and consumes 100% CPU

    Hi, I'm calling IMAQ Stop to end an acquisition but it consumes 100% of my processor and takes 10sec to complete (all the while consuming 100% CPU).  In our application we start and stop the camera regularly and this is exactly when the user wants the program to be interactive so this 10sec delay is a big irritation to them.
    My setup is - Dalsa Piranha line scan camera, RT 9 running on a desktop PC  (it is compatible according to the test), PCI-1429 cameralink card.
    Any help or comments welcome.
    Thanks.
    Solved!
    Go to Solution.

    Ah I have managed to solve this one, but first here are the answers to your questions:
    Using Stop and then Close or just Close makes no difference.  The Stop was taking so long that I simply used a probe before and after it on the error cluster and with 2009's probe timestamp function I could easily see how long it took.  For more detailed timing analysis I use the us timer available with RT.
    In any case, the way I solved the problem was by making sure that I stop the acquisition BEFORE the line clock to the camera is stopped.  So IMAQ Stop probably waits for the end of the current frame before it returns - and if the line clock stops halfway through a frame (as was the case), a 10 sec timeout probably causes Stop to return eventually. 
    The line clock is being driven by a DAQ card (via RTSI) and I simply closed the session to that counter AFTER calling IMAQ Stop.  The DAQ interface is not shown in the example above as it is coded in a different vi.
    Thanks for all the help. 

  • Zenity takes 100% CPU Time

    When I run as root or normal User
    zenity --notification --text="test"
    The zenity process takes 100% Cpu time
    System:
    Arch 32bit gnome 2.22
    Last edited by brickwedde.eu (2008-05-06 11:26:00)

    I GOT IT... I think.
    zenity --notification actually calls libnotify! I was trying out a script and suddenly realized something, because by chance dbus decided to take a break. Take a look at these two code fragments.
    $ zenity --info --text "hello"
    $ _
    $ zenity --notification --text "hello"
    libnotify-Message: Unable to get session bus: Failed to connect to socket /tmp/dbus-jmMdFXbznS: Connection refused
    <hang>
    <100% CPU usage>
    I've figured out why: it's basic socket programming gone wrong. The notification part of zenity calls libnotify, tries to connect to libnotify's socket, and fails, using 100% CPU waiting for the connection to... end a stream that never started.
    A possible solution is to just use notify-send.
    -dav7
    Last edited by dav7 (2008-05-09 00:27:30)

  • Labview Loop Takes 100% cpu

    Hello,
    I'm wondering the best way to send a serial command when a button is pressed.  Right now I have a while loop that checks if the button is pressed each time.  If is is, it sends the serial command and adds the response to a text box via a shift register.  If not, the original text box info is passed to the shift register.  However, this loop takes 100% cpu (ok, only one core at 100% so technically %50), and I think its because the text box is getting overwriten every cycle.  However, I'm not sure how else to do it.  Attached is a print screen, let me know if you would like the file.
    Thanks,
    Eric
    Solved!
    Go to Solution.
    Attachments:
    loop1.png ‏42 KB

    An event structure is the best way.  The next best way is to simply put in a wait in the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • OAM process takes 100% CPU (strange SQL in it)

    Hi!
    I have noticed on our PROD that on eprocess is taking more then 7 hours with 100% CPU load. Here is brief detail about it:
    03:08:12 apps@PROD> @si 547
    Current SQL....have result if session is active....
    SQL_FULLTEXT
    Select count(distinct(R.Request_ID))  From  Fnd_Concurrent_Programs_vl CP,  Fnd_User U, Fnd_Concurr
    ent_Requests R, Fnd_Responsibility_Tl RES,  Fnd_Application_vl A
    Elapsed: 00:00:00.06
    SID_SERIAL  STATE      OSUSER     TERMINAL   LOGON           SEC_WAIT LAST_CALL
      547,42977 WAITED SHO prod       unknown    12.01 12:50:54     26423     26425
                RT TIME
    Elapsed: 00:00:00.01
    SID_SERIAL      AUDSID DBPID  APPPID USERNAME   MODULE        ACTION          STATUS   STATE
      547,42977   11087548 10585  1344   APPS       OAM                           ACTIVE   WAITED SHO
                                                                                           RT TIME
    Elapsed: 00:00:00.01
    03:15:41 apps@PROD> As you can see, SQL is prety strange and it's plan is several Gigs(!!!) Because module is OAM I have no guts to kill it just like that. Is there any way to see what is this really and could it be killed (Do I have to restart concurrent) or what?
    THX in front.
    Damir Vadas
    Edited by: Funky on Jan 13, 2009 3:15 AM

    After some KGB approaches, one user with System Administrator responsibility has admit that he has run by mistake u query!
    So be aware whom do you expose System Administrator responsibility!
    Case closed!

  • Lightroom is very slow, utilizes 100% CPU, then freezes or closes program.  How do I fix it?

    I am having a problem with Lightroom 5 being very slow, utilizing 100% CPU, then freezing or closing the program.  How do I fix it?
    I just upgraded to LR5 from LR3 on Sunday as well as CS6 from CS5 (which I have not tried out yet).  I spent several hours talking with Vamil, from LR Support Staff yesterday.  He was extremely helpful and kind and tried everything he could think of while remote-handling my PC and talking with me on the phone.  He deleted preferences, cache, temp files, updated graphics with a new replacement file from AMD site, then re-downloaded and reinstalled LR5. 
    It is still very slow and then freezes and closes down with a message of utilizing 100% CPU.  Within several seconds of using the brush in Develop, I started having lots of problems.  I could not even move the picture around.  The side screens would not disappear like they should.  And I could not move to another picture.  The day before I spent several hours trying to work on just 1 picture.  After all the changes yesterday, I tried to move from picture number 1 to about 130 after having not touched it for 10 minutes, and a half hour later, it still said, "Processing" with no picture coming up, just a blank prieview pane.
    LR Support suggested I get a new CPU though he thought according to specs mine should be ok and other programs were running fine.
    My PC is only 2 years old.
    I talked to HP briefly about CPU updates for my HP PC.  He said I probably do not have a problem but suggested I run self-diagnostics and maybe buy a new CPU anyway. 
    I ran diagnostics listed through the HP Support Assistant connection on my PC.  All was ok. 
    I still researched if I could buy a compatible CPU upgrade.  I cannot even find any CPUs still selling that are listed for my PC.  Best Buy Store said they could not even order a compatible CPU.  They said my Bus speed may not be big enough, so they suggest I get a new PC.  What Bus speed do I need?
    I have the following PC Setup:
         AMD Phenom II X6 1045T Processor 2.70 GHz with 6 Cores
              with 2700 MHz Base, 3200 MHz Boost, and 4000 System Bus Speed, and 95 watts;
         HP Pavilion Elite, HPE-500y, 900 GB Free, new in 2011;
         Windows 7, 64 Bit;
         RAM 16 GB, DDR3;
         Graphics AMD Radeon HD 6450;
         Nikon, D200, with Raw Files;
         External Hard Drive for Original Photos, 600 GB Free;
         LR Catalog and Library are on Main Hard Drive;
         Monitor, Sony CPD-200ES, new in 2004.
    I am thinking of buying a new monitor tonight mostly so I can do better photo work while enlarging the pictures to do it.  I am concerned that while it will help my viewing, it will take more power away, and make my usage of LR5 even worse.  Will a new monitor affect my performance?  I am looking at HP Monitors with IPS.  Is this the best recommended choice for LR and Photoshop CS6?
    I think I would like to stay with a 6 core processor since I need to have several items open for other non-Photoshop functions.  When running LR5, I had everything else closed.  With LR3, I was able to have other things open.
    I do not really want to buy a new computer and know that those I have talked with at this point are only guessing after looking for what they thought should fix it.  4 People from Lightroom Support have all thought I should not be having problems with my setup. 
    I bought one of the best computers 2 years ago.  Is it really obsolete already so that I cannot use LR5?  Is everyone else buying a new PC every 2 years?  I used to go 5-7 years. 
    Even though I have figured out some of what my PC has, I really do not know technically what I am talking about so am at the mercy of other's help.  Are there any solutions that might work short of buying a new computer?
    I also have taken 40th anniversary photos for some people and am waiting to give them as a free gift since I am not a professional at all.  I am hoping to get through this problem soon so that I can provide some nice memories for them.
    I have not gotten any further than trying to adjust 1 picture.  I have no comments on uploading speed, since I did that while still in LR3.
    Thank you for your time and help.

    I'm running LR with no speed issues on an Intel 17-860 quad core with about the same performance as your AMD Phenom II X6 1045T Processor. My system is also an HP, which originally had a single 1TB 7200 HDD. I've since added a second 2TB Black Caviar HDD, which provided no significant difference in LR's performance.
    AMD processors do not implement hyper-threading and don't need it. I'd start debug by process of elimination:
    1) Disconnect all externally attached USB, FireWire, or other externally connected devices except keyboard, mouse, and your single 1280 x1024 display. This includes all externally attached memory card readers, phones, ipads, etc.
    2) Reboot and logon as Administrator.
    3) Remove your Internet connection and turn off all Antivirus and firewall programs.
    4) Open LR and under Catalog Settings set 'Standard Preview Size' to 1440 (slightly larger than your display width). Under the Metadata tab here make sure 'Automatically Write changes into XMP is NOT checked.
    4) Create a 'New Catalog,' Create a new folder and add about 10 raw image file copies to it for testing, and Import it into the new catalog. In the Import module make sure under File Handling 'Render Previews' has 1:1 selected. Wait until all Preview building has completed in the Library module.
    Try editing these image files inside the new catalog as you were previously.

  • Sessions with Event "class slave wait" taking 100% CPU

    Hi experts,
    I have an issue in an 11.2.0.2 RAC database with 2 standby nodes that are driving me nuts.
    All started when I've been told there are 2 Oracle processes consuming too much CPU in the environment.
    I found 2 processes which takes 100% CPU each. These processes are Oracle processes into the DB and checking them out although they are registered in v$process and v$session, there is nothing related to them in v$bgprocess so I could not find out which oracle processes started these 2 OS processes.
    The view v$session shows them ACTIVE in the event "class slave wait". There aren't too much information about this event, at least I failed to find...
    Using dbms_monitor and dbms_system to create trace events did not create any tracefile. Only ORADEBUG was able to create events but with nearly no information inside the trace files.
    Questions I need to have answered or at least hints that I can follow to find the answer:
    1) what is causing the CPUs to be consumed at 100%? Which process?
    2) Why does these processes are using that much of CPU?
    3) What can be done to safely get over it?
    Honestly I don't know where else to look at except trying to get some help. Could someone give me a hand please?
    BR,
    Lauro Ojeda
    Edited by: LauroOjeda on 26/01/2013 06:44

    Hi Pal, thanks for your reply!
    Here are the answers:
    1. If it is RAC there is no such construct as a "standby node" and you say you have two of them. Please be specific ... is this RAC or Data Guard or a combination? Or do you have a three node cluster with all services pointing to only a single server wasting all of the resources of the other three?
    A: This is a combination of them. We have 2 nodes in a RAC environment shipping logs to two physical standby databases in another site.
    2. Two processes can not be at 100% of CPU any more than I can be 200% awake. Please show us how you arrived at this conclusion, on what hardware and operating system, and include a formatted (read the FAQ to learn how) extract showing what you are seeing.
    A: top in Linux shows two oracle processes consuming 100% (or nearly of it) of 1 CPU each. This is a 16 cores server (each primary node) so 2 of these are working on full capacity to service the described processes.
    3. What processes? Name them and again run a SQL statement and post the output so we can see what you are looking at.
    A: Like I said before I failed to find which background process they belongs to as there are no indications of them in v$bgprocess and in v$session/v$process either. I can see them in v$process and v$session but again, there are no indications of for which bg process they belong to.
    4. Is anything slow? Are there any problems with the system or are you only reacting to two numbers you think are too high?
    A: No, system is not slow because of that but the client wants to investigate and have it sorted as it is not normal.
    Additionally I found a bug in metalink which seems to be the culprit, but I'm unsure yet. This is Bug 12929268 : HIGH CPU ON ORA_O00N PROCESS
    Is any other information that I may provide you?
    Thanks for help!
    Lauro Ojeda

  • Finder and loginwindow use 100% cpu with 10.6.8

    I recently installed the patch to OS X 10.6.8 and now the finder is very unstable and uses 100% cpu and the loginwindow uses 100% cpu also.  Yes I have Parallels 6 on this machine but I already "un-checked" the "show windows applications in doc" option which is the recommended solution.  However, this did not fix the problem.  I do not know how to determine what actual process is causing this finder / loginwindow issue.  I very much appreciate if anyone has suggestion how to fix this problem. 
    This is on a mid-2011 MacBookPro.
    thank you.

    TBauer, I had the same problem with 10.6.8 using 100% of the CPU with Parallels 6 installed.  The following steps solved this problem for me:
    0.  Take a screen shot of your Dock if you wish to remember it as currently set
    1. Launch Activity Monitor and click on the CPU column so you can see Dock using the CPU
    2.  Move   ///Users/ ...  /Library/Preferences/com.apple.dock.plist to the trash
    3.  Click on Dock and click on Quit Process to stop the Dock
    OS X will then rebuild the default Dock
    4.  Put the items back in the Dock that you want
    That solved the problem for me yesterday morning.  I've launched Parallels 6 several times now and moved the machine from my work network to home and the 100% CPU problem hasn't returned.
    Hope that works for you, too!
    I don't think using the combo updater will solve the problem.  The problem appears to be a .plist that is generated with OS X 10.6.7 and earlier that contains icons of a larger than Apple documented size causes the CPU looping.  Rebuilding the dock.plist under OS X 10.6.8 appears to solve the problem.
    Parallels has issued a knowledge bulletin saying they are looking into the problem.  On their web site they have another approach involving moving the offending icon out of the dock to solve the problem.  I like my solution better but theirs works, too.

Maybe you are looking for

  • Import Analog Video

    Hi, I would like to import analog video into my Mac so that I can edit and extract video. I have many analog video tapes and I would like to import into my Mac. I can output video to my analog video camera or to a VCR but can't input. There is a unit

  • Resume on apple tv

    After updating the software, my apple TV does not resume plays. This is extremely annoying and I don't understand why Apple feels the need to fix something that isn't broken? Please just get you act together and fix this major (yet another this year.

  • 10.5.2 Upgrade from 10.4.11 Performance HIT Bad!

    Ok, this will be my first gripe about an OS update but I am hoping it is a user error thing. I went from 10.4.11 to 10.5.2 last night on my 2.4 Ghz Mac Book Pro(4 GB Ram) and the computer is acting like my old Blueberry iMac when I attempted to go fr

  • IBook doesn't load CD's/DVD's at all

    Can someone please give me some advise? I loaded my iBook today and found that iChat was no more! When I click to load it a question mark appears over it and it does not load at all. When I checked for it in Applications it isn't in there either. Som

  • Z10 Not Displaying Calendar Alerts

    I'm wondering if anyone else is having this issue as well. My calendar seems to sparodically choose which calendar events it will notify me of, and which ones it will completely ignore. Before you ask, yes, the alerts are on, yes it's for the correct