|
The time now is Sat Sep 04, 2010 2:33 am
All times are UTC + 0
|
| Author |
Message |
brian175
Site Admin

Joined: 09 Jun 2005 Posts: 104 Location: Rochester, NY
|
|
|
Back to top
|
|
 |
brian175
Site Admin

Joined: 09 Jun 2005 Posts: 104 Location: Rochester, NY
|
Posted: Wed Nov 09, 2005 6:54 pm Post subject:
Re: LabVIEW race condition with named queue bug
Subject description: Possible workaround
|
|
|
I haven't spent a lot of time looking into this bug, but the example that demonstrates the bug is a very extreme case of obtain reference (by name), enqueue, and then close reference. I modified the example by moving the obtain and close reference outside of the upper two loops and LabVIEW did not lock up (see "queue lockup check(reuse refnum).vi" attachment). While this did not crash my LabVIEW, please make sure that you close and save your work BEFORE running.
A possible workaround for this would be to keep the reference alive and reuse it instead of obtaining a new one each time. The other attachment (Reuse named queue reference.vi) shows one technique for this. This VI would be used in place of the obtain queue.
| Description: |
| This VI shows a technique for reusing a reference. It could be modified with a name string array and reference array to allow for multiple names to be looked up. |
|
 Download |
| Filename: |
Reuse named queue reference.vi |
| Filesize: |
17.83 KB |
| Downloaded: |
162 Time(s) |
| Description: |
| Bug appears to be caused by frequent obtain/closing of named queue reference. This VI doesn't crash (at least for the few minutes that I ran it). |
|
 Download |
| Filename: |
queue lockup check(reuse refnum).vi |
| Filesize: |
69.95 KB |
| Downloaded: |
162 Time(s) |
|
|
|
Back to top
|
|
 |
brian175
Site Admin

Joined: 09 Jun 2005 Posts: 104 Location: Rochester, NY
|
Posted: Mon Nov 21, 2005 7:29 pm Post subject:
Bug should be fixed in the next release of LabVIEW
Subject description: Will it be 8.0.1 or 8.1.0?
|
|
|
William Brown, from Ball Aerospace & Technologies Corp, has forwarded this message from NI about the bug that was found by Mike.
| Brian from NI wrote: | It was good to talk to you last week in Golden.
I'm sorry you ran into this problem. I have confirmed that we've fixed the bug internally, so it will make it into our next release. I don't know when we'll do our next release--if we have enough severe issues like this, you'll probably see an 8.0.1 within a few months. (And if we find a particularly severe problem, we could release something almost immediately.) Otherwise, we'll probably have an 8.1 sometime next year.
Thanks for the kind words about LabVIEW. I'll pass them along to the rest of the development team.
Brian
|
|
|
|
Back to top
|
|
 |
Francisco Posada
Guest
|
Posted: Wed Jan 25, 2006 4:27 pm Post subject:
Increased CPU usage by using Obtain and and Close reference
|
|
|
Hello all,
I have created an application that uses the dqGOOP to set and pass data. Because my application is multy-threading (and I cannot wire easily my references), every time that I pass data, I obtain and close a a queue reference. At the begining, my application has a CPU usage of 1 or 2 %. After 10 hours, the CPU usage of my application increases to 100%. The software gets blocked. My question is: Has this bug something to do with the increasing of the CPU usage?.
Thanks a lot in advance for the answer to this question? |
|
|
Back to top
|
|
 |
brian175
Site Admin

Joined: 09 Jun 2005 Posts: 104 Location: Rochester, NY
|
Posted: Wed Jan 25, 2006 7:45 pm Post subject:
Re: Increased CPU usage by using Obtain and and Close refere
|
|
|
| Francisco Posada wrote: | Hello all,
I have created an application that uses the dqGOOP to set and pass data. Because my application is multy-threading (and I cannot wire easily my references), every time that I pass data, I obtain and close a a queue reference. At the begining, my application has a CPU usage of 1 or 2 %. After 10 hours, the CPU usage of my application increases to 100%. The software gets blocked. My question is: Has this bug something to do with the increasing of the CPU usage?.
Thanks a lot in advance for the answer to this question? |
If your app is crashing due to this bug, you should be able to fix the problem by looking at the solution posted earlier in this thread. Instead of open/close a reference, you only obtain it once and reuse it in a shift register. If this doesn't solve the problem, then I would look for some other memory leak. Let us know how it turns out.
Brian |
|
|
Back to top
|
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|