You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Crash / Entire window goes blank - in projects using IonicΒ #7262
I'm running sprint 37 on Mac OS X 10.9.2 . The entire Brackets window goes blank eventually, and at that point I'm not able to even quit the application, must Force Quit in Finder.
Ack, that's terrible. Next time it happens, can you try (from Chrome) going to localhost:9234, click on the "Brackets" link if there is one, and see if there are any errors in the console?
@redmunds sorry I don't quite follow. Right now I have Sprint 36 and Sprint 37 separately in my Applications folder (this is Mac OS X). Is that what I want?
We've heard reports of this problem, although it's rare and it has been a while, but since it's so nasty we'd love to try to nail this down. Can you provide a set of reproducible steps that makes it happen every time? That would help us to track it down. Thanks.
Also, see if you can reproduce it with no extensions installed. You can use Debug > Reload Without Extensions to quickly run without extensions (and restarting Brackets returns to loading of extensions). If that eliminates problem, then try to isolate which extension is causing problem.
Yikes. Just crashed again, this time with extensions disabled. Chrome gave the same "Inspected target has crashed. Once it reloads we will attach to it automatically." msg.
Still working on reproducible steps but right now it seems like
OK I'm getting it to crash pretty consistently. I'm thinking it's this particular javascript file I'm working in. Confirmed that there is no useful information coming up in the Chrome dev console.
I'm gonna try to isolate if there's a particular part of the code in this file that's causing the problem.
I forgot to mention is that if you don't do the ionic build ios I wasn't readily able to repro the Brackets' black sreen hang. what that does is copy Ionic's problematic JS file to a directory under in Cordova-created XCode project. (ionic build ios appears to be just a shim around the standard cordova command line tool used to build an iOS PhoneGap project.) In other words, there are two copies in the directory tree, which may not be good for Tern, and I wasn't sure if that affected the fix for this.
Since I normally don't use Ionic and the .jscodehints workaround above worked, this issue isn't a big deal to me.
But since I've been following this wanted to at least add the detail since the fix (#7739) appears to be excluding file and wasn't sure which copy was going to be excluded. For the problematic ionic sample, I have the following files:
@shafdog good point. The problem I was running into on Windows was I couldn't get the ionic platform ios command to complete successfully. There was a problem with installing cordova ios that I don't fully understand.
@shafdog I'll need to re-test my fix. When I switched from regex to glob for the new preference, I inadvertently dropped ionic.bundle.js, only getting the .min.js files. Thanks for mentioning that. I'm going to reopen this bug in the meantime.
OK, I just retested with the code in master and the project works fine, so it appears that it was the minified files and not the bundle.js file that caused the issue.
In addition to widen/fine-uploader which I've mentioned before, I've just nailed down another library which causes this problem: crypto-js hosted on Google Code.
Activity
boozedog commentedon Mar 20, 2014
Switching back to sprint 36 in the meantime. Very weird!
njx commentedon Mar 20, 2014
Ack, that's terrible. Next time it happens, can you try (from Chrome) going to
localhost:9234, click on the "Brackets" link if there is one, and see if there are any errors in the console?boozedog commentedon Mar 20, 2014
Sure I'll install 37 side-by-side with 36 and share what I find ...
redmunds commentedon Mar 20, 2014
@boozedog
To do this, install Sprint 36, then make a copy of the entire Brackets install folder, then install Sprint 37 (which installs over Brackets folder).
boozedog commentedon Mar 20, 2014
@redmunds sorry I don't quite follow. Right now I have Sprint 36 and Sprint 37 separately in my Applications folder (this is Mac OS X). Is that what I want?
boozedog commentedon Mar 20, 2014
BTW just noticed some of my extensions were out of date. I've updated them, let's see if that solves it. Will post any failures here.
redmunds commentedon Mar 20, 2014
That's perfect. I missed that you were on Mac.
boozedog commentedon Mar 20, 2014
OK this is weird. Screen went blank, then I went to
http://localhost:9234/in Chrome, and I get webpage not available?!redmunds commentedon Mar 20, 2014
We've heard reports of this problem, although it's rare and it has been a while, but since it's so nasty we'd love to try to nail this down. Can you provide a set of reproducible steps that makes it happen every time? That would help us to track it down. Thanks.
redmunds commentedon Mar 20, 2014
Also, see if you can reproduce it with no extensions installed. You can use Debug > Reload Without Extensions to quickly run without extensions (and restarting Brackets returns to loading of extensions). If that eliminates problem, then try to isolate which extension is causing problem.
boozedog commentedon Mar 20, 2014
Just crashed again. Had Chrome dev running at the time and it says "Inspected target has crashed. Once it reloads we will attach to it automatically."
Will try with no ext.
This is sprint 37.
boozedog commentedon Mar 20, 2014
Yikes. Just crashed again, this time with extensions disabled. Chrome gave the same "Inspected target has crashed. Once it reloads we will attach to it automatically." msg.
Still working on reproducible steps but right now it seems like
boozedog commentedon Mar 20, 2014
OK I'm getting it to crash pretty consistently. I'm thinking it's this particular javascript file I'm working in. Confirmed that there is no useful information coming up in the Chrome dev console.
I'm gonna try to isolate if there's a particular part of the code in this file that's causing the problem.
redmunds commentedon Mar 20, 2014
What version of Chrome are you running? Switch to stable if you are running something else.
boozedog commentedon Mar 20, 2014
Version 33.0.1750.152 (stable).
I do have Chromium installed as well ...
37 remaining items
dangoor commentedon May 6, 2014
This is now fixed in master by automatically ignoring the minified Ionic files.
shafdog commentedon May 6, 2014
I forgot to mention is that if you don't do the
ionic build iosI wasn't readily able to repro the Brackets' black sreen hang. what that does is copy Ionic's problematic JS file to a directory under in Cordova-created XCode project. (ionic build iosappears to be just a shim around the standardcordovacommand line tool used to build an iOS PhoneGap project.) In other words, there are two copies in the directory tree, which may not be good for Tern, and I wasn't sure if that affected the fix for this.Since I normally don't use Ionic and the
.jscodehintsworkaround above worked, this issue isn't a big deal to me.But since I've been following this wanted to at least add the detail since the fix (#7739) appears to be excluding file and wasn't sure which copy was going to be excluded. For the problematic ionic sample, I have the following files:
In #7739 @JeffryBooher said "I was able to reproduce this eventually with the steps listed in the issue on Mac but the steps don't work on Windows.".
Without a Mac and Xcode, there also would not be multiple copies of the same complex Ionic JS file within the project as well.
JeffryBooher commentedon May 6, 2014
@shafdog good point. The problem I was running into on Windows was I couldn't get the
ionic platform ioscommand to complete successfully. There was a problem with installingcordova iosthat I don't fully understand.dangoor commentedon May 6, 2014
@shafdog I'll need to re-test my fix. When I switched from regex to glob for the new preference, I inadvertently dropped ionic.bundle.js, only getting the .min.js files. Thanks for mentioning that. I'm going to reopen this bug in the meantime.
dangoor commentedon May 6, 2014
OK, I just retested with the code in master and the project works fine, so it appears that it was the minified files and not the bundle.js file that caused the issue.
tomek-he-him commentedon Jul 4, 2014
In addition to widen/fine-uploader which I've mentioned before, I've just nailed down another library which causes this problem: crypto-js hosted on Google Code.
redmunds commentedon Jul 4, 2014
@tomekwi Thanks for the info. We made a change in Release 0.41 which should prevent Brackets from crashing -- have you tried it with 0.41?
tomek-he-him commentedon Jul 4, 2014
Thank you. Next week I'll have an opportunity to test it, I'll let you know.
gabe-cabral commentedon Sep 24, 2014
Same here for Firefox and Ubuntu...
LucasBadico commentedon Nov 19, 2016
Hey Guys, It is happening with me now.
Release 1.8 build 1.8.0-17108 (alf_localization_release_1.8 3af64fa)
build timestamp: Wed Nov 02 2016 04:47:30 GMT-0700
Just today crash 5 times. I work from a mac, El captain OS. This start right after the atualization for 1.8
standinga commentedon Jan 24, 2017
I have the same problem OSX 10.11.6, Ionic 2.1.18. Brackets 1.8.0-17108