LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074396120 with several IMAQ functions... bug?

I'm experiencing an intermittent error with many of the IMAQ functions. Basically, my program reads in an AVI file, does some machine visions tasks to each frame, and then I analyze the results. I can run the program 20 times in a row with no errors, then I'll get caught with this same error in some IMAQ subVI. I've written a way for my program to just "try again" when it sees this error (because it'll likely be successful the next time), but that's obviously not ideal. I'm tempted to call this a bug because of its intermittent nature. 

 

Here's the process - I pass an image to an IMAQ function, that function does whatever it's supposed to, and the image comes out. Sometimes, an image does NOT come out, which causes the next IMAQ function in line to throw error -1074396120 (not an image). The IMAQ AVI2 Read function seems most likely to fail at outputting an image, but I've also seen it with IMAQ Cast and IMAQ Copy. 

 

I am running LabVIEW 2018, and Vision Assistant 2018 SP1. I've read basically every thread in existence that references this error, but am getting nowhere. Thanks for any help!

 

 

 

 

0 Kudos
Message 1 of 6
(2,733 Views)

None of us can inspect, test, critique, fix code that you don't post.  (Except, possibly, Altenbach ...).

 

Bob Schor

0 Kudos
Message 2 of 6
(2,690 Views)

Fair enough! It's a really complicated state machine with a ton of subVIs, controls, etc. If all the files prove to be too complicated or annoying to sort through, I can try and make a less unwieldy version of the same thing. The attached screen shot is the state where the error occurs (you may notice something off right away?). If not, please download the whole thing here:

 

https://drive.google.com/file/d/16fmm518yR3dqqLnZfheR2v27OJMiNEj8/view?usp=sharing

 

The main program is ESL-Program-15-post.vi (does not have the error handling I mentioned earlier). The tabs to focus on are "Density" and/or "Viscosity & Surface Tension". After giving the correct file paths (the .avi and .cvs files are attached), hit the "run calculations" buttons. The errors will pop up in the "Ellipse Fit" state, either in the main program, or in the eyeball/ellipse subVI in that same state. 

 

Sorry for the giant size - I'm including fairly long .avi files. I tried shorter ones for this upload, and I couldn't replicate the error as reliably. So possibly something to do with memory allocation/insufficient memory, rather than an inherent bug... I'm not very good at dealing with that (though I believe I'm deallocating properly, it's certainly not guaranteed). Possibly an AVI codec issue as well?

 

Please let me know if this isn't enough info to run the program or find the error. Keep in mind you may successfully run the calculation several times without seeing the error - the "abort image analysis" button is useful; usually the error will happen just following the allocating memory step (but not always...). Switching between running the two different calculations also sometimes triggers the error. Also please ignore some of the messiness - this is development stage!

 

Thanks for any help!!

 

 

0 Kudos
Message 3 of 6
(2,670 Views)

Bob, did you get a chance to look?

 

Anyone? Bumping up in hopes someone is out there... 


Erin

0 Kudos
Message 4 of 6
(2,612 Views)

Erin,

 

     I replied "Privately" ...

 

Bob Schor

0 Kudos
Message 5 of 6
(2,599 Views)

Yes, thank you Bob! I'll get back to you today.


Erin

0 Kudos
Message 6 of 6
(2,596 Views)