LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

CCodegen Crash LV for ARM

Hi there,

 

A time ago I had made some code in LabVIEW for ARM.

when building the code for the target (lm3s8962, not important it doesn't depend on which target it is)

LabVIEW just closes (crash) when generating the C code. WITHOUT ANY POPUP OR SOMETHING.

(first reaction: huh, where's LabVIEW?)

 

after some investigation I managed to find at which point labview was closing. (looking in the application build folder). the generated source file was incomplete.

So I stripped the vi that was crashing the CcodeGen (C code generation module of LabVIEW for ARM), and so I have got a simple application that just crashes when I am trying to build it.

 

It is only when I select "Enable expression folding"

 

I am using LabVIEW for ARM 2010 on Windows 7.

 

Can somebody can reproduce it on his system?

I have attached the project to test it.

 

Can somebody (from NI) recover some crash information, and find the cause of this crash. 

I find it really bad that LabVIEW just closes without any notice.

The error must be in the CCodeGen of LabVIEW.

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 1 of 11
(6,733 Views)

Hello W0utje,

 

On my current system I cannot test the code. (No LabVIEW for ARM 2010 installed)

 

I didn't find a crash log in this post.

 

Can you upload the error log related to this crash?

http://digital.ni.com/public.nsf/allkb/7E9EBE4CA3B6DCE786257633005E7121?OpenDocument

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 11
(6,715 Views)

Hi Thierry,

 

Unfortunately the only thing I sometimes get after a crash is a recover files popup.

with the crash, LabVIEW just closes without any message.

 

So I don't have any crash logs.

 

Is there a way to force (crash) logging?

 

Regards,

 

Wouter

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 3 of 11
(6,713 Views)

Hello,

 

So if I understand correctly, then you also don't get a "Investigate Previous internal error" message when you restart LabVIEW?

Can you also check this folder "C:\Users\username\Documents\LabVIEW Data\lvfailurelog"

Please replace username by the actual username you're using when the crash occurs in LabVIEW.

Is this folder empty?

 

If you haven't changed the LabVIEW.ini file, then this error log should be produced.

Can you post your LabVIEW.ini file here?

It should be found in this location: "C:\Program Files (x86)\National Instruments\LabVIEW 2011"

Then I can take a look at it to see if certain things are enabled/disabled.

 

If it doesn't get produced, then you can also try the following steps:

http://digital.ni.com/public.nsf/allkb/4DFF0C6364BDBFA8862575F6005C3A48?OpenDocument

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 11
(6,709 Views)

Hi,

 

That's correct,

 

I have some crash files in the lvfailurelog but there are for other (older) crashes.

I haven't changed anything in the ini file.

 

thanks for the process manager, I've ran it during the crash and I have the logging of that in CSV. (see attached file)

 

Can you find something in the logging here?

 

Wouter

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 5 of 11
(6,705 Views)

Hello Wouter,

 

I wasn't able to get much information from this.

 

Can you check one extra thing for me?

Is the guard code generation turned off?

 

It should be turned off.

Otherwise expression folding will not work:

http://zone.ni.com/reference/en-XX/help/372459E-01/lvarmhelp/arm_expressfold_pat6/

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 6 of 11
(6,697 Views)

Yes,

 

Guard code generation is turned off.

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 7 of 11
(6,695 Views)

Hello,

 

Can you upload a MAX Report of your system?

This will allow me to further escalate this issue in the correct way:

http://digital.ni.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 8 of 11
(6,685 Views)

Here's the MAX report of my system.

I made it crash today, and that crash is visable in the report. (18-6)

 

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 9 of 11
(6,681 Views)

Hello,

 

Thanks for these files.

 

My apologies for the late reply, but I was Out of Office (quite severe sickness) last week.

 

I have been able to test it on a local system with LV 2011 and I seem to be able to reproduce the issue.

 

I'll create a Corrective Action Request about it with the reference number 361597.

 

I'll keep you updated about any new evolutions.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 10 of 11
(6,664 Views)