-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Running all the unit tests crashes brackets #3070
Comments
I'm experiencing something similar, but with the Integration tests, not the unit tests. OS: Mac OS X 10.8.2
Running the Integration tests again, I get 1 error in Live Development: "should translate urls to/from local paths" Not sure if this is similar to what your experiencing @WebsiteDeveloper. |
actually it was something different, for me but i can also repoduce the issue you described. Note: I have a virtual 8 core Intel Xeon 3.6GHz processor so it is very much processor load |
One thing to try is to make sure that you don't have any dev tools windows open if you're trying to run the full unit test suite. Having dev tools open seems to make things use up a bunch more memory and run a lot slower--normally not a problem for just one suite, but when you run them all together the memory usage seems to accumulate. |
i tried that out but still the window went grey when running all unit test suites |
@TuckerWhitehouse I have submitted a pull request to fix the "should translate urls to/from local paths" test, so that will be fixed soon. @WebsiteDeveloper Do you build brackets-shell locally or run the version from the previous build? I don't think there have been any changes yet to brackets-shell in Sprint 22, but there were a few changes in Sprint 21. Next try closing Chrome. Note that tests run a little faster if open a Chrome window with a single empty tab, but try it both ways. Definitely do not leave a Live Development connection open or have the Dev Tools open. Once you open the Jasmine Window, which tab are you on: Unit, Integration, or Extensions? I was just able to run the Integration and Extensions tests, but I did have a couple time outs in the Integration tests for Live Development. When the tests fail, how many Brackets windows do you have open? Sometimes a test will fail and leave a Brackets test window open that is "grey", but you can simply close those. If the tests are still failing when you run All, then try running each group of test one at a time to try to narrow down which test is causing the problem for you. Let us know your results. |
|
What happens if you run each set of test individually, one at a time? Which pass and which fail? Have you tried building brackets-shell locally? There are build scripts that make it easy. Do you have Visual Studio installed? If not you can download VS Express for free. Standard Windows response: try rebooting and trying again with no other apps open. |
all test pass, and i'll try building the shell and also rebooting. |
Also uninstall all extensions. |
Reviewed. @redmunds -- if it turns out there's a real bug here, please prioritize accordingly or let us know and we'll take it up in a future bug review. |
i can reproduce it most of the time with my own built shell, it seems that brackets crashes only if the FileSystemIO unit tests fail due to timeouts. |
I have seen the problem with Brackets windows graying out and needing to be force closed when running tests, but it was on Mac 10.8 and I was purposefully stress testing the system: I had Dev Tools open and a Live Dev session going when I started running the Integration tests. This sounds like it may be a resource deadlock, but that's a wild guess. Be sure to build brackets-shell using Release mode during normal usage (because Debug mode is really slow), but it might be worth trying a Debug build to see if it might be able to help figure out what's going wrong. |
i made sure that i'm using release mode, but i can still reproduce the issue, |
FYI, I hit this once on Mac 10.8 running tests under normal conditions. I think it was running All Integration tests. |
I trapped a case in debugger where Brackets went gray. Note that I was not running unit tests, I was paused in debugger: Uncaught Error: Load timeout for modules: thirdparty/jstree_pre1.0_fix_1/jquery.jstree, preferences/PreferencesDialogs, utils/StringUtils, utils/ViewUtils, utils/CollectionUtils, file/NativeFileError, i18n!nls/urls_unnormalized5, i18n, utils/KeyEvent, editor/Editor, editor/InlineTextEditor, language/HTMLUtils, editor/MultiRangeInlineEditor, text!base-config/keyboard.json_unnormalized6, editor/CodeHintList, thirdparty/jslint/jslint, widgets/StatusBar, widgets/ModalBar, utils/StringMatch, widgets/PopUpManager, text!base-config/keyboard.json, i18n!nls/strings_unnormalized7, text!htmlContent/update-dialog.html, text!htmlContent/update-list.html, preferences/PreferenceStorage, utils/TokenUtils, utils/BuildInfoUtils, text!htmlContent/about-dialog.html, text!htmlContent/contributors-list.html, LiveDevelopment/Documents/CSSDocument, LiveDevelopment/Documents/HTMLDocument, LiveDevelopment/Documents/JSDocument, LiveDevelopment/Agents/ConsoleAgent, LiveDevelopment/Agents/RemoteAgent, LiveDevelopment/Agents/NetworkAgent, LiveDevelopment/Agents/CSSAgent, LiveDevelopment/Agents/ScriptAgent, LiveDevelopment/Agents/HighlightAgent, LiveDevelopment/Agents/GotoAgent, LiveDevelopment/Agents/EditAgent, LiveDevelopment/Agents/DOMNode, LiveDevelopment/Agents/DOMHelpers |
In the past when we saw unit test crashes when running the full suite of tests, it was usually an out-of-memory error. Increasing memory usage also makes the process run slower, which could explain the console output Randy saw. As NJ mentioned, make doubly sure you don't have a dev tools tab open because that seems to make V8 use a lot more memory and makes unit test crashes much easier to hit. |
I made sure no other windows at all were open, but still Brackets crashes. |
Once you get into the state where preferences won't save, then manually delete your cache folder: https://github.com/adobe/brackets/wiki/Cache-Folder . |
yeah i already knew that as mentioned above. |
There is an easier way to restore the old preferences since the problem is that the local storage is still storing the tests key. What I do is open the Developer tools, go to the resources tab, go to Local Storage -> Local Files, and you need to delete the last entrance with the tests key. This saves you from clearing your cache if you want to keep your preferences. |
The preferences issue is #972. The simplest workaround to get unstuck from that state is to simply launch Brackets again and run any 'integration' test suite to completion. This essentially does automatically what Tom suggested. |
@redmunds closing this since it isn't reproduceable anymore. |
When i run the unit tests in the current master, brackets will crash.
Result:
Brackets stops working
Expected:
Just running all tests
The text was updated successfully, but these errors were encountered: