LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open user interface resource file

Solved!
Go to solution

Hello all,

I have to do some maintenance on a project from 2000 (don't remember what version of CVI it was). I have 10 UIR files in the project and all open up fine in the IDE, except one. I get the following message: "unable to open user interface resource file Pnl_Main.uir (unexpectedly reached end of file)"

 

I've checked all my backup and they are all identical, so if there is a file corruption, it's pretty old.

Anyway here's the file, in case someone can tell me what is wrong with it, or maybe open and resave with an older CVI in case it's just a version problem...

0 Kudos
Message 1 of 13
(6,020 Views)

I was able to open it with CVI 2009.  No errors reported.  I re-saved the UIR under CVI 7.1.  Hope that fixes it for you.

0 Kudos
Message 2 of 13
(6,016 Views)

Thanks but no luck: same error message. For what it's worth I have CVI 10.0.1 (434)...

Any chance you could save it as .tui ? Thanks.

0 Kudos
Message 3 of 13
(6,013 Views)

Hi,

 

something might be wrong with your installation - I could open both files, your original and the one converted by pinball, without problems using CVI 2010. Attached is the converted text file.

0 Kudos
Message 4 of 13
(6,009 Views)

I have CVI 2010 installed on another machine and I just tried reading my original uir without success as well.

I can load your .tui fine, thanks. But when I try to save it as a .uir, I get a message "Unable to save user interface resource file S:\Panel.uir (Badly formed pathname)"

 

S:\ is a mounted share (My CVIs are in a VirtualBox virtual XP)...

 

So I tried moving the original UIR file into a directory local to the virtual XP... and miracle it works.

 

So let me file a new bug report: this UIR file cannot be opened from a shared drive. But I have no problem with other files. The differences I see are:

- this file has a menu bar

- this file contains pictures

 

As a workaround I'll just copy my entire project to my local virtual XP.

0 Kudos
Message 5 of 13
(6,003 Views)

Guillaume,

 

I still haven't been able to reproduce this problem. If you have a couple of minutes, would you mind running the following application, to create some logging for this error: C:\Program Files\National Instruments\CVI2010\bin\ConfigCVILogging.exe.

 

You'll see the following panel displayed:

 

logger.png

 

Specify an output file, check both the Error and Warning boxes, and hit Apply. Then, restart CVI and attempt to load the .uir again. Then, exit CVI and look for the log file.

 

If you don't mind attaching the file here, that might give us a clue as to why this is failing for you.

 

Luis

0 Kudos
Message 6 of 13
(5,989 Views)

Thanks for looking into it. Here's the file. Who's james ?!?

0 Kudos
Message 7 of 13
(5,984 Views)

James is still around, but he works on TestStand these days Smiley Happy

 

Well... unfortunately, I didn't learn a whole lot from the log. I could  see that at some point CVI encounters an EOF when reading this UIR, ([17:17:23.604] entry) but unfortunately, I have no idea why. The log is kind of sparse, unfortunately. And up until that point, everything seems normal.

 

I know that in the past you reported a weird problem when saving a file to a VirtualBox share, but that bug was fixed in 2010 SP1, which you're already using (I'm assuming that you also saved the file using 2010 SP1, correct?). So, it's probably not the same exact problem, but it might be something similar. Unfortunately, we can't reproduce this problem here, so we might not be able to do a whole lot more with this.

 

Let us know if, at some point, your workaround becomes untenable, at which point we can try some more involved troubleshooting steps.

 

Luis

 

 

0 Kudos
Message 8 of 13
(5,957 Views)

OK, thanks. The workaround is OK (working on files locally in the VM). I'd rather you spent time fixing evil bug #344028. If it was the truncation bug I previously reported, other people would get the problem trying to open my UIR file. And this file is the original last saved in... 2000, so nothing to do with VirtualBox.

0 Kudos
Message 9 of 13
(5,947 Views)

BTW, looking at the debug log, I see errors about the real-time and the profiler licenses. I don't use the real-time, but I tried to use the profiler last year and it kept crashing, maybe that was the reason. How come my license isn't working ? In the license manager I have full development system activated, and also have a tab for Toolkits/Profiler Toolkit 1.0 which is activated. So how come the log complains ?

0 Kudos
Message 10 of 13
(5,933 Views)