Program links cause programs to hang

Whenever I click a link that opens a program to launch a file, the programs jumps in the dock repeatedly and hangs. But if I open the program first and then manually select the file to open, this does not happen. One recurring example is if I click a torrent link that launches Transmission, it will hang. But when I force quit and then manually re-launch Transmission it comes up fine and the torrent will already be added.

I also wanted to a few more examples of programs hanging. When I option-click a dmg and select open with disk utility, the program hangs. When I double-click an installer file for an application, the installer hangs. Also I cannot mount dmg files unless I logout and back in.

Similar Messages

  • Process.waitFor() causes program to hang!

    I've successfully created a Process and run it using Runtime's exec(String path), and the kinds of processes I've successfully run have included Winzip, a WS_FTP Pro script, and a regular .bat file. I've also successfully called waitFor() on these processes, but in this particular case I'm calling a program that takes a file I give it as a parameter and merges its data into a database. I've been doing this procedure for a while (either from a command line or in a .bat file), but now I need to call it from my Java code. Preferably I'd like to waitFor() the process each time because I need to make sure all the files are merged in chronological order. My current test case only uses ONE file, but in reality there will be several. With one file, I can run the program and it appears to run fine (and it runs fast--like maybe a second or two at most), but whenever I call the following line it hangs indefinitely (I've never seen it terminate, even after several minutes):
    focusProcess.waitFor();
    When I just execute that program by itself by calling a .bat file with a hardcoded filename, I get standard output back from the program I'm calling. I'd like to see this output when I run my Java program and it appears to run fine, because I have no way if it IS running correctly! So, I added the following:
    BufferedInputStream bis = new BufferedInputStream(focusProcess.getInputStream());
    StringBuffer sb = new StringBuffer();
    int c;
    while((c=bis.read()) != -1) {   
    sb.append(c);
    bis.close();
    I'm not sure if this is the right way to monitor that InputStream that I get from the process, and even if that InputStream is going to give me the standard output from that the process normally writes to the terminal. All I do know is that again, the program seems to hang indefinitely, and I guess it has to do with the fact that maybe this process isn't notifying me that it's terminated, and so I'm still waiting for the rest of that InputStream. And yes, I HAVE tried both of these situations together AND separately (so I know that both pieces of code cause the program to hang).
    Any ideas would be much appreciated!

    Paying attention to the standard output from the running process is good for debugging (and reporting program progression, if necessary) but probably doesn't contribute to the problem you are seeing. The standard input to the process, however, is a different story. If the process you have Runtime.exec'd is waiting for something on stdin, then the OS will block on behalf of the program that is blocking for input and never terminate!
    Try running the exec'd command from the command-line and see if it needs any input (i.e. you have to press a key, or enter, or send EOF) for the program to complete. If this is the case then your Java program must supply that process with the appropriate input or it will just hang.
    As for printing the output from a process... here's a quick proof of concept:
    import java.io.*;
    public class Exec {
        public static void main(String args[]) throws Exception {
            // Make sure we've got something to exec.
            if ( args == null || args.length < 1 ) {
                System.out.println("Usage: java Exec COMMAND [ARGS...]");
                System.exit(1);
            // Run the process and print the output.
            Process p = Runtime.getRuntime().exec(args);
            BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String line;
            while ( (line=in.readLine()) != null ) {
                System.out.println("EXEC: "+line);
    }Hope this helps!
    -mike

  • Firefox regularly hangs after an unspecified period of use, and causes other programs to hang, and a forced system shutdown is necessary.

    The firefox browser hangs after an unspecified period of time. Anything from a few minutes after system startup, up to 5-6 hours of use or perhaps more. Attempting to use other programs including windows explorer while firefox is hanging causes those programs to hang also, making a forced shutdown necessary. Occaisionally I've noticed firefox will respond, perhaps after 10 or more minutes. There seems to be no hard disk activity while the program hangs. Memory usage of firefox on my system is usually upwards of 190,000.

    I have circumvented this mostly by running internet explorer, and using Firefox only for browsing when I need to make use of it's addons. In this way I've had the problem re-occur maybe once or twice in the past two weeks. It's not really a solution but it does seem to help, and I'm no longer sure the problem IS firefox but using it certainly exacerbates the problem.
    I've only just updated to firefox 6, so I am not entirely sure how that will go just yet.

  • Labview Program will hang between 33% and 50% of the time.

    I have a problem with a Labview program I made. I have two programs that do the same thing. One is in flat sequence form and the other is in state machine form.
    As explained in the link below, I would like to make use of a microcontroller to make wiring connections for automating a measurement process. A separate current source and volt meter will be used.
    https://forums.ni.com/t5/LabVIEW/Sequence-a-good-idea/td-p/2601333
    I have since made some simple test programs which I have attached. The problem is when executing, the labview program will hang, but not every time the program is execute.
    For example: Hall 1.2.vi will work properly twice with the third time it is executed it will hang. If you abort and try again, it will again run twice with no problems with the third hanging. This one is in flat sequence format (was in a flat sequence, but merged the windows because I thought that was the cause). From what I can tell, the program will hang when calling Keithley 6517 Single Read.vi. Both connected Keithley devices are connected to the computer via GPIB at 16 and 27. The way I verified if it was this vi causing it or contributing to it was that I removed it and the program never hung. I find it very strange that it will hang exactly on the third attempt every time.
    Hall 1.3 simple.vi will work the first time and hang the second time. So it works 50% of the time. This one is in State Machine format. This one will hang at the case titled "Measure 1" which contains the Keithley 6517 Single Read.vi.
    I've used the highlight execution button and watched the program run. Oddly, it doesn't hang when using this button. So I tried adding delays/wait in different places to no avail.
    What could be causing this? As a side note, I say the program hangs for two reason. The main one is the program doesn't finish running so the run arrow is still black. The second thing is that if you notice at the end of the labview program, I have a block there that turns the current source off which doesn't happen when it hangs. I have to manually turn it off and then hit the abort program button to stop labview.
    Solved!
    Go to Solution.
    Attachments:
    Hall 1.2.vi ‏42 KB
    Hall 1.3 simple.vi ‏81 KB

    altenbach wrote:
    SaintsFan wrote:
    Also, I've tried placing wait/delays at various places with no improvement of the problem. My next thought is to just remove all the vi calls and have everything in one program.
    How did you place the waits?
    Why would placing everything in one program fix the problem. That makes no sense! What is your reasoning?
    In the case of hall1.3, I placed a wait in the Measurement cases and CS On cases and there was no affect. In the hall 1.2 when the blocks were broken up similar to the state machine cases where each sequence window was identical to the cases, I placed a wait or delay in each window with no effect on the hanging.
    My reasoning for placing everything in one program is the same as my reasoning for figuring delays would help, since the time of execution would be altered. If the execution time is faster and if the timing is the problem then I figured that the problem would happen more frequently or even every time.
    Somehow I get the feeling this is not the case. The reason being the interval in which it succeeds or hangs is constant. I believe somewhere, a value is getting set. The 6517 Read vi runs fine if I run this vi by itself no matter how many or how fast I run it. Also, the same goes for both 1.2 and 1.3 if I remove the 6517 read vi they run fine no matter how fast or how many times I run them. 
    Somehow after the current source is set to operate and triggers labview will hang on a set interval when calling 6517 read vi.
    Separately they work, together there is a problem. I tried placing a delay between these two by connecting the error out of the trigger vi to the error in of the delay block and the error out of the delay block to the error in terminal of the 6517 config block. I've also tried delays between other blocks connected the same way. From what I understand, a called vi can't execute until all inputs are present. Is this the correct way to wire the delays?

  • I have tried to transfer Mail from iMac to Macbook pro. It isn´t functioning, the program always hang up.

    I have tried to transfer Mail from iMac to Macbook pro. It isn´t functioning, the program always hang up. Mac OS 10.9.4.

    Tried how? Using what? Step-by-step details and the results you get along way should elicit a cogent response.
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • Sir when i am using print my program get hanged

    when i oppen tally or any other program my program gets hanged and i cant use my print options

    Answer the call using the bluetooth device instead of swiping to answer on the phone. If you swipe to answer on the phone, it assumes you intend to use the phone instead of the bluetooth headset.

  • When the new version will correct the error 10.0.0? program constantly hangs. will not start!

    when the new version will correct the error 10.0.0? program constantly hangs. will not start!

    Are you using any VST plug-ins or audio units? Then check, if they are still compatible. You may need to uninstall them.
    See this support document: 
    Unexpected behavior with Audio Unit plug-ins http://support.apple.com/kb/TS5249

  • Safari causing full-system hang

    For a while now I've been getting the SBOD irregularly in Safari, since 3.x if I remember right. I've got some time off work at the minute so I'm finally looking into this properly, and here's what I've found:
    There seems to be two separate conditions. The first happens on loading some, but not all web pages, causes a lengthy hang in which the entire system (even invoking Dashboard or Spaces) becomes unresponsive. In the console this accompanied by an entry similar to the following:
    05/10/2010 08:15:47 /Applications/Safari.app/Contents/MacOS/Safari[242] ATS AutoActivation: Query timed out. (elapsed 5.0 seconds. params: queryString = {comapple_ats_namepostscript == "Helvetica-Neue" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font}, valueListAttrs = {<CFArray 0x6f5710 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa01602c8 [0xa008dee0]>{contents = "kMDItemContentType"}
    )}}, sortingAttrs = {<CFArray 0x6f5730 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa01603a8 [0xa008dee0]>{contents = "kMDItemContentModificationDate"}
    )}}, scopeList = {<CFArray 0x6f5750 [0xa008dee0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa0161a98 [0xa008dee0]>{contents = "kMDQueryScopeComputer"}
    (sometimes it names a font, sometimes the font name is "_")
    I suspect this means some vestigial adobe product has messed my system right up. I used to use CS4 but have long since removed it. I also have Air and Flash (the current gala beta) installed. I have had fontbook validate Helvetica Neue and check all fonts for duplicates - if external disks are plugged in at this time they all spin up.
    The other case is when downloading a file through clicking a link or alt-clicking a link (right-clicking a picture and saving it to the downloads folder does not cause this behaviour), and is accompanied by this much sparser line in the console:
    05/10/2010 08:25:06 kernel disk0s2: I/O error.
    The files themselves can be opened, moved and copied without incident and at regular speeds, so I doubt disk corruption. I've also performed a few full clone/restores on my boot disk with no effect. My initial thoughts were to blame a long-forgotten folder action that sorted downloads into different places (including a network share, if present), but disabling folder actions has not helped.
    So, any ideas? I'm fresh out.

    A workaround for the font-problem seems to be to turn off ATS - it's in FontBook.
    The second issue still eludes me.
    Things I have tried:
    Trashing ~/Library/Safari/
    Trashing ~/Library/Preferences/com.apple.Safari*
    Cleaning out every vestigial trace of anything suspect I had on my system (google keystone, logitech control centre, SIMBL, The Spark, iStat Menus, folder actions)
    Interestingly, the issue is not present for the guest user, so it IS something wrong with my user account. I just can't figure out what.
    Yes, making a brand new account would fix all this, providing I'm meticulous about testing the issue as I move /Users/Old/ into /Users/New/, but I'm kind of loathe to give up. It's surely something really simple!

  • Sharpener Pro 3 has problems in Aperture as the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Have removed all duplicate fonts and tried using a new user account. Any ideas?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

  • Non-Apple browsers cause cascading system hang with clean install of Lion

    It started with Google Chrome.  After a few hours of use, Chrome would randomly lock up one renderer at a time until it was completely unresponsive.  Console showed nothing conclusive in the logs, and would soon lock up itself.  Logged-in Terminal windows could sometimes get as far as a "ps auxc", but would lock up during the command output, and new Terminal windows or tabs would never get past login.  The SSH daemon would be dead in the water, preventing me from logging in remotely.  Any existing SSH connections would hang on the first command.  Activity Monitor would lock up the moment I tried to sample a process or interact with anything.  Interacting with SystemUIServer (pulling down the menu for the clock or trying to do a Spotlight search) would cause SystemUIServer to hang.  Same with the Dock.  My mouse was like the Midas of software failure: everything I touched turned to hang.  Eventually I'd be staring at a spinning beachball.  After a few (five to ten) minutes, it might perform a couple queued events (opening a window, switching to another application) but would usually become wedged again immediately, forcing me to hard restart.
    I then tried installing Firefox 5, and discovered that it causes the hang fairly reliably within the first ten seconds.  Since I knew when it was about to happen, I managed to capture a few stack traces in Activity Monitor, but it was always different, and always somewhere in the kernel (usually file-system related: __getattrlist while scanning fonts one time, the open system call another).
    Safari, on the other hand, works great.
    I've tried performing a verification of my startup disk, which returns no errors, so although I'm not ruling out hardware failure at this point the problem started immediately after I upgraded to Lion, and persisted even after I wiped my hard drive completely and performed a clean install from the recovery partition.  It also doesn't seem to be completely the fault of either Chrome or Firefox, since they're different browsers with different rendering engines using different system frameworks.  They do both perform a lot of file I/O, so maybe that's a clue.  Another possible lead is the seemingly random errors Console will spew out while the hang is occuring.  Most recently I've gotten a screenful of '--ImageKit Error: updateGLTextureWithBitmapData: glPixelStorei returned an error : 506 ...', and before that it was 'Google Chrome Helper: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)', "kernel: IOSurface: buffer allocation size is zero".  Console spew being what it is, though, I don't know if any of that is relevant.
    I figure I would be seeing quite a lot of angry forum threads if Chrome and Firefox were completely unusable on other people's machines, so I'm guessing there's something specific to my configuration happening here.  With a clean install, though, I'm not sure what it could be.  Here are detailed system specs:
    24" iMac (Early 2008 -- just out of AppleCare coverage, figures) , 2.8 GHz, 2GB RAM, running Lion build 11A511 (which should be the 10.7 release version).
    I would be massively indebted to anyone who has experienced or heard about this issue before and can give me something else to try.

    Zeroing the disk serves no purpose in this situation.  It is a common misconception that this is required to map out bad blocks on the drive, but the fact is that 1) modern hard drives map out bad blocks as part of everyday operation, and 2) zeroing the drive involves simply writing zeros with no checks to see if the zero was written successfully, so it wouldn't know if a block was bad anyway.
    It's possible the drive is starting to go bad, although then there should be some problems with SL as well.  I would recommend repartitioning the drive with Disk Utility.  Make sure it's got one partition, using the GUID partition map scheme, and format that partition as Mac OS Extended (Journaled).  Repartitioning should get rid of any gremlins lurking on the disk, unless the physical disk itself is dying.  And after repartitioning, install straight from the flash drive, as Shootist recommends, rather than installing SL first.
    Hardware could be an issue.  It's entirely possible for an older system to work fine on slightly faulty hardware while a newer system does not.  Running Apple Hardware Test wouldn't be a bad idea.
    Firmware updates wouldn't be a bad idea.  However, note that my mid-2010 MBP with the same specs is running Lion just fine, and I've never installed any firmware updates.  (Firmware updates scare me...  if my machine is running just fine, I'm reluctant to risk installing new firmware.  But that's probably just a bit of paranoia talking.  )

  • On my PC, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6GB) requiring a cold boot. What could be causing this?

    On my PC running windows XP Service Pack 3, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6 GB) requiring a cold boot. What could be causing this? Corrupted .MOV? Too little RAM? It successfully plays a 162 MB .MOV.

    Hello David,
    Thank you for providing all that information about the iTunes issue you are experiencing.  We would first want to rule out any software issues before we can determine if it has to do with RAM.  I found an article that will help you isolate and troubleshoot software issues that could be causing iTunes to behave this way:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    I hope this helps you get back on track with watching movies in iTunes! 
    Best,
    Sheila M.

  • Reloading Plug-In Page causes browser to hang during stress test on IE & NS

    When an applet page is in the process of being loaded using the Java Plug-In and a second request is made to reload that applet or a new applet several times in succession, the browser hangs. Is there a work around for the Java Plug-In version 1.3.1.

    Hi,
    You can see fixed bugs in 1.3.1_01 version at
    http://java.sun.com/j2se/1.3.1/ReleaseNotes.html
    This is one of them:
    http://developer.java.sun.com/developer/bugParade/bugs/4477187.html
    Description: Loading applets, using IExplorer 5.0/5.5, sometimes caused a system hang.
    Hopefully this bug fix relates to your problem.

  • Loading my VI in LabVIEW 8.2.1 causes LabVIEW to hang.

    Loading my VI in LabVIEW 8.2.1 causes LabVIEW to hang.  I have an older version that sometimes loads, but it causes LabVIEW to hang many of the times as well. I think the older version of my VI only hangs when you try to scroll around by clicking in the scroll bar area instead of clicking the scroll arrow.  I am not getting any error messages.  I have to close LabVIEW using the task manager.  I've tried this on multiple computers with the exact same results.  The VI has sensitive information, so I would rather not post the VI publicly.  If you have the capability of debugging a hung LabVIEW .VI, then please send me your email information.
    Thanks,
    Matt

    Hi Matt,
    nice to hear that trick helped. Usually LV informs you about any "insane objects" before saving, in this case you should perform this procedure immediatly... When the vi "kills" LV while loading it's too late.
    To rate messages you should click on those "kudos" buttons right to the message. Once should be fine, but it's Christmas time and nice to give away presents Maybe you're too new to the forum and this option isn't enabled yet?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Kodo extension under JBuilder7 causes it to hang

    Hi,
    I'm using JBuilder7 with Kodo 2.3.2 and it seems like the IDE freezes or
    hangs when I'm
    compiling code.
    If I run JBuilder with the -verbose enabled I see the following:
    Tue Oct 08 14:12:53 EDT 2002: + JDOEnhancerTask.build
    (jdoFileUrl=file:///D%|/J
    DOTestProjects/JDOPrototypeTest/src/com/siemens/financial/jdoprototype/bos/P
    ersn
    ame.jdo,buildProcess=com.borland.primetime.build.BuildProcess@64aafa
    Exception occurred during event dispatching:
    Does anyone know what could be causing this?
    Thanks in advance.

    Based on the information you posted, there are two possible causes for
    this problem: either one of the methods in our enhancer task is causing
    the hang (seems unlikely given the undeterministic nature of the problem),
    or we are throwing a RuntimeException out of the OpenTools build()
    method, which is in turn somehow causing JBuilder to hang.
    In Kodo JDO 2.3.3 and prior, there were three lines after the one that
    caused the printout you reported and before a try-catch block that catches
    all exceptions and does some reporting. 2.3.4 includes these three lines
    in the try-catch block.
    So, my anticipation is that the hang will go away, replaced with a build
    error triggered by the unexpected exception.
    It is also possible that the hang is occurring in our code, in which case
    you'll continue to see the hang. Hopefully that's not the case. If it is,
    please try to give us a reproducible test case (we have yet to see this
    problem internally).
    -Patrick
    In article <anv84m$na$[email protected]>, TJanusz wrote:
    Hi,
    I'm using JBuilder7 with Kodo 2.3.2 and it seems like the IDE freezes or
    hangs when I'm
    compiling code.
    If I run JBuilder with the -verbose enabled I see the following:
    Tue Oct 08 14:12:53 EDT 2002: + JDOEnhancerTask.build
    (jdoFileUrl=file:///D%|/J
    DOTestProjects/JDOPrototypeTest/src/com/siemens/financial/jdoprototype/bos/P
    ersn
    ame.jdo,buildProcess=com.borland.primetime.build.BuildProcess@64aafa
    Exception occurred during event dispatching:
    Does anyone know what could be causing this?
    Thanks in advance.
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Sites using flash/shockwave cause Firefox to hang.

    If the shockwave flash plugin is enabled on version >22, visiting a site that contains flash content will cause Firefox to hang/react extremely slowly. I've tried disabling all add-ons with no effect.
    I'm using shockwave flash 11.2.r202.310 but it doesn't seem to matter when version of flash I use.

    Thanks for the replies guys.
    ComputerWhiz: No firewall or AV installed on my laptop.
    cor-el: Nothing works. It is the shockwave flash plugin + >=v23 that is the problem. I've tried safemode, I've completely deleted everything eg moving the .mozilla directory and started a virgin firefox with the same results.

  • Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings!

    Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app.  You could see the website in the backround working but safari crashes after clicking on the error window.   Any suggestions?

    Turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.

Maybe you are looking for

  • How to make use of the swf made by alchemy?

    Most of the examples are about compiling C/C++ to swc, then make use of it. As the alchemy introduction said, we can also compile into swf file. so i tried it. But i cann't get the CLibInit class. How to make it successful? The codes is below:     pr

  • Creating SOAPElement from String

    Hi! I'm working with generic web services, i have a String representing an XML document, and i need to create a SOAPElement with that information; i have seen another forums but i haven't found the solution to my problem I need to return a SOAPElemen

  • Plc data logging using Labview

    I am trying to communicate with PACSystem RX3i using Labview in order to log data from PLC. Is this possible? If it is possible, how could I implement it?

  • How to install imac in dell inspiron n5040

    how to install imac in dell inspiron n5040?

  • Cannot open .jpeg files in emails on 4s

    When I receive an email with a jpeg attachment I cannot open it