My application hangs after 10 hours in the serialport read sub-vi. Why?

My application is programmed under LabView 5.1.1 on a windows 2000 platform.
I use a MOXA RS232 extending module with a B&B RS485- converter.
After 10 hours trouble-free working, the application, using semaphores, hangs in the serialport read sub-vi.
In the same constelation without RS485-converter, once the application hanged up in the serialport write sub-vi. After Restarting LabView I was still not able to access the serial port. So I had to restart the PC.

I am not sure, but it looks for me as some buffer overflow error.
Like you read or write something before it is ready.
Try to play with the lines like DTR and so on.
regards
PP
Isildur wrote:
>
> My application is programmed under LabView 5.1.1 on a windows 2000
> platform.
> I use a MOXA RS232 extending module with a B&B RS485- converter.
> After 10 hours trouble-free working, the application, using
> semaphores, hangs in the serialport read sub-vi.
> In the same constelation without RS485-converter, once the application
> hanged up in the serialport write sub-vi. After Restarting LabView I
> was still not able to access the serial port. So I had to restart the
> PC.

Similar Messages

  • ADF application hangs after  $$added root$$ message in the logs

    Hi ADF Gurus,
    We have an ADF application which freezes after we create a row in a particular VO,
    When debugged in Jdev, the application seems to hang when either of the below log messages appear. Does anybody know what these messages mean? Just hoping for some hint as to where the problem might lie. The table where the new row is added has about 150,000 records in it
    Log messages:
    <PCollNode> <checkForSplit> [50545] $$added root$$ id=-2
    <PCollNode> <checkForSplit> [50546] $$added root$$ id=-73
    <PCollNode> <checkForSplit> [50636] $$added root$$ id=-2559
    Environment details:
    Jdev: 11.1.1.5.0
    Database:11g
    Thanks
    -Venkat

    duplicate post: ADF application hangs after  $$added root$$ message in the logs

  • Problem in reading data from serial port continuously- application hangs after sometimes

    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Scanning.vi ‏39 KB

    billko wrote:
    Ranjeet_Singh wrote:
    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    What do you mean, "not fixed?"  If there is no termination character, no start/stop character(s) or even a consistent data length, then how can you really be sure when the data starts and stops?
    I probably misunderstood you though.  Assuming the last case is not ture - there is a certain length to the data - then you should use the bytes at port, like in the otherwise disastrous serial port read example.  In this case, it's NOT disastrous.  You have to make sure that you read all the data that came through.  Right now you have no idea how much data you just read.  Also, if this is streaming data, you might want to break it out into a producer/consumer design pattern.
    Not fixed means order is not fixed, data from any com port can come anytime. lenght is fixed, one com port have 14 byte and other 8 byte fixed..
    Reading data is not an issue for me as it works nice but I have a query that why my application hangs after sometime and stops reading data from COM PORT.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

  • Application hanging after commit issued, how to tell why?

    Hi All,
    We're using adf bc, jsp's and jdev 10.1.2.
    The scenario is this.. I have 2 views based on the same entity(called Milk). One view is the control view Milk i.e. straightforward select, no where clause. The other one is based on a join with another entity (Area), which uses where clause parameters to output a row of Milk for every entry on the Area entity. So basically for every area there is, a milk row will be output even if that row does not exist on the milk table.
    So my problem was when the user edited and saved a row which didn't actually exist on the database, the program would hang. Editing of rows that do exist pose no problem at all. So then I thought maybe I should create these rows first so that they would physically exist on the database before the edit. Still to no avail..
    If it's just one row created or many rows, once the commit is issued, the application hangs. I've debugged it and nothing happens once it executes the commit line, there are no error messages, it just never progresses past this line.
    I've tested with the App Module tester and I can create rows here fine. Obvisouly something is wrong or it wouldn't be happening. How can I tell why it's hanging? Or can anyone suggest what I can do. It is extremely crucial that I fix this soon so I would really appreciate any help that anyone can give me.
    Thanks in advance,
    Liz.

    Maybe you should look into
    /var/log/messages.log
    /var/log/daemon.log
    /var/log/kernel.log
    /var/log/Xorg.0.log will be overridden, afaik.
    Last edited by MadTux (2009-11-19 18:50:04)

  • Application hangs and cannot get the dumps

    Hi all,
    I see an issue, the application hangs at a particular point very rarely, sometimes it works, sometimes it
    doesn't.
    Java version is 1.6.0_26
    It basically hangs in newInstance0 method of NativeConstructorAccessorImpl method.
    It goes into a native method, I extend my hand to seek help on this to know if there any ways to debug native code in java or enabling any other debug flags or getting debug softwares, etc.
    Thanks,
    Kalpa.

    If you are using the same computer, your files should all still be the same.  What OS X version did you upgrade from?  There may be some software that was incompatible but that would be placed in a folder labled "Uncompatible Software".  Other then that, all your files should have stayed where they were and only the OS X should have been updated.

  • After updating to the latest Reader XI - pdf preview no longer show up in the explorer preview pane

    After finally allowing Adobe to update my reader - I no longer can see pdf files in the preview pane.  I can see previews if I have medium or large icons turned on - but a large version in the preview pane.  And never if small icons or details are used.  I could see these files fine before the update.  If I right click in the preview pane - I have the option to open the pdf, etc.  It's like it is there but I cannot see it.  If I close the acrord in the task manager, the next pdf file I click on will have a preview.  However, after that, no preview showing for any others.  The only way a preview is in the preview pane is if the application is killed in task manager between every attempt.
    Why is this happening?

    Hi precious_star,
    Could you please let me know what version of OS are you using.
    Open Acrobat and go to "Edit > Preferences > Page Display" and check whether 'Show large images' option is checked.
    Is this issue specific for one PDF?
    If possible, please share the file with me via email so that I can also check at my end.
    I have sent you a message with my contact id details.
    Hope to get your response.
    Regards,
    Anubha

  • Virt-install hangs at "Write protecting the kernel read-only data",

    I am trying to Install Oracle Linux 5.4 as a Paravirtualized Machine on an Oracle VM Server (2.2.1).
    Following are the steps that I followed:
    I have the dvd iso file on /OVS/iso_pool
    1. mkdir -p /el/EL5-x86
    2. mount -t iso9660 -o ro,loop /OVS/iso_pool/Enterprise-R5-U4-Server-x86_64-dvd.iso /el/EL5-x86
    3. service portmap start
    4. service nfs start
    5. exportfs *:/el/EL5-x86
    6. mkdir /OVS/running_pool/vm01
    7. virt-install
    and gave the following details
    Name of the virtual machine: vm01
    RAM:7168
    disk path: /OVS/running_pool/vm01/system.img
    disk space: 80GB
    graphics support: yes
    install location- nfs:OVM server ipaddress:/el/EL5-x86
    It starts the install, but hangs at
    XENBUS: Device with no driver: device/vbd/51713
    XENBUS: Device with no driver: device/vbd/51714
    XENBUS: Device with no driver: device/vif/0
    XENBUS: Device with no driver: device/console/0
    Initalizing network drop monitor service
    Write protecting the kernel read-only data: 483k
    Can you please help
    Thanks,
    Radhika

    Yes I am able to connect to the guest vnc console, and proceed with the install.
    I did, Choose a language, choose a keyboard, configure TCP/IP, Manual TCP/IP configuration, after this I am getting a message "That directory could not be mounted from the server"
    I tried giving the IPAdress of the OVM Server where the directory was mounted, nothing is working. I cannot proceed any further.

  • A flow rate by lose of mass (flow: g/min. or g/hours) with the balance reading?

    I am using a Mettler Toledo balances to feed a reactor. Balance vi gives me actual (current) weight. How do I get a flow rate by lose of mass (flow: g/min. or g/hours) with this balance reading?
    Attachments:
    Balances Weight.vi ‏26 KB

    Put the current reading in a shift register. Subtract it from the previous reading. Divide by the time between the readings.
    This type differentiation tends to be noisy so you may need to do some smooothing of the data.
    Lynn

  • Snow Leopard 10.6.7 updates hangs after you unclick the install check marks three times

    Since installing 10.6.7 in the last few weeks I have seen that when I update my software update the streaming bar checks my system & seems to hang about 3/4  across bar.  Finally it goes to a blank screen to the desktop screen & after about 10 sec. the update appears.  We have High Speed Internet service.  When I view it everything which is needed is supplied in the update.  I have found that some install items I do not want to load so I uncheck them in the install list on left side.  After I have unchecked 3 installs the screen seems to freeze or hang on the last item which has been unchecked.  I cannot uncheck or check anything else for about a min.  Then I uncheck the rest & I am able to download the items which I want.  What would cause this.  Hoping someone may be able to help.

    It sounds like the Software Update preference file has become corrupted. Navigate to:
    ~/Library/Preferences/com.apple.SoftwareUpdate.plist and drag the file to your desktop. Then restart the computer and try another Software Update. The file will be re-created when you do.
    Roger

  • Application hangs up proportionally to the time it's been running

    Hi, all.
    I have a hang up problem in a project I'm working on. It happens always when I finish the execution. Depending on the time it's been running, it only keeps the user interface unavailable for a while (if it was a short execution), or hangs up and there's no other way to stop it than aborting using Windows Task Manager (if it was a long execution).
    The project contains VIts and uses the execution in parallel of several VI clones, that are loaded into subpanels in the main VI front panel. I start the execution of these using VI Server property "Run VI", and insert them into the subpanels with the property "Insert VI". Then, when I exit the application, I abort their execution using "Abort VI" and remove them from the panels with "Remove VI".
    It seems to be some memory release issue, but I'm not sure.
    Could you give me some advice?
    Thanks in advance,
    Francisco

    Hi,
    if the size that take Labview in windows system increase with time execution, there is a big chance for beeing a memory leakage problem.
    The best would be to use the Labview Desktop Trace execution toolkit (I think you can try it free for 30 days), and this tool will show you the problems of you program.
    If you don't want to use this tool, you have to search in your code where you open references and check that they're well closed.
    Regards,
    V-F

  • Lion upgrade seemingly hangs after reboot at the "Installing" prompt

    I ran the Lion installer in the InstallESD.dmg file located on the desktop of my fully functional 10.6.8 installation.
    The first part where the installer does various things, including "Downloading additional components", went well and completed with a Restart button, which I pressed.
    Then the linen texture appeared with the big white Installing prompt and the blue-white candy/progress bar. But nothing else happens.
    I left it for ten minutes and then pressed the power button on my Mac Pro until the computer shut off.Then started the computer again.
    But I come back to the linen background and the candybar prompt.
    Must I really wipe the drive and clone back 10.6.8 and start over?
    Thanks for any ideas.
    /p

    I have tried the following, all without result:
    - resetting the PRAM
    - verifying the checksum of the downloaded Lion file
    - installing on the bootdrive (SSD) to which I downloaded Lion (thinking that perhaps it must be installed on that drive)
    - installing on an external harddrive by upgrading a Snow Leopard system with all updates
    - installing on a second internal SSD by upgrading a Snow Leopard system with all updates
    I'm completely at a loss and have no fraking idea what to do.
    The reason I wish to upgrade is to be able to use Office for Mac which uses a Rosetta installer. Were it not for that I would happily have done a clean install. But since the upgrading goes so badly I guess I will have to buy the new Office.
    Gah.

  • My Boyfriend has lost all of his contacts on his phone after down loading the new iphone soft wear why would this happen and how can he get them back                          how can you get back your contacts after down loading the new iphone soft wear

    My boyfriend has lost all of his contacts on his phone after downloading the new iphone softwear. why would this happen and how can he get it all back

    You don't have to post the same question at one minute intervals.  Somebody will answer it, but perhaps not in 60 seconds.

  • Mapviewer application hangs on WebLogic

    The MapViewer 11g application hangs after some time and does not respond to any request. MapViewer is running on a separate domain. The MapViewer is very lacklustre in performance. Please suggest what could be done. It takes the CPU of the server to 99%
    Regards
    Edited by: user5108636 on 10/05/2010 22:43

    I would say there is no ideal number of mappers. Increasing the number of mappers may be good for several concurrent requests, but at some point too may mappers may overload the server and the result may not be good. Each mapper is used to generate a map response for a request. And each map depends on the spatial data that is being rendered which may be more complex than others. So it is kind of playing a bit to find the "ideal" number of mappers.
    Another thing that you can do, is to evaluate the requests to see if they are taking long to be processed (set log level to finest and look the request log). There may be situations where too many features are being returned for a theme. In these cases the scale may not be optimized and can be tuned.

  • OCFJ Hanging after 5-7 days

    I am running OC4J 1.0.2.2 on a windows 2000 server.
    I am using it as my JSP engine as well. For some reason the application hangs after 5-7 days of being used. In order to get up again I have to restart it.
    I am running it as a service and using ConnectionPooling.
    Any ideas as to why this may be happening and how to fix it?
    Thanks

    Hi Lemonte,
    My platform is SUN Solaris 7, so what I am about to say may not
    be relevant for your Windows platform, but I think it is and that's
    why I'll say it.
    I think in the release notes it recommends using the JDK that comes
    with 9iAS, which (IIRC) is 1.2.2
    Does your application involve EJB's? There is an issue with OC4J
    keeping bean instances in memory permanently, which can eventually
    cause a memory leak.
    Unless you can give me more details, there's nothing else I can
    suggest right now.
    Hope this helps,
    Avi.

  • Powerbook G4 hangs after few minutes of usage

    Since February 06 I have a PB G4: 1.67GHZ, model Powerbook5,8
    Since this weekend it hangs after a few minutes of usage.
    I tried a whole load of possible solutions, like resetting the RAM, removing the battery and holding the powerbutton for 5 seconds...I even held it once for half a minute, but that didn't help. Checking the harddrive with disk utility (tried it often, but only once did the PB work long enough to get the end result: hard drive is healthy).
    Often, when it hangs, I can get it to work by simply turning it off and on again. That gives me another window of 2 minutes of usage! Handy throughout the day when I need a file, or a document: I simply boot the machine, get the file and shut it down.
    Carbon copy to an external HD does not work: the system hangs a few minutes after copying.
    I installed a utility named applejack, and the first time I tried it, I got an interesting error: there were errors with the USB controller or USB bus, and system hangs. I didn't make a screenshot so this is out of the top of my head.
    This was interesting because when I tried to make a HD copy (and believe me: I tried lots and lots of times), the system freezes first, and then an error about not unmounting a device popped into the screen. As if the touchpad, keyboards, and all other i/o devices stop working, and the system goes on for a few seconds more.
    Sometimes the system just hangs, sometimes I get that black kernel panic screen.
    Just before writing this, I tried the hardware test on the install CD once more:
    Held down the option key, chose the hardware test -> quick test and..
    system hangs after completion of the test
    A message appeared in the bottom-left corner. Several lines of information, starting with:
    "ERROR, Write to location ZERO detected!!, Loc zero was originally zero
    Current File: Localization/en/Scripts/enAHTscript.sc"
    etc
    I live on a nice island in the Caribbean, so popping into the nearest Apple store means getting on a flight to Miami first.
    What -if any- are my options? Is there something I can try to do myself before shipping it to Apple? Opening the case, checking this or that?
    By the way, I originally posted this in the Titanium folder, but someone mentioned that I might actually have a Aluminum PB.
    see http://discussions.apple.com/message.jspa?messageID=2074854#2074854

    hi joeuu,
    I have 1.5GB mem: one 512 stick and one 1GB and I already tried the sticks one at a time: it hangs with the original 512, it hangs with the 1GB and it hangs with them together in both possible slot settings.
    I managed to copy the panic.log in /Library/Logs/ and here it is:
    Fri Apr 7 15:27:21 2006
    panic(cpu 0 caller 0x000A8D00): Uncorrectable machine check: pc = 00000000000AF340, msr = 0000000000141020, dsisr = 42000000, dar = 000000000280C200
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095698 0x00095BB0 0x0002683C 0x000A8D00 0x000A7F90 0x000ABC80
    Proceeding back via exception chain:
    Exception state (sv=0x41381A00)
    PC=0x000AF340; MSR=0x00141020; DAR=0x0280C200; DSISR=0x42000000; LR=0x000AF158; R1=0x2211B8E0; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x404E9F24 0x404E1F6C 0x404E7B2C 0x002CEFB8 0x41C3F2C8 0x002BC0E8
    0x002CDA70 0x002BC690 0x002BBB4C 0x002BBA5C 0x404E3954 0x404E3B98 0x002CE900 0x002CD7C8
    0x000A9814
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.driver.AppleUSBTrackpad(1.3.0f1)@0x41c3d000
    dependency: com.apple.iokit.IOUSBFamily(2.2.5)@0x404aa000
    dependency: com.apple.iokit.IOHIDFamily(1.4.3)@0x32671000
    com.apple.driver.AppleUSBOHCI(2.2.5)@0x404df000
    dependency: com.apple.iokit.IOUSBFamily(2.2.5)@0x404aa000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x323bf000
    Exception state (sv=0x402ABA00)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.2.2: Mon Aug 22 18:43:11 PDT 2005; root:xnu-792.5.11.obj~1/RELEASE_PPC
    Now what can we read from this?
    I see in here "AppleUSBTrackpad" and "AppleUSBOHCI".
    Referring to my original post: I have seen an error (a few days ago, when working with applejack) that also mentioned USB.
    I'm very afraid that this is a hardware issue. Reading through some other posts, I saw something about a ribbon that gave problems. What are your thoughts?

Maybe you are looking for