-
Notifications
You must be signed in to change notification settings - Fork 25
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
An open DView instance will prevent new eplusout.sql from being written #56
Comments
I linked the OS one here too: #40 Thanks for looking into this! |
No worries @eringold. Just FYI, we are now putting tickets for PAT, DView, server, etc in their respective GitHub repos. If you are getting a lot of emails about moving tickets, it's because of this new approach. THanks, Evan. |
@evanweaver No problem; Dan advised to put an issue in both, so that's what I did. FYI I dug into this a little when I first opened the issue, and found this difference in how DView opens the SQLite database file here: wex/src/dview/dvfilereader.cpp Line 995 in 16b812b
https://github.com/jasondegraw/ResultsViewer/blob/60cdea41668cabd06a397f6516498abbae0f2a77/src/SqlFile.hpp#L113 . Perhaps the use of the flag SQLITE_OPEN_READONLY (vs SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE) could be causing the problem? |
@eringold thanks for the legwork! |
I just tried that on Ubuntu 16.04 with DView (wxWidgets 3.1.1) Version Mar 21 2018. The line @eringold pointed to is still the same in current develop, so this might be a platform-specific problem. |
From @eringold on November 14, 2017 21:38
Steps to replicate:
From a practitioner POV, model troubleshooting sometimes involves repeatedly running simulations and comparing results. This was easy with ResultsViewer, where old results would be retained while new ones could be examined side-by-side in a new instance. A DView instance which locks the sql file from being over-written makes this process much more difficult. Additionally, the OS Results measure will show updated results, but other measures that rely on the project folder eplusout.sql will be returning out of date results.
Copied from original issue: NREL/OpenStudio#2845
The text was updated successfully, but these errors were encountered: