LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2021 SP1 (64 bit) crashes at Startup in Windows 11 Pro

I have installed LabVIEW 2021 SP1 (64 bit) with success. But when it is started it displays the splash screen (with the version of LabVIEW in the lower left corner) and dies after ~2 seconds. No error messages or popups or messages will be displayed and also no messages will be generated in the windows event viewer. However In the windows temp folder the file LabVIEW_64_21.0.1f1_Xxxx_cur.txt will be created with the following content:

 

####
#Date: Thu, May 19, 2022 16:15:21
#OSName: Windows 10 Pro
#OSVers: 6.2
#OSBuild: 9200
#AppName: LabVIEW
#Version: 21.0.1f1 64-bit
#AppKind: FDS
#AppModDate: 4/07/2022 19:33 GMT
#LabVIEW Base Address: 0x00007FF6D8C00000


InitExecSystem() call to GetCurrProcessNumProcessors() reports: 12 processors
InitExecSystem() call to GetNumProcessors() reports: 12 processors
InitExecSystem() will use: 12 processors
starting LabVIEW Execution System 2 Thread 0 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 1 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 2 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 3 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 4 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 5 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 6 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 7 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 8 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 9 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 10 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]
starting LabVIEW Execution System 2 Thread 11 , capacity: 24 at [3735814524.29291201, (16:15:24.292912007 2022:05:19)]

<DEBUG_OUTPUT>
2022-05-19 16:15:24.906
Crash 0x00000000: Crash caught by NIER
ExceptionCode: 0xC06D007E
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
ExceptionCode: 0xC06D007E
[ExecSys:none]minidump id: a7e278d3-5a2b-4542-99b4-5d5e16ad803b

</DEBUG_OUTPUT>

0x00007FFA790C169C - ??????e <unknown> + 0
0x00007FFA790C5976 - ??????e <unknown> + 0
0x00007FFA96EE54E0 - ???? <unknown> + 0
0x00007FFA97EC485B - ??l <unknown> + 0

 

Any idea how to solve this issue ?

 

I have reinstalled LabVIEW 2021 SP1 (64 bit) twice.

LabVIEW 2021 SP1 (32 bit) and all other installed 32 bit LabVIEW versions are working fine.

Also LabVIEW 2020 SP1 (64 bit) and LabVIEW 2019 SP1 (64 bit) have the same issue (a crash of LabVIEW.exe at startup).

LabVIEW 2015 SP1 (64 bit) is however working fine.

 

Kind regards, Ekim

0 Kudos
Message 1 of 11
(3,125 Views)

LabVIEW does not officially support Windows 11 yet.  They are targeting 2nd half of 2022.

https://www.ni.com/en-us/shop/software-portfolio/platform-roadmap.html

 

A little more discussion:

https://forums.ni.com/t5/NI-Package-Manager-NIPM/Does-LabVIEW-software-support-on-windows-11/td-p/41...

 

Rodney

0 Kudos
Message 2 of 11
(3,108 Views)

@Ekim wrote:

 

I have reinstalled LabVIEW 2021 SP1 (64 bit) twice.

LabVIEW 2021 SP1 (32 bit) and all other installed 32 bit LabVIEW versions are working fine.

Also LabVIEW 2020 SP1 (64 bit) and LabVIEW 2019 SP1 (64 bit) have the same issue (a crash of LabVIEW.exe at startup).

LabVIEW 2015 SP1 (64 bit) is however working fine.


It seems your machine has quite a lot of processor cores. And something during initialization of the threads fails. LabVIEW allocates on startup a number of threads per execution system. This number depends on the number of processor cores it detects.

 

Something in Windows 11 seems to fail when trying to allocate more threads than there are cores. The fact that LabVIEW 2015 seems to work is likely that it used a lower maximum limit of threads to allocate. As stated, LabVIEW 2021 and earlier are not officially supporting Windows 11. It usually works but there are corner cases where something can go wrong and this seems to be one of them.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 11
(3,079 Views)

Thanks for the answers.

 

Rolf do you think if it is possible to limit the number of threads that LabVIEW uses during startup ?

 

I don't know it that solves the issue but I like to try it.

 

By the way the processor of the PC is an Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz with 6 Hyper-Threaded cores.

 

Kind regards, Ekim

0 Kudos
Message 4 of 11
(3,069 Views)

Maybe try in an admin-elevated CLI:

 

start /affinity 1 program.exe 

 

as per the 2nd answer in:

https://superuser.com/questions/309617/how-to-limit-a-process-to-a-single-cpu-core

(interestingly, the number is a processor mask, so "2" isn't 2 processors but using only the 2nd processor...)

 

This is not likely a valid solution for you, but possibly use a VirtualBox VM with the number of processors set in the system settings?

 

Rodney

0 Kudos
Message 5 of 11
(3,058 Views)

There is a threadconfig utility in LabVIEW described in this Knowledgebase article. Of course running this while LabVIEW crashes on startup is a bit of a problem. But all that VI basically does is to change entries in your labview.ini file that specifies the number of threads to to startup on launch of LabVIEW and you have to restart LabVIEW after running that utility to make the changes work.

 

Basically you would add something like this in your LabVIEW.ini file:

ESys.StdNParallel=2

This changes globally all execution systems to only allocate 2 threads per priority level.

 

ESys.StdNParallel=-1
ESys.Bgrnd=2
ESys.Normal=2
ESys.High=2
ESys.VHigh=2
ESys.TCritical=2
ESys.instrument.Bgrnd=2
ESys.instrument.Normal=2
ESys.instrument.High=2
ESys.instrument.VHigh=2
ESys.instrument.TCritical=2
ESys.DAQ.Bgrnd=2
ESys.DAQ.Normal=2
ESys.DAQ.High=2
ESys.DAQ.VHigh=2
ESys.DAQ.TCritical=2
ESys.other1.Bgrnd=2
ESys.other1.Normal=2
ESys.other1.High=2
ESys.other1.VHigh=2
ESys.other1.TCritical=2
ESys.other2.Bgrnd=2
ESys.other2.Normal=2
ESys.other2.High=2
ESys.other2.VHigh=2
ESys.other2.TCritical=2

In this way you can control the number of threads per execution system and priority individually.

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 11
(3,028 Views)

Rolf thanks for the answer. Because LabVIEW 2021 (x64) crashes at startup I was thinking of manual editing the LabVIEW.ini file. But I could not find the file. However I was able to use the threadconfig.vi in the 32 bit version of LabVIEW 2021. It works but because the 32 bit version was working anyway it was a more or less useless operation.

 

I discovered now that LabVIEW 2021 (x86) is starting by default 25 x 12 (processors) = 300 threads ! And I was always thinking that having 10 threads in a process was much...

 

Kind regards, Ekim

0 Kudos
Message 7 of 11
(3,000 Views)

What do you mean that that ini file doesn't exist? That is almost impossible. 😀

Although maybe LabVIEW installs indeed without one. The first thing I always do after any installation is going into the Options and disabling some annoying features such as Lock Autotool etc.

 

You should be able to simply copy the ini file from your 32-bit installation into the 64-bit LabVIEW folder and remove anything that does not relate to the thread configuration and then lets see if it still crashes with less threads.

 

LabVIEW actually is started up by the OS with one thread active (obviously as it needs to have a thread to do anything) and then generates the execution system threads. So you end up with 301 threads for LabVIEW.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 11
(2,993 Views)

I searched my hole PC for LabVIEW.ini files and I found them for all working LabVIEW versions (x86 and x64) but not for LabVIEW 2019 (x64), 2020 (x64) and 2021 (x64) (all 3 are crashing during startup).

 

So I copied the LabVIEW.ini file from LabVIEW 2021 (x86) to LabVIEW 2021 (x64) and changed the max threads to 2. According to the log file the number of threads started is now 25 x 2 = 50 but LabVIEW is still crashing. See log file below:

 

####
#Date: Mon, May 23, 2022 12:01:08
#OSName: Windows 10 Pro
#OSVers: 6.2
#OSBuild: 9200
#AppName: LabVIEW
#Version: 21.0.1f1 64-bit
#AppKind: FDS
#AppModDate: 4/07/2022 19:33 GMT
#LabVIEW Base Address: 0x00007FF6BAC50000


InitExecSystem() call to GetCurrProcessNumProcessors() reports: 12 processors
InitExecSystem() call to GetNumProcessors() reports: 12 processors
InitExecSystem() will use: 12 processors
starting LabVIEW Execution System 2 Thread 0 , capacity: 24 at [3736144871.29906082, (12:01:11.299060822 2022:05:23)]
starting LabVIEW Execution System 2 Thread 1 , capacity: 24 at [3736144871.29906082, (12:01:11.299060822 2022:05:23)]

<DEBUG_OUTPUT>
2022-05-23 12:01:11.909
Crash 0x00000000: Crash caught by NIER
ExceptionCode: 0xC06D007E
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
ExceptionCode: 0xC06D007E
[ExecSys:none]minidump id: c42a6526-e8bf-405f-a72d-7164fab2222f

</DEBUG_OUTPUT>

0x00007FFEBA91169C - ??????e <unknown> + 0
0x00007FFEBA915976 - ??????e <unknown> + 0
0x00007FFED86754E0 - ???? <unknown> + 0
0x00007FFED94C485B - ??l <unknown> + 0

 

 

0 Kudos
Message 9 of 11
(2,987 Views)

Hmmm, bummer. It seems to crash after the initialization of the threads. There is a lot involved during LabVIEW startup including detecting what kind of CPU it runs on and a lot more such things. Some of that stuff is pretty delicate and there may be something that it tries to do that is now protected in some ways under Windows 11 and simply returns a NULL value if the application tries to do that or is not elevated.

 

Have you tried to start LabVIEW elevated? (Start as Administrator)

Other possibilities might be to try to play with the startup options for the LabVIEW executable file and try some of the legacy emulation options.

Rolf Kalbermatter
My Blog
0 Kudos
Message 10 of 11
(2,959 Views)