LabVIEW 8.6.1 crashes

Good Day All,
   I've got an application where I'm getting intermittent crashes, sometime when in edit mode, sometimes when my program is actually running. I have gotten a couple of "MemoryManager.cpp  line 437" crashes, but more often, but still intermittently, I just get the window that says something has happened to LabVIEW and it needs to be terminated. When you click on the more information link it pops up a window that says:
"AppName:labview.exe   AppVer: 8.6.0.4001  ModName: Unknown
ModVer.: 0.0.0.0        Offset 6f636974"
This happens when running the application or when editing. It may happen twice in an hour, or after several hours of running. I've watched the memory and thread usage in "Task Manager" and they seem to be stable.
The program has two main parts, a UI that at the beginning of the test run uses a .NET call to read back data over the network from the Unit Under Test, parse the returned XML string (using string functions, no "XML parsing" functions from LabVIEW or Windows) and a user interface to start the program. The UI sends a message over a queue to the "Test Engine" which then, depending on the "test recipe" installs and launches the appropriate test program using a "Call by Reference Node". The test program makes measurements of the UUT and saves the results to an Excel file using NI Report vi's from the NI Report Generation Toolkit. The measurements are visa calls to standard "rack and stack" instruments like spectrum analyzers and signal generators.
I've done a moderately deep search on the NI site, haven't found anything that looks like the issue, need ideas how to trap this beast and eliminate it.
I hope that many of the major players being at NIWeek won't impact the response time. It seems like those years I haven't been able to attend are the ones where I hit a snag like this one. I guess the moral is that I should always attend
Thanks in advance,
Putnam
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion
Solved!
Go to Solution.

Looking at this specific error, LabVIEW's memory manager has decided that a memory handle is invalid. One case in which this can happen is when different versions of LabVIEW are in use simultaneously and a data handle is passed from one version of LV to another. One such scenario would be:
LabVIEW 2009 calls the function 'myFunc' from 'foo.dll'
'foo.dll' was built using LabVIEW 8.6
'myFunc' expects an array of data, passed as a LabVIEW array handle
The problem arises in this case because the array handle allocated by the LabVIEW 2009 instance of the LV memory manager is sent to a VI running in the LabVIEW 8.6 Run-Time Engine, which has the LabVIEW 8.6 version of the memory manager. Because the data is an array handle, and LabVIEW may need to resize the handle, the code in the LV 8.6 Run-Time inspects the data handle to see if its memory manager considers it a 'good' memory handle (i.e. one that it allocated itself). It discovers that the LV 8.6 Run-Time didn't allocate the handle, and, being mistrustful of data from other memory managers ( ;-) ) it has no choice but to abort the application. It's either that or corrupt memory.
In such cases, a workaround is to pass array pointers (or strings) that cannot be resized -- an unsavory situation if the underlying implementation must resize the array (or string). The workaround in that case is more complex - e.g.. having two functions - a 'preflight' that tells you how big the output will be, and the 'actual' function that requires a properly sized output buffer.
For more complex data structures (e.g.. clusters) the workaround is to break apart the cluster into individual, simple types that can be passed as pointers to data or simple scalar values.
Whether this is at all similar to your case is unclear - it sounds like there are several component layers involved with different technologies. But the crash itself is still that LabVIEW 8.6 has gotten a memory handle from somewhere that's *not* been allocated by the LabVIEW 8.6 memory manager.
One thing you could do with Process Explorer and similar tools is determine if there are multiple versions of LabVIEW in the main process. For example, if both LabVIEW.exe and one or more lvrt.dll instances from different locations on disk are in memory, you've found a red flag. The quest then is to find out which components in your software stack are responsible for bringing in those different versions of LabVIEW, and how they're interacting via code.
Best regards,
intvsteve
LabVIEW R&D

Similar Messages

  • Labview 5.1 Executable crashes when I try to run it a second time

    I created an executable from some labview 5.1 code I wrote. The code works fine when I run it under labview, but when I created an executable, the code crashes. I can run the code once and it will work fine, but when I try to run it again it crashes.
    The coded basic function is to record data displayed on a network analyzer screen. I have the analyzer go into remote mode for data collection and back to local after data collection so changes can be made to the display. When I try running it again after changes were made, the executable crashes.
    Has anyone experience this problem?

    I have run into this problem a couple of times for different (but similar) reasons.
    One was that I used the VISA open and talked to the instrument, but did not CLOSE the VISA session. When trying to OPEN again (second time program is run), the program would crash.
    I had the same problem with opening references once. It is supposed to close all references when the program ends, but I always close my sessions before exiting.
    Look for OPEN without CLOSE in the program.
    Hope this helps.
    Rob

  • LabVIEW 2010 in-placeness crash bug

    [cross-posted to LAVA]
    I found an odd LabVIEW 2010 bug that will cause a hard crash. The bug appears to be related to how LabVIEW operates on data in-place and some interaction between clusters, arrays, and the Aum Array Elements node. It's hard to describe verbally, so I'll just draw you a picture 
      LabVIEW 2010 CRASH.vi (16.56K) 

    No crash on my system: LV2010, W7 64-bit, Pentium E5200
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Labview 2012 Runtime Application Crash: Access Violation Error

    hi All,
    my rather large app that I been develping over teh last few years has recently been crashing.
    I do not know if it is since I began compiling it in LV2012 SP1 that the problem occurred or I have some programming error
    that I cannot track down.
    It use to run with uptimes over months, even with some memory leaks.
    If I monitor using Task Manager there is no decernable increase in memory usage.
    It crashes on two different systems - both running Windows XP.
    The developer version running in LabVIEW 2012 f5 ( Windows XP ) does not crash. Only the runtime version crashes.
    It also crashes either if the program sits idle for a few days - 5 or so ( memeory footprint stable ), or if it is used extensively to actively gather and control several instruements ( memory increase matches data size increase )
    It does call several external API via ActiveX to spawn off processes, however from the lvlog.txt it seems the crashing is a simple open file that uses the NI supplied String to Config.vi.
    I have double/triple check my code and I close any refernces open by the calling vi.
    I am sure how to read teh mini-dump files so if someone can look at these it would be apreciated
    thanks
    Michael
    Here are two crash logs:
    Attachments:
    fde86f7f-a024-417d-ac1c-d38b2e9a41e3.zip ‏61 KB
    4f75c413-793d-46db-b66c-889a2f2daf69.zip ‏59 KB
    00660fb7-749d-4af5-bcb1-ac5cad73a5cb.zip ‏56 KB

    Hi Michael,
    It's tough to tell what's going on, especially since it seems like you've really covered your bases!  I'm curious about the fact that you don't see the crashes in LabVIEW (LV), just in the Run-Time Engine (RTE).  Have you ever tried running it in LV for an extended period of time?
    Also, do you have any loops in your program?  Perhaps shrinking any waits that might be present and allowing your program to run faster would decrease the amount of time to see these errors from days to shorter.  
    In the future, when you get a dump file, submit it to our R&D department.  It then pops up on a website that allows me to read them.  I can also use win debug but that will take me a bit, so I'll have to get back to you on that.  
    Also, if you could take a picture of the error, that would help as well.
    Julian R.
    Applications Engineer
    National Instruments

  • LabVIEW 2012 f1 Patch crashes

    I've just installed LabVIEW 2012 and unfortunately I've already run into some troubles.
    I received a "Setup has stopped working" when I installed the device drivers.  But the installation appeared to be fine.  LabVIEW started and MAX would open.  I did not try connecting to any hardware yet.
    When attempting to install the f1 patch, LabVIEW crashed again.  Subsequent retries net the same thing. 
    Has anyone else had this trouble with the patch?   
    This is on a Win7 machine with LV 8.6, and 2011 previously installed. 
    Patrick Allen
    Solved!
    Go to Solution.

    Why do you have LabVIEW open when you are trying to install a patch?  Are you running other versions of LabVIEW when performing the install?  It is highly recommended you are not running anything NI when running installers from NI.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Labview 8.5 project crashes when searching for callers of missing lvlib

    I have done a search and reviewed previously reported crashes with LV8.5, but did not find a match to what I'm seeing.
    SYNOPSIS: When selecting Find > Callers, under the project Dependencies, LV crashes as shown in the image below.
    I created a new project and "borrowed" some vi's from another project.  Disconnected all vi's from previous libraries and proceeded to develop code last night.  All seemed well.
    This morning, as I opened the project to continue coding, it complained about a missing lvlib, the one items were "borrowed" from.  No big deal, I'll just look at the dependencies and find out which one I missed.  When doing the search, the program crashes immediately.  Repeated a number of times with the same result.  Verified system performance and memory useage, minimal change when opening the project or attempting to do the search.
    I will attempt a workaround, but I am curious if others have seen this as well. 
    I'll wait before reporting this as a "bug", until more info is gathered on this.. 
    By the way, the original lvlib was NOT deleted, removed, moved, renamed as the error suggests..  LV actually knows where it is because it finds the directory when doing the search..  
    I know the routine, "simply re-install LV8.5", but I'm trying to understand more of what's gooing on and how we can avoid this..  I remember LV8.2 was crashing a lot at the beginning, then for no apparent reason, it became stable, and now I can't remember the last time it crashed..  Do others observe the same thing?  LV gets more stable with time??  LOL!  A program with personality.  Will LV turn into HAL?  LOL!!
    Here's the picture:
    Message Edited by JoeLabView on 02-13-2008 08:35 AM
    Attachments:
    LV8.5ProjectCrash.PNG ‏38 KB

    Good morning Jennifer,
    I'll try to re-create the events from memory. 
    OS:  Win-XP Pro - SP2
    1. Opened library of VI's from Agilent E4440A drivers.  Opened the "Tree.vi" to look at available vi's.  Copied (pasted) some of the vi's into a new folder.   This may be important: I deleted the folder that contained the original library.  (Actually, the zipped file was moved to a storage location).  This means LV has no idea where to find the original library.
    2. Opened all freshly copied VI at the new folder location.  They all complained about not finding the .lvlib file.  Ignored the error and disconnected every vi from the library and saved them.  All except for one which was polymorphic and I didn't need it. I forgot to delete it at this time.
    3.  Created a new folder (real) within the directory structure of an existing project which uses an lvlib. Moved the disconnected vi's into this folder.
    4. Opened the project and added the folder to the project, thus creating the virtual folder and files that were in the folder.  All this was added to the library.
    Note..  I can't remember the exact steps below, but they were something close to what I describe.
    5. Cannot remember if I closed the project then opened it, but I do remember seeing a message complaining that one VI could not find the lvlib (the one from Agilent).
    6. Looked into the folder and examined the saved date, which quickly led to the polymorphic VI that was still part of the original library.  Since I was not sure if I wanted to use it later, I simply changed the extention from .vi to ._vi_.
    7.  Did some work, saved everything. Closed the project..
    8. Opened the project and got an error message about a missing .lvlib.  Again looking for the original Agilent lib. Remember that I had deleted the original library, it's folder, etc. (step 1).
    9. Everytime I would open the project, I would get the error message.  I ignore it and continue working.  Since I don't like errors , I looked at the dependencies to find out what I missed. At this time, the file with the ._vi_ extension was still in the folder.  I had forgotten about it and didn't realize that LV would pick it up.
    10. In the dependencies tree, I right-clicked the error message and selected "Find>Callers", as shown in the attached image of the original post. Got the crash message.  I repeated this 4 times.  Rebooted the PC, and repeated it twice. All the same result >>  Crash.   I may have saved a copy of the "crash" report, although I doubt it...  I didn't bother sending the report to MS; because, well, I don't have much credibility over what those guys do at MS.
    11. Looked at the folder to go through every VI to find out which one was still connected to the library.  None of them were.
    12.  Noticed the ._vi_, and figured there would be no harm to delete it.  Deleted it.  It resolved the dependencies, thus no more error, no more crash.
    I am actually surprised that LV project also looks into non-DOTvi files for dependencies.  I imagined that it would ignore anything non-Labview known extentions.  This is definitely good to know.  However, the crash was a bit unexpected.
    I will look for error logs.  If I have time, I may try to repeat this on my PC and send logs.  It will have to wait until I finish my surrent project (client / revenue)
    Hope the above helps.
    RayR

  • LabView starts ok but crashes when try to open "block view"

    I'm running LabView 7.1.  It has been operating fine.  But all of a sudden it starts crashing.  I can start LabView.  But as soon as I have opened a module and try to run it, it crashes.  Sometimes it also crashes when i try to open the "block view", and sometimes it is not even able to complete loading certain module.  Is it a computer memory/resource problem?  But I checked task manager and there is nothing running on the computer other than labview. 

    Hi,
    Is it certain VIs or all VIs. If its all VIs then you might try doing a repair / re-install your labview.
    If its certain VIs, its possible they have been corrupted. If this is the case, you will have to regenerate them.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Labview 2011 FDS (64bit) crashes when saving a vi with MATLAB node

    After running a vi which includes a MATLAB node, the vi cannot be saved, because Labview crashes every time with error: "DAbort 0x1A7102DF in fpsane.cpp".
    Why does a MATLAB node with simple array I/O corrupt LABVIEW's sanity ???
    I have attached a minimum configuration, which gives a reliable crash. First run, then push save.
    Configuration: Windows 7 (new installation), Labview FDS (64bit), MATLAB (64bit)
     

    Amd1480 wrote:
    did anybody could solve or got a work arround this problem?
    I am getting the same error code when I use the Call Library Function to call external DLLs in my application.
    I am using the following system configuration:
    - Windows 7 32bit with SP1
    - LabVIEW PDS 2011 32bit
    Additionally to this error I am getting the following message (Ausnahme: Access violation (0xC0000005) bei EIP=0x00C0503F) (see attachments)
    Note: calling the same DLLs using previous LabVIEW versions (8.2) works fine.
    When such errors happen in an application that uses the Call Library Node, you can be almost certain that it is a problem in how the Call Library Node was configured (wrong!) or a bug in the DLL. That you happen to see this error, only means that the external code happend to overwrite memory that it was not supposed to do, and that memory happened to be some data structure that LabVIEW uses to represent some front panel element. That it didn't happen in 8.2 doesn't mean that it didn't have that error there too, only that it overwrote some different memory location, that had unluckily for you no visible consequences.
    For all other cases with no Call Library Node included, it means that the VIs front panel resource got somehow damaged (and yes this could also happen from running the VI in an application with misbehaving Call Library Node, and then saving the VI). The most easy solution is to rewrite the VI, another option is to try to force a recompile with the Ctrl button pressed and then activating the run button in the VI toolbar. Other than that there is little we normal users can do. The only people who can do more here are the LabVIEW developers who can look inside the VI and identify the damaged data structure and repair it, but that is a lot of work and time, and NI doesn't commit to doing this normally.

  • LabView 8.5.1 crashes at splash screen "appentrypoint.cpp, line 74 error"

    Been using it for a while.  Updated to lv2011 but need to be able to still use 8.5.1.  After upgrading found out the earlier version is not compatible with the fieldpoint 6.0.10 drivers that updated my 6.0.1 version.  So, I uninstalled the 2011 LV and 6.0.10 fieldpoint drivers.  I reinstalled the fp 6.0.1 drives from an original CD.  When I ran LV8.5.1 the above error occurs during the splash screen and LV ends.  I uninstalled 8.5.1 and did a new installation from the original CD and I still get the same error.  Would really like to get LV8.5.1 working again with fieldpoint.  Thanks.
    Attachments:
    lv error code.JPG ‏103 KB

    Hi jmw50290,
    I see that you've tried uninstalling and reinstalling LabVIEW 8.5.1, but have you tried doing a repair installation?
    Here are the steps to do so:
    http://digital.ni.com/public.nsf/allkb/fe6b641e86e55af2862576de00038001?OpenDocument
    Repair does things that regular uninstall/reinstall do not do, so it's worth a shot.
    Sincerely,
    Bogdan Buricea
    Applications Engineering
    National Instruments
    Bogdan Buricea
    Applications Engineer
    National Instruments

  • Labview 7.1.1 crash on right click of subvi

    We've started having a problem on one computer, with a 3.4ghz, Intel dual core motherboard, win XP pro. When a subvi, usually homemade, and begun under an earlier version of labview, is right clicked in the diagram, we get a dialog stating that "Labview has encountered a problem and needs to close". No kidding. It goes away like somebody filed a paternity suit. We are using some Measurement Computing devices, and their vi's seem particularly prone to this. I read the earlier thread from 2005, which didn't offer much help. Have already installed updated Intel graphics drivers(seemed to fix for a while, but NOT), removed/reinstalled Labview,  tried Repair per Travis H. advice in aforementioned fourm thread:
    ttp://forums.ni.com/ni/board/message?board.id=170&message.id=105471&query.id=402919#M105471
     Also tried setting computer to use single core in BIOS. Anybody got new ideas?? 
    Solved!
    Go to Solution.

    Hi bill_gilbert,
    Thanks for the post and I hope your well today!
    It seems you have followed some pretty good advice so far.
    Is it only this one subVI? 
    Have you tried re-compiling the subVI under LabVIEW 7.1.1? Best way to do this is Shifht+Control+RunArrow, or alteratively delete a wire, replace the wire and save the vi.
    Are you using a type def that was created in an older version of LabVIEW in this program?
    I have also read about a very similar issue which was casued by an error in user.lib because of an icon in the Tools library. When deleting dir.mnu the problem is solved.
    Please let me know what you think and if anything works,
    Kind Regards,
    James. 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Labview crashing

    Hi,
    I had installed tkafg3k driver and then decided to remove it. When I ran Labview, it will always crash, with the message "Labview.exe has encountered a problem.....". I'm not sure what to do, I've tried reinstalling the driver but did not change the situation.
    Will I have to reinstall? I'm quite reluctant to do that as I've got the NiScope-5102 card installed on it too.
    Fun

    Hi flai,
    I've tried to do some research on the NI Scope 5201.  Is this an oscilloscope hardware card, or is this the version of the driver you downloaded?
    The short answer would be, yes.  After completely reinstalling LabVIEW, you would want to reinstall any driver again.  Note that if you install the NI Device Driver cd, NI Scope is one of the drivers that you can install along with many of other common drivers (DAQmx, etc.)
    Kevin S.
    Applications Engineer
    National Instruments

  • Labview crash on lvdaq.dll

    Labview 7.1 crashes when dropping any Traditional Daq on diagram. Traditional daq version 7.3.
    Mass compile crashes when lvdaq.dll is displayed, have removed and reloaded traditional daq
    Any ideas ?
    thanks
    Mike

    Hi Mike,
    Thank you for posting to the NI Forums! I have searched out database and have not found any reported issues with Traditional DAQ causing LabVIEW 7.1 to crash. Traditional DAQ version 7.4.4 is the latest version that is compatible with LabVIEW 7.1 I would recommend upgrading to this version to see if this fixes the problem. Be sure to read the readme for this version of Traditional DAQ as there are some specific installation instructions. Hope this helps! Let me know!
    Regards,
    Margaret Barrett
    National Instruments
    Applications Engineer
    Digital Multimeters and LCR Meters

  • Labview 7 crashes when opening an earlier Labview version VI

    Hello guys. I am using Labview 7 professional edition. The labview crashes when opening an earlier labview version VI. The error message I'm getting is just "Labview has encounted a problem and eneds to close. We are sorry for the inconvenience." The VI contains a few Tag SubVIs, and It is written with an earlier version of Labview(BridgeView is what it was called).
    Do anyone have any ideas that how I can fix this bug? It's going to be a great help. Thank you very much.

    Hello,
    LabVIEW should not be crashing in this situation. Now, does this happen for other similar VIs too? It could be possible that a particular VI is corrupt. Also could you post your VI here so that I can try and reproduce the problem at my end.
    Regards,
    Chetan K
    Application Engineering
    National Instruments

  • Labview crashes when trying to add CLIP

    When trying to add component level IP into Labview FPGA the program crashes (non-gracefully) when performing the check syntax.
    Steps to reproduce
    Load Project (Happens with a new unsaved project as well).
    Under FPGA Target (<Any Device>) -> Properties -> Component-Level IP
    Select Create File
    Add any VHDL file (also used the DemoClipAdder.vhd from the High-Throughput Example)
    Choose User-defined IP
    Check Syntax
    As syntax is being checked, the following appears in the log :
       Built simulation executable x.exe
       Fuse Memory Usage: 136412 KB
       Fuse CPU Usage: 468 ms
    Labview hangs for a couple of seconds then crashes
    Alternatively :
    Load Project (Or create a new project)
    Under FPGA Target (<Any Device>) -> New -> VI
    In Block Diagram, add IP Integration Block
    Save VI
    Double click IP Block
    Add Synthesis File -> DemoClipAdder.vhd
    Check Syntax (Completes successfully in this flow)
    Generate
    The following is produced in the log:
       Built simulation executable x.exe
       Fuse Memory Usage: 136668 KB
       Fuse CPU Usage: 421 ms
    Labview Hangs for a couple of seconds then Crashes
    I have tested this multiple times with multiple projects and FPGA devices with the same result every time.

    Hi ThatOtherGuy
    I have followed the steps to try to reproduce your problem but I have not been able to reproduce the error. I used this link to create the file and used notepad to create the file.
    The Check sintax is successful and I do not get any error.
    Have you try to do this in a different computer?
    Which operating system do you have?
    Which version of LabVIEW and drivers are you using?
    Regards
    Esteban R.

  • LabVIEW IDE crashing!

    Hi there,
    I have just run into some very strange behaviour in LabVIEW (7.0 on Win2k with service pack 2).
    I have an event structure with several user events (about 12) listed in it. Everything was working fine yesterday. Today I tried to add another user event to the structure and LabVIEW crashed (giving usual cryptic error message saying referenced memory could not be read).
    Now, I have experimented quite a bit, and have the following observations to give:
    LabVIEW is happy adding more events until I try and add an event if the currently selected event is a Filter event (i.e Mouse Down?).
    I have a certain Mouse Down? filter event, and if I change this to a non-filtered Mouse Down event then LabVIEW lets me add more event cases as normal. However, I need this to be a filtered event (i.e with the "?"), and in this case, the next I try and add results in the LabVIEW IDE crashing. I can add more events as long as I dont have a filtered event case currently selected, so I suppose this is a work-around.
    To clarify, this occurs when I am trying to add events at design time, not at run time.
    I tried to replicate this in a new VI, and everything works fine as expected :-(
    I can't really attach the VI.
    Has anybody else noticed behaviour like this???
    nrp
    CLA

    hi there
    thanks for your suggestions
    >> A couple of suggestions:
    >>1. Try opening the VI on a different computer\LV version.
    >>2. Try copying all the code in the VI into another VI and see if this still happens.
    >>3. Start deleting pieces of the VI until it stops (or there is nothing left).
    I tried options 2 (same crash) and option 3 (crash stops when I delete the Filter events) before I posted the question.
    I have tried opening the VI on another PC (also Win2k) with the same version of LabVIEW and it also crashes.
    sigh...
    I suppose I am just going to have to work around it for now... strange bug...
    nrp
    CLA

Maybe you are looking for