Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Windows: Getting 'Relaunch Chrome' dialog #1704

Closed
redmunds opened this issue Sep 23, 2012 · 26 comments
Closed

Windows: Getting 'Relaunch Chrome' dialog #1704

redmunds opened this issue Sep 23, 2012 · 26 comments
Assignees
Milestone

Comments

@redmunds
Copy link
Contributor

  1. Open an HTML page in Brackets
  2. Start Live Preview
  3. Switch to another file
  4. Repeat step 3 a few times

RESULTS:
On Win7, I am seeing the dialog that says "In order for Live Preview to connect, Chrome needs to be relaunched with remote debugging enabled."

I am not seeing this on Mac 10.6.

This seems to be much worse in Brackets (repo) than CC Branch (installer).

This seems to happen faster in Brackets if you select a non-HTML file between HTML files. Actually, it only seems to happen in CC Branch when you select non-HTML files.

EXPECTED:
I thought the 'Relaunch Chrome' was a Mac-only dialog.

I'm not sure that Live Preview would switching files as you switched files in Brackets is by design, so I'm not sure if this is a bug or a feature. Until recently, the pages used to change in same browser window, but now it seems to close and re-open browser window every time you switch files, so it's slower and not as smooth. Is that by design?

@peterflynn
Copy link
Member

I've seen this on Windows before when I initially start Live Preview, if the browser takes too long to open the tab -- there's some sort of timeout after which I guess we assume the browser refused to open the tab.

@gruehle
Copy link
Member

gruehle commented Sep 24, 2012

@pthiess was running into something similar. In his case, rebooting the machine fixed it.

@redmunds - Try having at least one tab open in Chrome before starting Live Development. That may help.with the close/re-open issue since it will only be a tab that is closing/re-opening and not a whole window. Auto-switching as you select HTML files is the expected behavior.

@pthiess
Copy link
Contributor

pthiess commented Sep 24, 2012

@gruehle Changing priority to medium since we see people running into it on the forum already.

@njx
Copy link
Contributor

njx commented Sep 26, 2012

Nominating for sprint 15

@foundationphp
Copy link

Randy, I'm getting this problem with both Brackets Sprint 14 and Edge Code on Windows 7.

My computer has two accounts: David (my main account) and V2B (which I use for recording videos for video2brain). I've recently been using the V2B account, and Live Preview has now stopped working on the David account. I tried uninstalling and reinstalling Chrome, but to no avail. Live Preview works fine in the V2B account, but not my main one.

The problem appears to be that Brackets and/or Chrome can't find the Chrome DLL when I'm logged into my main account. Here are some error messages from the Chrome debug.log in my David account:

[0926/120200:ERROR:client_util.cc(394)] Failed to load Chrome DLL from C:\Users\V2B\AppData\Local\Google\Chrome\Application\22.0.1229.79\chrome.dll

[0926/120200:ERROR:client_util.cc(442)] Could not find exported function RelaunchChromeBrowserWithNewCommandLineIfNeeded

@redmunds
Copy link
Contributor Author

Hi David,

The inability of Brackets or Edge Code to find Chrome is a different problem (that we thought we had fixed). Please file a new issue with this info. Also include the actual location of Chrome on that account.

Thanks,
Randy

@foundationphp
Copy link

Hi Randy,

Filed as Issue #1720. It looks as though Chrome updated itself to a new version in the main account, but Brackets is looking for chrome.dll in the second account.

@ghost ghost assigned redmunds Sep 26, 2012
@pthiess
Copy link
Contributor

pthiess commented Sep 26, 2012

Reviewed - assigning to Randy

@redmunds
Copy link
Contributor Author

redmunds commented Oct 9, 2012

@gruehle Your suggestion to have 1 other tab open in Chrome solves the problem. Is that all we need to do here? Should this be documented somewhere?

The only other change that we might want to make is to extend the timeout (or increase the number of tries) so there is less chance of user seeing that modal dialog. If so, we may want to limit this change to only Windows. Is that worth pursuing?

@gruehle
Copy link
Member

gruehle commented Oct 9, 2012

I'm still having trouble reproducing reliably. I have been able to reproduce a couple times, and in both cases the browser was clearly open for a while before getting the error message, so I'm not sure if extending the timeout or increasing the number of tries will fix anything.

I'm fine with adding this to the Troubleshooting wiki page, bumping this down to low priority and removing the Sprint 15 tag.

@redmunds
Copy link
Contributor Author

I added a comment to the Troubleshooting page (https://github.com/adobe/brackets/wiki/Troubleshooting). Keeping open and setting to Low priority for now. Removed Sprint 15 tag.

@nicodel
Copy link

nicodel commented Oct 22, 2012

Hello,

I am using Backets Sprint 15 on Windows 7 Entreprise, and I keep getting "Would you like to relaunch Chrome and enable remote debugging?".
I have tried to restart several times. I keep geting this message.
I tried to launch Brackets " as an administrator" ... same thing.

I launched the Develooper Tools and I get the following logs :

calling to close: 0 /D:/DEV/brackets-sprint-15/www/utils/NativeApp.js:78
called closing: 0 with err: 0 /D:/DEV/brackets-sprint-15/www/utils/NativeApp.js:80
Failed to load resource http://127.0.0.1:9222/json

I was using Windows XP until Brackets Sprint 14 and everything was fine.

Does somebody have an idea ?

Thanks in advance.

@redmunds
Copy link
Contributor Author

nicodel,

I think this has something to do with the fact that we updated our release of Chromium Embedded Framework in Sprint 15. Have you tried opening another tab in the Chrome window? That prevents Chrome from closing the entire window and re-opening a new one each time.

Regards,
Randy

@nicodel
Copy link

nicodel commented Oct 22, 2012

I tried to open a second tab, before the message appear in Brackets, but no luck it still happens. And typing the Relaunch button close Chrome (even with other tabs) and re-open it with only the index.html I have in Brackets.

@nicodel
Copy link

nicodel commented Oct 24, 2012

Hello,

I continued to experiment and I found something, that for me, seems weird. When I "link" an html file such as the index.html of reveal.js, I don't get the "Would you like to relaunch Chrome and enable remote debugging?" popup in Brackets. But when I "link" a very basic html file such as

<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8"/>
        <title>A tiny document</title>
    </head>
    <body>
        <h1>Main document heading</h1>
        <p>
            Bloody hell I am coding <abbr title="Hyper Text Markup Language">HTML</abbr>
        </p>
    </body>
</html>

I keep getting this popup every 30 seconds...
Any ideas??

@redmunds
Copy link
Contributor Author

I am not sure on exactly what you mean by "link an html file". Are you referring to the target file or the source file? Can you send the 2 files to me at redmunds@adobe.com so I can try them out?

I tried creating a file with the contents from above, and I am not seeing anything "popup every 30 seconds".

Also, opening another tab still provides a good work around for me, so maybe we're not talking about the same things. This is what I do:

  1. Open an html file in Brackets
  2. Click the Live Preview (lightning bolt) icon
  3. I do not have Chrome open, so it is started and the page opens with a Live Preview connection
  4. Chrome is now open with 1 tab. Next to that tab I click the "New tab" icon.
  5. I don't have a home page set so the second tab is blank
  6. In Brackets, click on another html file
  7. In Chrome, the first tab is closed, the empty tab becomes the first tab, new file is opened in a second tab

From that point I can quickly switch between files in Brackets. The first tab never closes, so the Chrome window never closes, and the second tab is closed and another tab is quickly opened in its place.

As I said, the second tab is a work around, so please send me the files so I can try to reproduce what you are seeing.

@nicodel
Copy link

nicodel commented Oct 25, 2012

I make you a video of what's happening and send you both archives.

Thanks

@nicodel
Copy link

nicodel commented Oct 26, 2012

Dear all,

I was finally able to find what was causing the Live Preview to be interrupt by a dialog after only a few seconds the icon was clicked.

It is because the html file was inside the Windows users directory (eg: C\Users\nicodel). When the same file is somewhere else, outside the Users directory, the Live Preview is not interrupted, and works fine.

So ... don't use the Windows Users directory to host your web app/page sources.

Just to be precise, I am using Windows 7 Entreprise SP1 and Brackets Sprint 15.

Regards

@redmunds
Copy link
Contributor Author

Due to recent changes to Chrome, this is now expected behavior on Windows, too. Closing.

@thulka
Copy link

thulka commented Apr 4, 2013

Windows 8, 64bit. Get these Chrome Relaunch message ever and ever, no trick helps. So, Live Preview does not work in any way here.

@nicodel
Copy link

nicodel commented Apr 4, 2013

@thulka Where is your html file ? Is it in your "user" directory, or in another Windows system directory ? It was what was causing theses annoying messages.

@redmunds
Copy link
Contributor Author

redmunds commented Apr 8, 2013

@thulka Due to changes in Chrome, the behavior has changed on Windows, so getting the Relaunch Chrome dialog (which was the original reason for this issue) is now valid on Windows. Please open a new issue.

Please include details about:

  • What version of Brackets? From installer or cloned repo?
  • Does this happen on all pages (e.g. Brackets Getting Started page) ?
  • What is the file path to your current "project"?
  • Are you using your own local server with a Live Preview Base Url?

@thulka
Copy link

thulka commented Apr 9, 2013

will do, thx

@0xE5CA
Copy link

0xE5CA commented Mar 13, 2014

Logging off, and back on, solved it for me.

It happenens only after standby something wierd with windows standby sleep.
I don't think it has anything todo with brackets ... rather it's a windows issue with the localhost involving standby mode.

@amazutti
Copy link

I had the same error. Start working when i start Brakets through "Run as administrator". (In Brackets Release 1.6 + Windows 7 + Chrome 48)

@ghost
Copy link

ghost commented Mar 14, 2018

Same error he on Microsoft Edge, Win10 x64bit, I have all latest updates on everything.

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

No branches or pull requests

10 participants