Skip to content
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

Quickly switching between js files causes freezing. #13174

Open
core-ai-bot opened this issue Aug 31, 2021 · 11 comments
Open

Quickly switching between js files causes freezing. #13174

core-ai-bot opened this issue Aug 31, 2021 · 11 comments

Comments

@core-ai-bot
Copy link
Member

Issue by PabloK
Monday May 04, 2015 at 05:30 GMT
Originally opened as adobe/brackets#11046


Hi I'm using brackets on a high-end machine but a simple task such as switching quickly between js files in the GUI causes it to freeze. This seems to occur even for small js files. Eventually the GUI catches up but some times I have to wait for several minutes.

@core-ai-bot
Copy link
Member Author

Comment by PabloK
Monday May 04, 2015 at 05:31 GMT


I'm using brackets 1.3 on windows 8.1

@core-ai-bot
Copy link
Member Author

Comment by prafulVaishnav
Monday May 04, 2015 at 09:02 GMT


@PabloK Hii.. Are you facing this problem only with js files? Do these js files contain long lines (eg. minified js)? What is the size of the project opened (1> Right Click on folder opened in Brackets, go to Properties, what is shown in 'Contains :' 2> Or please run following command on Brackets Developer Tool console : require("project/ProjectManager").getAllFiles().done( function (fileLists) { console.log(fileLists.length); }); and check the number.

@core-ai-bot
Copy link
Member Author

Comment by PabloK
Monday May 04, 2015 at 09:27 GMT


Some files contain minified javascript but quickly pressing the files generated the same problem for short 100-200 row javascript files as well. I will aquire the information and return as soon as I can.

@core-ai-bot
Copy link
Member Author

Comment by PabloK
Monday May 04, 2015 at 16:11 GMT


54 files in the project. I have a minified copy of require js in the project and switching from that file to another js file causes the problem immediately.

@core-ai-bot
Copy link
Member Author

Comment by d-akara
Monday May 11, 2015 at 17:23 GMT


I'm seeing this as well. Freezing up to 30 seconds. But not just js files. HTML as well. I hadn't seen this prior to 1.3. Happens on both my Mac and Windows 8.1 machine. It doesn't always consistently happen. Haven't been able to identify exactly what types of files are causing this issue.
My cpu will be 100% during the file switching, and on windows I think the task that was taking 100% was something called brackets helper.

@core-ai-bot
Copy link
Member Author

Comment by PabloK
Monday May 11, 2015 at 20:07 GMT


I have win 8 aswell. My problems are exactly the same. 100% Cpu load and about 30s of freezing. Json files have the same problem as js and html. Do you have javascript in your html templates? Thinking it might be somthing with the highlightibg engine.

@core-ai-bot
Copy link
Member Author

Comment by d-akara
Wednesday Jun 03, 2015 at 20:02 GMT


I was able to resolve my issue by removing the Ternific extension.

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Wednesday Jun 03, 2015 at 20:26 GMT


@PabloK does removing the Ternific extension resolve your issue, too?

cc@MiguelCastillo

@core-ai-bot
Copy link
Member Author

Comment by PabloK
Thursday Jun 04, 2015 at 06:08 GMT


Is that an extension that comes with brackets? I only installed the theme extension. I have actually uninstalled brackets after this bug. because I could not open it without having it crash.

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Thursday Jun 04, 2015 at 18:02 GMT


Sorry to hear that!

No, it's not an extension that comes bundled with Brackets, so apparently it's not what caused the issue for you.

@core-ai-bot
Copy link
Member Author

Comment by MiguelCastillo
Thursday Jun 04, 2015 at 18:09 GMT


@dalekprime sorry for the inconvenience. Someone else had reported this issue with ternific and I have not had the chance to profile the code to find the issue. I will hopefully have some time this weekend.

To be perfectly clear though, ternific is only for JS. So if you are having performance issues with other file types, then I am not sure it would be ternific.

MiguelCastillo/Brackets-Ternific#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant