LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab script node crashes Labview 0xc0000005

Hi All,

 

i'm facing a strange problem with Matlab script node. I'm using Labview 2019 and Matlab 2019b. A former colleague migrated the original code from older OS, Labview and Matlab version to win 10 and 2019 versions. Before this it was working perfectly. Unfortunately i cannot share the code at the moment.

In short: the whole Labview environment crashes and shut down. Sometimes i get a error message with the error code 0xc0000005.

Most of the time i don't even get an error message but i can see the error in the windows event viewer.

I have several Matlab nodes and it always crashes when the process reaches one of them. Sometimes the program works fine and it is not one specific node where it crashes. It is basically not predictable at which node it will crash.

If i disable all the matlab nodes the program runs fine without crashes. So i'm pretty sure that the problem is he matlab node but i don't know if it comes from the migration from an older version or if its something else.

I hope somebody has some ideas how to debug or tackle this problems.

 

Thanks in advance!

Eggord

0 Kudos
Message 1 of 5
(2,368 Views)

It's an unfortunate truth, but you won't get a lot of help if you can't post your code. My first thought would be that there is a call to a "now" deprecated function in MATLAB. Maybe make a blank VI with one of the MATLAB nodes in it and see if that crashes. If you can reproduce the crash in a VI that has nothing in it but a MATLAB node, you've at least isolated your issue to something about that node.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 2 of 5
(2,332 Views)

Hi Eggord,

There are many reasons for Application Error Code 0xC0000005 and here are the possible reasons after i googled the error:

srikrishnaNF_0-1594140087186.png

Is your matlab code present in the node is causing any of the above problems?

Since i cannot guess,atleast you need to post some code or explain what your code is doing

Regards,
Srikrishna


0 Kudos
Message 3 of 5
(2,310 Views)

@Redhawk92: I know it is gonna be difficult without code. But even with it would need extensive explanation to understand what the heck the code is doing. I was just hoping for a general trouble shooting like from srikrishnaNF.

 

@srikrishnaNF: Thank you i only googled it with labview as tag. I should have done it without. Most points are ok. Let's see if i can resolve the others.

 

It might be a general design problem of the program. But than i'm confused why it worked like charm with the older versions of OS, Labview an Matlab.

 
0 Kudos
Message 4 of 5
(2,256 Views)

Hi,

 

so we couldn't figure out the problem.

We ended up to kick out all Matlab code 🙂

Now its stable and working.

 

All the best,

Eggord

0 Kudos
Message 5 of 5
(2,166 Views)