FATAL:http_util.cc(61)] Check failed: url.is_valid() &&
(url.SchemeIsHTTPOrHTTPS() || url.SchemeIs("ftp") ||
url.SchemeIsWSOrWSS()).
I have tried opening Chromium in the following two ways, in both cases the crash still happens:
chromium/src/out/Default/Chromium.app/Contents/MacOS/Chromium --usr-data-dir=/tmpopen ./chromium/src/out/Default/Chromium.appMaybe you were just unlucky when you synced. Have you tried syncing again?Also try `out/gn/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp` to run with a clear user data dir, to check if it's due to extensions.On Sun, Jan 29, 2017 at 11:14 AM, Bobo <the....@gmail.com> wrote:BoboAny idea what is wrong?This is the args.gn file I used:When I try to play video from youtube it plays for a second and then crashes.When I opened Chromium for the first time I noticed that it tried to connect to fansshare.com, which I found very odd. I don't think I've ever heard of that site before.Here's what the last few lines of the build output look like:Hi All,(cc: Nico)Updated my OSX build script (https://github.com/the-bobo/easychromium/) to use GN instead of GYP, successfully built, but the build is extremely unstable, with the browser crashing without any warning.
[27402/27407] COPY_BUNDLE_DATA 'Chromium Framework.framework' 'Chromium.app/Contents/Versions/56.0.2924.76/Chromium Framework.framework'
[27403/27407] CC obj/chrome/chrome_app_executable/chrome_exe_main_mac.o
[27404/27407] LINK obj/chrome/chrome_app_executable/Chromium
[27405/27407] COPY_BUNDLE_DATA obj/chrome/chrome_app_executable/Chromium Chromium.app/Contents/MacOS/Chromium
[27406/27407] STAMP obj/chrome/chrome_app.stamp
[27407/27407] STAMP obj/chrome/chrome.stamp
It also tries to connect to eff.map.fastly.net, and chromium-i18n.appspot.com. I'm guessing the eff.map.fastly.net request is related to the HTTPS Everywhere extension. Not sure about fansshare.com and chromium-i18n.appspot.com, though the latter looks related to some kind of Chromium internationalization stuff.
symbol_level=1
enable_stripping=true
ffmpeg_branding="Chrome"
proprietary_codecs=1
is_official_build=true(Latest code here: https://github.com/the-bobo/easychromium/ - you can ignore lines 229-234, I was debugging a change directory failure before I realized GYP was deprecated)Thanks,On Sun, Dec 4, 2016 at 6:52 PM, Bobo <the....@gmail.com> wrote:No worries - actually what happens for me is my script checks out a new branch specific to the TARGET version it will be building. So in that new git branch there is no out/Release folder.Finishing up some other work at the moment, but will post back with results as I update my script to use GN.On Sun, Dec 4, 2016 at 6:39 PM, Nico Weber <tha...@chromium.org> wrote:I'm guessing your build deletes out/? DEPS no longer contains a hook to call build/gyp_chromium; our bots later call `gn gen` in a separate step. I suppose we could've added a hook that checks if out/Release or out/Debug exist, and if not, run `gn gen` twice to create those two (with is_debug=false for Release). That would've made the transition easier. I'm not sure that it's still worth doing though, not that most people are on gn already and have adopted the new way of generating build dirs already.On Sun, Dec 4, 2016 at 6:07 PM, Bobo <the....@gmail.com> wrote:BoboI imagine this is because GYP is no longer building a build directory for ninja to use. Would it be possible for a more descriptive error message to hint that the root cause might be moving from GYP to GN? Not sure if that should go in some GYP runhooks subroutine or here in ninja when the chdir fails and throws a fatal error.Thanks Nico - will be trying this once I get xcode upgraded. Can't believe how quick and awesome the help is in this community!FYI, it would have been nice to see a more descriptive error message. My build just started failing with:
ninja: fatal: chdir to 'out/Release' - No such file or directory
ninja: Entering directory `out/Release'I realize this might not be desirable - I'm sure there are other ways to cause a fatal chdir error in ninja.Thanks,On Sun, Dec 4, 2016 at 5:41 PM, Nico Weber <tha...@chromium.org> wrote:1) Yes, args.gn is the best replacement. `gn args out/foo` just opens out/foo/args.gn in $EDITOR and then runs`gn gen out/foo`; if you want you can do those two steps separately (say, if you don't have $EDITOR set to your favorite editor). (Besides args.gn, there's also --args, so instead of putting e.g. "is_debug = false" in args.gn, you could also run `gn gen "--args=is_debug = false" out/foo`, but args.gn is more convenient.)2) It's just a newline-separated list of "lhs = rhs" assignments. lhs are config vars, rhs are values. See `gn help buildargs` (doesn't require Xcode)3) We used to have a conversion cookbook, looks like it got deleted recently though. You can see it here: https://chromium.googlesource.com/chromium/src/tools/gn/+/5924882f31dcc5ae2197beb1dd804b322f83f4c9%5E%21/#F1From there:fastbuild=1 => symbol_level=1mac_strip_release=1 => enable_stripping=true (but this is enabled by default in official builds, so you don't need to explicitly pass this)ffmpeg_branding=Chrome => ffmpeg_branding="Chrome" (not mentioned in the cookbook; found via cs at https://cs.chromium.org/chromium/src/third_party/ffmpeg/ffmpeg_options.gni?q=ffmpeg_branding&sq=package:chromium&l=11&dr=C)proprietary_codecs=1 => I think this is already implied by ffmpeg_branding="Chrome" now, but I'm not surebuildtype=Official => is_official_build=trueGood luck!On Sun, Dec 4, 2016 at 5:27 PM, Bobo B. <the....@gmail.com> wrote:Hello,--
I have a script that builds Chromium from source on OS X. I'd like to update from GYP to GN.
I have a line in the script that does the following:export GYP_DEFINES="fastbuild=1 mac_strip_release=1 ffmpeg_branding=Chrome proprietary_codecs=1 buildtype=Official"
What is the equivalent method for accomplishing this with gn?
I understand I'll need to:cd src
gn gen out/foo
ninja -C out/foo chrome
to generate a gn build directory and kick the build off, but am not sure how to convert my GYP_DEFINES into gn arguments. I'm waiting to update Xcode right now so can't runto see what is available.gn args out/foo --list
I've tried looking at https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md and https://www.chromium.org/developers/gn-build-configuration but did not find what I was looking for. I think I need to learn:
1) What GN uses instead of "GYP_DEFINES" (I think it's the args.gn file that gets placed in out/foo and is normally invoked with gn args out/foo ??)
2) What that args.gn file looks like so I can write my own instead of requiring interaction (this is an automated script)
3) How to set the options I've listed above in the export GYP_DEFINES line in the GN file
Thank you,
Bobo
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d3341373-3b8f-40eb-80f6-9a7e3992dbe1%40chromium.org.