09-24-2007 12:46 PM
09-24-2007 12:55 PM
As mentioned, when this happens, it happens all the time (i.e. you can run the a VI which demonstrates this over and over, close it, open and it run it again and it will keep demonstrating the issue for a long time). When it doesn't happen, it doesn't happen, no matter how many times you run the VI. The key is finding out what causes the switch from a working state to a faulty state and I was hoping the workarounds I mentioned could help point NI in the direction of what might be causing this.
Whatever is causing this is not a simple thing, but it's also not something very esoteric, because I've seen it at least 3 or 4 times over the past several months.
09-24-2007 01:00 PM
4195835.0/3145727.0 = 1.333 820 449 136 241 002 (Correct value) 4195835.0/3145727.0 = 1.333 739 068 902 037 589 (Flawed Pentium)
AFAIK, most consumer computers are not protected by parity errors in memory. They don't use RAM with parity (i.e. 9 bits/byte) (http://en.wikipedia.org/wiki/RAM_parity).
09-24-2007 01:14 PM
i cant reproduce either.
yet, i had a very weird experience with one of my AE, which was sometimes "missing" a step. reason: the value which was supposed to be 3 was 2.999. i found it was related to either or not the fan (...) of the laptop has turned on. you might want to check that. i dismissed it as a hardware thing and on its target place the code is working ok.
09-24-2007 01:23 PM - edited 09-24-2007 01:23 PM
OK it was a long time ago and I remebered there was some random factor involved.
This image
Is linked into the Byte.com article on this flaw.
So it looks like you are correct Christian in that the bug is reproducable. The chance factor affected how likely a random user would see this error.
Ben
Message Edited by Ben on 09-24-2007 01:23 PM
09-24-2007 01:35 PM
@Gabi1 wrote:
i cant reproduce either.
Thanks for trying, but I don't really want people to try to reproduce this. This only happens under specific circumstances and unless we can find out what those are, there's no real point in attempting to reproduce this.
What I want is for NI to try to determine what might be the cause of this based only on the available data. I realize what that means, but just trying blindly to reproduce this and then closing the CAR as "not reproducible" is not a solution which I see as optimal.
09-25-2007 11:38 AM
LabVIEW, C'est LabVIEW
09-25-2007 11:58 AM
After seeing this, I was about to say that it's possible that I got this wrong and that it was 80, but then I looked at the image I posted in reply 7 which shows this actually happening and it's definitely a 60, so maybe that's a clue.
@JeanPierre wrote:
Does the problem occur with formats %0.15f or %0.14f?
I'm guessing it wouldn't occur or I would have used less digits, but I can't tell for sure without reproducing this. I can say that when I first saw this bug, the code was using 32 digits of precision, so it's highly likely that for my example I made the number the smallest it could be while still reproducing the issue.
One thing that concerns me is that this would not seem to explain the issue I mentioned in reply 16 -
I ran into what be might another variant of this today - converting a number like 209.08500001 to a string with a precision of 2 and running in a loop (over the same number) resulted mostly in 209.09, but occasionally in 209.08, which is definitely wrong. I'll try to see if I can get an example of that.
When I ran into that, I copied the relevant code to a small VI which could serve as an example and ran the small VI several times to make sure that the issue is reproducible. I then closed the VI and went back to work since I was at a customer's site. When I tried opening it again later (I think it was that evening) and running the example, the issue would not reproduce. I still have that VI, but haven't been able to reproduce this yet.
09-26-2007 06:01 PM
09-27-2007 12:13 PM
@Elizabeth S wrote:
I noticed that when I run the code without the delay, constant folding is enabled. This may have something to do with the problem that you are running into.
Are you still able to reproduce this issue? I am escalating this issue to R&D and will let you know what we find.
I can't reproduce it, but I've only seen this in some of the times I worked on a specific program. Most recently a couple of weeks ago (or at least a variant of it).
I can think of several reasons why:
Since I was using that program each time it happened, I'm willing to take the time and try to run that program just to reproducing this, but not unless I have a good reason to. I'm hoping R&D can give me tools to pinpoint the issue. Thanks for the escalation.