06-25-2012 11:51 AM
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...
Solved! Go to Solution.
06-25-2012 03:11 PM
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.
06-25-2012 04:49 PM
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.
06-26-2012 12:26 AM - edited 06-26-2012 12:27 AM
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.
06-26-2012 04:40 AM
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.
06-26-2012 09:51 AM
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:
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
06-26-2012 10:20 AM
Thanks for looking into it. Here's the file. Who's james ?!?
06-27-2012
02:07 PM
- last edited on
08-09-2024
04:31 PM
by
Content Cleaner
James is still around, but he works on TestStand these days ![]()
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
06-27-2012 03:37 PM
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.
06-28-2012 05:30 AM
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 ?