Aplay infinite loop [SOLVED]

I'm installing alsa on my HP Pavillion with an Intel HD Audio Controller. I installed alsa-utils and alsa-lib, blacklisted the snd_pcsp module in rc.conf, and unmuted all audio channels with alsamixer. When I ran aplay on /usr/share/sounds/alsa/Front_Center.wav, it prints "Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, rate 48000 Hz, Mono" and then proceeds to do nothing. No sound comes out, and the program never exits. I have to CTRL C to get out of it.
Last edited by Plutonian (2008-12-28 00:08:02)

I just ran alsaconf. Now there's sound, but it still loops infinitely. I hear something which sounds like "Fr Fr Fr Fr Fr Fr Fr Fr Fr Fr" but it never gets to "ont Center"
Edit - This problem was solved with the help of jifli from the irc channel by adding options snd-hda-intel enable_msi=1 to /etc/modprobe.d/sound
Last edited by Plutonian (2008-12-28 00:07:48)

Similar Messages

  • Infinite loop solved

    solved my problem with fx card, it was the psu. unpluging 3 fans and the cd drive was all it took to get the machine stable. so a new psu on the way.
    thanks for your help.

    I just ran alsaconf. Now there's sound, but it still loops infinitely. I hear something which sounds like "Fr Fr Fr Fr Fr Fr Fr Fr Fr Fr" but it never gets to "ont Center"
    Edit - This problem was solved with the help of jifli from the irc channel by adding options snd-hda-intel enable_msi=1 to /etc/modprobe.d/sound
    Last edited by Plutonian (2008-12-28 00:07:48)

  • Infinite loop problem

    Hi there,
    This is the second time I have posted this problem, as the last solution I was offered did not seem to work. Here is the problem:
    I have written a method to search through a text file for a word and replace it with another word. That word can either be on its own in the document or as part of another word. So, if the search word was "foot" and the replace word was "dog", the word "football" in the document would become "dogball".
    This method works fine, except for when the replace word is the same as the search word. Basically, if someone searched for "dog" and wanted to replace it with "dog dog" or even just "dog", the program goes into an infinite loop. I understand why it is doing this, but I don't know how to prevent it from happening.
    Now, to make it worse I have to stick to this array style structure and method of solving the problem. I know there is a way to do this by building temporary strings and then concatenating them at the end and returning them to their previous position in the array. The reason I know this is because a friend of mine has managed it. She also happens to be a girl.
    So, I am asking you all to assist in defending men's intelligence by helping me see where I am going wrong in this method. Please.
    Here is the method:
    // Search the document for a string and replace it with another string        
         public String [] SearchReplace() {
              // Declare variables to be used in the method
              String SecondSubstring;
              String FirstSubstring;
              int ReplaceNumber = 0;
              // Loop through the lines of text stored as strings contained in the array
              for (int i = 0; i < NumberOfLines; i++) {
                        // As long as the string contains an instance of the search string, run the method                    
                        while (StrArray.indexOf(SearchW) >= 0) {
                             // Make a string of all the characters after the search word
                             SecondSubstring = StrArray[i].substring(StrArray[i].indexOf(SearchW) + SearchW.length());
                             // Make a string of all the characters before the search word
                             FirstSubstring = StrArray[i].substring(0, StrArray[i].indexOf(SearchW));
                             // Concatenate FirstSubstring with the replace word to make a new string
                             String FirstHalf = FirstSubstring.concat(ReplaceW);
                             // Concatenate the new string with SecondSubstring to make the whole replaced string
                             String FullString = FirstHalf.concat(SecondSubstring);
                             // Put this altered string back to its original place in the array
                             StrArray[i] = FullString;
                             // Increment ReplaceNumber to count the replacements made
                             ReplaceNumber++;
              // Print the numbers of replacements made
              System.out.println("\nA total of " + ReplaceNumber + " changes made.\n");
              // Display the searched and replaced contents of the file
              return StrArray;
    Any suggestions, pointers or solutions would be much appreciated.
    Thanks very much.

    Doing it the "old fashioned" way:
    You need to keep track of a "from index" so you don't search through parts of the string you've already replaced:
           public static void main(String args[]) {          
              try {     
                   String[] lines = new String[] {
                        "the dog went up the dog hill",
                        "all dogs go to dog heaven",
                        "the dogball takes place on 3rd april"
                   lines = replace(lines, "dog", "dog dog");
                   for (int i = 0; i < lines.length; i++) {
                        System.out.println(lines);
              } catch (Exception e) {
                   e.printStackTrace();
         private static String[] replace(String[] lines, String searchWord, String replaceWord) {
              if (searchWord.equals(replaceWord)) return lines; // nothing to do          
              for (int i = 0; i < lines.length; i++) {
                   int fromIndex = 0; // from index to do indexOf
                   String line = lines[i];
                   while (line.indexOf(searchWord, fromIndex) != -1) {
                        final int index = line.indexOf(searchWord, fromIndex);
                        line = line.substring(0, index) + replaceWord + line.substring(index + searchWord.length());
                        fromIndex = (line.substring(0, index) + replaceWord).length();
                   lines[i] = line; // replace
              return lines;

  • PL/SQL Function in an infinite Loop, how to destroy?

    Hi,
    My Apex is using a PL/SQL function and there is an infinite loop. How can I stop it so I can recompile the PL/SQL again? Thanks.

    the less obvious is whos session exactly.
    I had the same problem - wrong thinking, wrong loop , visible effects of infinitive loop (statistics of the db) . I was trying to kill sessions of the : user , who owns DAD and a user in who's schema runs nasty plsql code - without efect. Kill was confirmed but there was no change. I was made to reboot my server. Probably there is more efective way to do solve this (in my case - I have solved loop-problem after reebot).
    Would it be better to kill apache session under OS ? (restart it)
    Restart oracle's listner under OS ?
    Some ideas ?

  • In infinite loop with "support" trying to fix forg...

    First, I searched for an issue like mine and posted in it's thread hoping that we could both get help but their solution is part of our problem so here is a new thread.
    My wife needs help on recovering her Skype email and or password and, of course, she has no access to login so I am here on her behalf (she is sitting next to me). The provided solution does NOT work as it puts her into an infinite loop of "Thank you for contacting Skype Customer Service." messages telling her to go and fill out a form ( https://support.microsoft.com/skype/hostpage.aspx?language=en&locale=en-us&oaspworkflow=start_1.0.0.... ) with the exact same info we have entered 4 times so far! PLEASE tell us how to get to REAL help with her issue. SR 1285591565, SR 1285671840, SR 1285702596, SR 1285752888 are the Support Reference numbers we have so far.
    Speedy
    AKA: Hero Hog, Dr. Speed, "The Brass Mangler" and "That fat, old, balding, Grey-bearded gimpy guy"
    Solved!
    Go to Solution.

    I FINALY got an intelligent response to my wife's issue, they claim they don't have enough info to verify her as the owner even though they accept our monthly payment for over a year now and I included more than enough info to link the account to us. Did I provode 5 friend's addresses? No, because she didn't HAVE THAT MANY! Did we provide 2 numbers she called? NO, because SHE HASN'T CALLED ANY! Did we include the date she signed up? No, because it was well over a year or two ago and we have no idea when it was! We included the EXACT amount we last paid, the date it was paid, one contact (out of the 2 MAYBE 3 she had) and could have easily answered other questions NOT ASKED had we been able to comunicate with a human instead of dealing with canned responces!
    %^&* YOU SKYPE! Your "support" is a JOKE!
    Speedy
    AKA: Hero Hog, Dr. Speed, "The Brass Mangler" and "That fat, old, balding, Grey-bearded gimpy guy"

  • Paint() method is in infinite loop when focus is set to JTextPane

    Hi All,
    I am creating one JScrollPane, JPanel and JTextPane. JPanel is added to JScrollPane and JTextPane is added to JPanel. If I override paint() method in JPanel, its in infinite loop. I don't know why it is behaving like this. Can anyone solve my problem. Since, I am doing so much drawings in paint() method, its getting to slow.
    Here is the code what I wrote.
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestTextPane1 extends JFrame {
         JPanel panel;
         JScrollPane pane;
         public TestTextPane1() {
              panel = new JPanel(new BorderLayout()) {
                   public void paint(Graphics g) {
                        super.paint(g);
                        System.out.println("inside paint");
              JTextPane textPane = new JTextPane();
              panel.add(textPane);
              pane = new JScrollPane(panel);
              getContentPane().add(pane);
              setSize(300, 200);
              setVisible(true);
         public static void main(String [] args) {
              new TestTextPane1();
    Any help will be useful for me.
    Regards
    Kishore.

    What are you trying to do? You are adding the textPane to the panel and then overriding the paint() method. The textPane will never be painted if you do this.
    In Swing, you should override the paintComponent() method, not the paint() method. See the Swing tutorial on Painting:
    http://java.sun.com/docs/books/tutorial/uiswing/overview/draw.html
    Don't forget to read the "Working With Graphics" link at the bottom.

  • Notebook caught in infinite loop, then gives a Hard Drive Short DST check error in Bios

    My laptop shut off unexpectedly last week. It got caught in an infinite loop when trying to restart. I was able to access bios and run a system check. I received Failure ID Q0821A-7017lt-xd7wwk-60xx03. I cannot get the computer to start. Please advise.

    1. This is a hardware issue and the Hard Drive is faulty
    2. You cannot recover this failure ID unless you replace the Hard drive
    Detailed Explanation:
    Whenever you get a message stating that the Short DST Check error with 24 Digit Failure ID "Q0821A-7017LT-XD7WWK-60XX03" that indicates that the Hard Disk Drive requires a replacement to resolve the issue
    Could be due to Application or driver conflicts, virus issues, file corruptions due to incompatible applications, improper shutdowns, update failures due to conflicts, sudden power surges, if notebook is dropped etc..
    HP will provide a replacement Hard Disk Drive if the Notebook warranty is Active, If not you need buy a SATA Hard Disk Drive from a retail shop nearby
    Please make sure you are getting at least equal capacity as the original one in order to use Recovery Disks. If you need you can buy a larger, but not smaller capacity Hard Disk Drive. For example if you have a 500GB Hard Disk Drive you can upgrade it to 750GB Hard Disk Drive but not 320GB Hard Disk Drive
    Please try the below shown troubleshooting steps once:
    Step 01. Remove the battery and unplug the AC/Power Adapter
    Step 02. Press and hold the Power button for more than 30 Seconds
    Step 03. Plug in the AC/Power Adapter (leave the Battery out for now)
    Step 04. Press the Power button and check if the Unit works normal
    If the above mentioned steps does not help, then you can try reseating the Hard Drive on your Notebook
    If the issue persists again please Contact HP if your HP Notebook is under warranty, HP would replace the Hard Disk Drive and provide you a Recovery media to restore factory operating system after replacement (if you've not yet created Recovery Discs/USB Media)
    Note: Back up all the personal data to an external drive if it's possible. Otherwise you could connect the failed HDD via SATA to USB adapter with another PC or same PC after replacement of HDD & re-installation of OS and try copying /recovering the files.
    Please click on the link In order to Identify, Prevent, Diagnose & Recover from Drive Failures on HP Notebook Hard Drives & Solid State Drives :
    http://h10032.www1.hp.com/ctg/Manual/c02876562.pdf
    Please check your notebook warranty to verify the status and order a new Hard Disk Drive
    Hope this helps, for any further queries reply to the post and feel free to join us again
    **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • How to find infinite loop?

    Dear Oracle Gurus,
    I have one (some?) problem and no idea what to do.
    Our platform is IBM xSeries 234, RHEL3, 10g (version ...0.2). Database has only Oracle Application Repository shemas.
    Here is output from OS:
    #ps aux
    ... oracleandja (LOCAL=NO) -More then 200 lines
    ... /d2/oradb/andja/bin/emagent
    ... oracleandja (LOCAL=NO)
    ... ora_pmon_andja
    ... ora_mman_andja
    ... ora_dbw0_andja
    ... ora_lgwr_andja
    ... ora_ckpt_andja
    ... ora_smon_andja
    ... ora_reco_andja
    ... ora_cjq0_andja
    ... ora_d000_andja
    ... ora_s000_andja
    ... ora_qmnc_andja
    ... ora_mmnl_andja
    #top
    216 processes: 214 sleeping, 2 running, 0 zombie, 0 stopped
    1st CPU: 100%
    2nd CPU: 25%
    When I try to shutdown DB from SQL+, I got this:
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-00020: maximum number of processes (%s) exceeded
    The most interesting error has written in .trc file:
    ORA-00600: internal error code, arguments: [kksfbc-reparse-infinite-loop], [], [], [], [], [], [], []
    Can you give me some advice how to find this infinite loop? And how to deal with this?
    Is there anything that I can do to solve this without reinstalling whole DB and AS?
    Regards

    If you cannot shut Oracle down using a shutdown immediate then you will need to get a new /nolog session and issue a "shutdown abort".
    From the error messages you listed it would appear you ran intot your maximum number of proceess limit and you will need to fix that.
    However the bug report for bug 3411348.8 makes it appear you would only get this error when performing DDL like alter table .. upgrade, ?
    What exactly was being done on your system when the problem started?
    HTH -- Mark D Powell --

  • LDAP/Authentication infinite loop

    My authentication provider uses an LDAP call to retrieve a data source via JNDI.
    The LDAP call apparently triggers a security check/login which then calls my
    getLoginModuleConfiguration() which again attempts to retrieve the data source.
    Infinite loop.
    How do I stop this from happening?
    If the code that is executing is part of the security framework and is in an obviously
    thread with access, why is this login occurring and how can we stop it?
    Thank you.
    Frederick N. Brier

    I found this article in spanish ( fortunately I speak and write it), where saids how I can solve this problem.
    [http://oracleradio.blogspot.com/2011/09/solucionando-el-ciclo-infinito-en.html]
    The problem was the :
    <app-role>
    <name>anonymous-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class> // this Class was the problem<display-name>anonymous-role</display-name>
    </app-role>You need reemplace that Class for : *"oracle.security.jps.service.policystore.ApplicationRole"*
    like this :
    <app-role>
    <name>anonymous-role</name>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class><display-name>anonymous-role</display-name>
    </app-role>And the Anonymous and all the Roles will work Fine !!

  • Infinite loop authentication in JDeveloper 11.1.1.5

    Hi to everyone, I have a problem in the security of my adf application.
    When I apply the security to the whole application, and want to show to all users the loggin page, the page does not charge, appears a infinite loop authentication.
    my page is :
    index.jspx => granted to : anonymous-role, test-all // To see all the users.I m working with page templates and data controlls for show the user's information in the index.jspx page.
    Working in : JDeveloper 11.1.1.5
    Thanks.

    I found this article in spanish ( fortunately I speak and write it), where saids how I can solve this problem.
    [http://oracleradio.blogspot.com/2011/09/solucionando-el-ciclo-infinito-en.html]
    The problem was the :
    <app-role>
    <name>anonymous-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class> // this Class was the problem<display-name>anonymous-role</display-name>
    </app-role>You need reemplace that Class for : *"oracle.security.jps.service.policystore.ApplicationRole"*
    like this :
    <app-role>
    <name>anonymous-role</name>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class><display-name>anonymous-role</display-name>
    </app-role>And the Anonymous and all the Roles will work Fine !!

  • Bluescreen - Caught in an infinite loop

    Hello,
    I have a strange Problem with my System. Everytime I use a 2D/3D progam it freeze after about 30 minutes.
    But the strangest thing is, new games like Quake4 , F.E.A.R and Oblivion do not freeze.
    I tried everything that I know.
    - Ran Memtest86+ like 8h, no errors
    - Ran Prime95, no erros
    - Checked System Temprature
    - Tried Omega and DNA driver
    - BIOS update
    - Disabled Write Combing, found it on Microsoft Support Page
    - Put the Graphiccard in another computer, it works perfect
    - Reinstalled Windows, same error
    - Put out Creative X-Fi
    Thank you for Reading.
    I hope you can help me.
    Jack

    Hello and thank you for your fast reply
    Quote
    It sounds like either a problem with the program itself or a problem with your OS
    Yes it is a problem with Windows Xp, but I dont want to use Win2000 or any older version. https://support.ati.com
    (Submit a ticket->Solve a Problem->My Answer is not here->Type infinite loop->"DEVICE DRIVER is STUCK IN INFINITE LOOP")
    Quote
    I would recommend checking to see if the program has an patches, and if not, then try a fresh install of the program
    Well the problem is not only by games, the problem occurs by every simple 2D/3D application, so a patch wont help.
    Quote
    If that does not work, then it might be time for a fresh install of your OS
    I have done that last week, but the Bluescreen occur as soon as I install any Graphic Driver.
    Quote
    I would also recommend using the latest nVidia nForce Drivers & ATi Catalyst Drivers
    I already have the last version of the Nforce Driver and I tried the newest ATi Catalyst Driver as well.
    I am happy for every further suggestion.
    Jack

  • Infinite loop in internet explorer after setting a doctype

    Hy,
    I have a problem with doctype, the internet explorer 6 - 8,  iframes and javascript. If I set the doctype to transitinal loose.dtd some of the Web Dynpro Applicatons which where included to my HTML page in form of iframes, produce javascript errors (looks like an infinite loop) so that every tested internet explorer crashes.
    Firefox has no problems and IE has no problems if:
    - I doesn't set any doctype (quirks mode)
    - or set a docype and open my iViews in a seperate Window
    I have no idea to solve this problem. I have to set a doctype. The cause of the problem lies in include iframes in the page and in the exclusive IE javascript file: sapUrMapi_ie6.js, where in the codelines 2643 - 2646 is an infinite loop because of some errors.
    What are the reasons for this javascript errors? How can I solve my problems?
    Thank you for every tip. Buy

    Hi Saeed.
    Thanks for your reply. As it turns out, the problem was how I was accessing the server, which was blocking display of some windows. I was using an IP address and once I used the name of the server instead, the access became a more approved level and I could access all the windows. Just FYI in case anyone else runs into this!
    Thanks!

  • How do I stop an infinite loop because of a poorly placed user prompt during developmen​t without closing LabView?

    How do I stop an infinite loop because of a poorly placed user prompt during development without closing LabView?
    Thank you!
    Solved!
    Go to Solution.

    chuck72352 wrote:
    Here is an example of a VI that I can't stop.
    Epic Fail
    but seriously, as was suggested, download Darren's Abort.vi. It comes in very handy for these.
    Message Edited by Broken Arrow on 05-03-2010 01:06 PM
    Richard

  • Infinite Loop issue in Encore CS5.1

    I have never been as angry at a piece of software as I am with Adobe Encore. I have been crashing it for almost a week now and I still am no closer to figureing out the problem...
    I have a 90 minute feature in Pr that I exported as an SD 16:9 (progressive frames) set of m2vs.  I also exported a single AC3 audio file using Surcode.  The moment I import any of the video the software becomes unstable.  My current methodology involves setting up the entire menu system (one SD main menu and 3 chapter sub menus), then import the AC3 as a timeline, then finally importing the M2Vs, one at a time saving after every successful import.  No dynamic links or anything unusual.
    Even though it is a 4GB SD feature the Encore process is using almost 2GB of memory when it seems to be working right.  Whenever I try to perform any task I get the (Not Responding) notice and I have to look at the process list.  If the CPU is fluctuating I have a good chance that control will return, if it locks in at 8% then it is stuck in some kind of infinite loop and will never come back.  At that point I kill off the program and try to see if the last saved session will load.  While in the infinite loop the memory will count up to about 3GB thae get knocked down to about 1GB, then start counting back up again.
    I have successfully completed the CD creation process once or twice, but it can take mnore than a day to complete what should take 20 minutes.
    I have deleted the Media Cache DB, moved the Media Cache DB, re-installed the software, and searched the net for a solution.  Nada...
    I am doing this work on my editor:
    OS Name Microsoft Windows 7 Ultimate
    Version 6.1.7601 Service Pack 1 Build 7601
    Other OS Description  Not Available
    OS Manufacturer Microsoft Corporation
    System Name EDITORPC
    System Manufacturer System manufacturer
    System Model System Product Name
    System Type x64-based PC
    Processor Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz, 3750 Mhz, 6 Core(s), 12 Logical Processor(s)
    BIOS Version/Date American Megatrends Inc. 1001, 12/24/2010
    SMBIOS Version 2.5
    Windows Directory C:\Windows
    System Directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume5
    Locale United States
    Hardware Abstraction Layer Version = "6.1.7601.17514"
    User Name EditorPC\bgruen
    Time Zone Eastern Daylight Time
    Installed Physical Memory (RAM) 24.0 GB
    Total Physical Memory 24.0 GB
    Available Physical Memory 20.1 GB
    Total Virtual Memory 48.0 GB
    Available Virtual Memory 44.0 GB
    Page File Space 24.0 GB
    Page File C:\pagefile.sys
    Any suggestions?
           Bob

    I'm don't think that is the "same problem," unless you are mixing one ac3 with multiple m2vs on the same timeline. (If the following doesn't solve your issue, start a new thread.)
    In any event, the following may not be directly applicable to your OS or situation, but includes global issues and specifics. Look in particular at numbers 1 and 4.
    Troubleshoot system errors and freezes | Adobe software on Mac OS 10.x
    http://kb2.adobe.com/cps/824/cpsid_82414.html
    Edit: Reading my mind? I'll add this to your new thread!

  • Interupt an infinite loop

    Hi all
    I was wondering if anyone could offer some help on a problem of mine
    I have a GUI with a button (labeled start), when its clicked it starts an infinite loop that is stopped by the same button (obviously after the first click the text changes to stop) . The problem i`m trying to solve is that once the loop is started the GUI`s action listener wont be able to listen for the second click(cause the listener is still waiting for the loop to stop)
    Can anyone think of a work around for this problem
    oh and the loop cannot be interrupted other than the 'click' as it needs to constantly change the values on screen
    There`s probably a simple solution that Ive missed but i cant think of it - just going in circles now
    Any help and suggestions welcome
    Thanks
    Matt

    yeah it could be a while loop but the program will continue with the loop and not get the second click - so it cant change the variable e.g.
    boolean stop = false;
    onClick (inline listener){
        if(firstClick){     
             startLoop();      // <<<program will freeze here until function finishes - but will never finish (making it impossible to receive the next click;
         }else{
              stop = true;  
    void startLoop(){   
         while(!stop){  
             //ect
    }hope that helps clear it up
    thanks for the prompt reply

Maybe you are looking for