LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 8.0 Linux runtime crashing in PlotStripChart

Solved!
Go to solution

Just to follow up on this issue, we've investigated the crash, and determined that the UIR file was corrupt.  There was an invalid value for the Line Style of one of your traces that was causing problems in Linux that were being ignored in the Windows implementation.  To resolve the issue with your UIR, you should just need to modify the linestyles for all your traces in the UI Editor.  Change them to something different than they are currently, and then back to what you intend them to be.  That should resolve the issue for you.

 

NickB

National Instruments

0 Kudos
Message 11 of 28
(1,209 Views)

Thanks for confirming what I had speculated in the reply I marked as "solution".  Since most of the default attributes for this control had been tweaked, I cut and pasted a version of it from a UIR file in a different project that used a version of it.

 

--wally.

 

0 Kudos
Message 12 of 28
(1,204 Views)

Sorry, but this bug is biting me really hard right now. I've just wasted 2 full days tracking it down before I saw it here.

And the solution provided doesn't work (I saved as TUI and reloaded, I copy-pasted a Strip control from another working project...).

 

Isn't there a fix by now ? I'm using CVI 10 for Linux.

 

It's infuriating because it shows in only a very limited set of circumstances: 2 traces (but not 4) and negative values in the data and auto-scale axis and... And it doesn't crash the program, just make it hang in some inner loop of the RunUserInterface library so no single line appears to be the cause.

 

I you really need I can simply my project to make a sample case, but it's gonna take a while.

0 Kudos
Message 13 of 28
(1,121 Views)

My guess is that you're experiencing a different issue even if it's somewhat similar. We weren't entirely sure what caused the corrupted UIR that wally had, but on the off chance it was a CVI had corrupted the UIR somehow we eliminated that particular issue from occuring again (his UIR had a bogus value for line-style which is now being coerced so it won't crash in 2010).

 

If you could cobble something together a project for us to take a look at, it'd help us a great deal with figuring out what's going wrong for you.

Kevin B.
0 Kudos
Message 14 of 28
(1,103 Views)

Hello Kevin,

I spent some time simplifying my project to isolate the problem, but it went away...

So here's the complete project (actually only one .c is relevant). Make sure to read the README for the compilation command and the key to press to activate the problem.

Let me know what you find because I'm stuck for now.

Thanks

0 Kudos
Message 15 of 28
(1,096 Views)

Just a little extra info, I've changed the file /usr/local/natinst/cvi2010/bin/compile.ecc as such:

< C99_FLAGS = -std=gnu99
> C99_FLAGS = -std=c99
< Debug Opt = -ggdb
> Debug Opt = -g


0 Kudos
Message 16 of 28
(1,091 Views)

I'll have somebody here give it a look. Were you ever able to test this issue on Windows or was it strictly happening on Linux?

Kevin B.
0 Kudos
Message 17 of 28
(1,088 Views)
> I'll have somebody here give it a look. Were you ever able to test this
> issue on Windows or was it strictly happening on Linux?

Thanks.
Works fine on Windows.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 18 of 28
(1,082 Views)

Anybody had the time to look it up ?!?

0 Kudos
Message 19 of 28
(1,044 Views)

Hey Guillaume,

 

I had somebody with access to a Linux machine take a look at the code, and he initially had some issues getting it to plot anything. I looked at it on Windows and had to make some modifications to the source to get it to work there (the event logging was messing things up, at least on Windows, because the STDIO window was stealing the focus on every click/keypress on the panel). Once that was done it worked correctly, just like you said. I gave him some suggestions on what to try for Linux, but I think the e-mail might've gotten missed over the Holiday break. I've pinged him again, and hopefully we'll have some answers for you in a day or two.

 

I apologize for the delay.

Kevin B.
0 Kudos
Message 20 of 28
(1,038 Views)