-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"unrecoverable error" when running RunnerTests & SampleTests #28
Comments
Hi @vinnividivicci. That error usually happens if an addin that you are attempting to use during testing is not available. There is one good way to check. When this error pops up, find the log file for the running session of Revit, which will be located in RTF's working directory. That log file will tell you what went wrong. The log file is located in RTF's working directory because when running Revit with journals, the logs are written to the same location as the journal file. You have to look at the log file before you dismiss this warning because RTF will cleanup the log file after the test is finished. Also, when running in journal mode, Revit will not automatically initialize all the addins on your machine. It will only initialize the ones that have .addin files in the same folder as the journal. For this reason, RTF copies over all of your .addin files to its working directory at run-time to simulate the same revit environment which you would have if you were running Revit normally. |
@ikeough Thanks for the thorough explanation, I got it working now. In my case the Add-ins that were causing the issues were Add-ins that had DLLs in the same folder as the .addin file, and since those folders don't get copied automatically, it was crashing... So I've got 2 suggestions (which I'm willing to code myself and add to the repository):
I'm really interested in improving RTF since I really think Revit and Revit Add-ins need to use TDD more 😄 |
@vinnividivicci Good to hear you got it working. What kind of dlls do you have in the addins folder? I've never seen dlls in the addins folder so I didn't think to copy them over. I think copying everything over is probably OK so long as you keep track and cleanup. There's already a lot of stuff to cleanup. I'm wondering if we don't want to make a temp folder and copy everything into that folder and run from there. Then it's just disposing of one folder. |
@ikeough That might be a cleaner solution moving forward. However... There is additional complexity to this problem... Some .addin files point to DLLs in relative paths that are outside of the Examples:
So I'm thinking it may just be simpler to not support Add-ins who's DLL path starts with BTW, is there a best-practice guide out there about where to put Add-in DLLs? It seems to me like dumping them in the |
When running the RunnerTests using a compiled-from-source version of the RevitTestFrameworkGUI.exe I keep getting this error (running everything from 2015 branch and targeting revit 2015):
"An unrecoverable error has occurred"
I'm baffled because compilation runs fine...
The text was updated successfully, but these errors were encountered: