Generate Gradle project faild

29 views
Skip to first unread message

joco...@gmail.com

unread,
Mar 2, 2018, 11:53:34 AM3/2/18
to Chromium-dev
Hello,

When I try to generate Gradle project something strange happens.
All computer resources are fully utilized and the computer freezes.


I tried it with different parameters, but the result is always the same.





joco...@gmail.com

unread,
Mar 2, 2018, 2:41:58 PM3/2/18
to Chromium-dev
I've  found the problem.
I changed the ninja parameter -j from 1000 to 50 in the script generate_gradle.py and it works.

old:
cmd =[
    os. path. join (find_depot_tools. DEPOT_TOOLS_PATH,' ninja'),
    '-C',
    output_dir,
    '-j1000',
  ]

new:
cmd =[
    os. path. join (find_depot_tools. DEPOT_TOOLS_PATH,' ninja'),
    '-C',
    output_dir,
    '-j50',
  ]







Lei Zhang

unread,
Mar 2, 2018, 3:06:57 PM3/2/18
to joco...@gmail.com, Chromium-dev, Peter Wen
Please file a bug on crbug.com for this. It's not reasonable to run
ninja with -j1000 by default and assume the developer has access to a
distributed build system that can handle that load.
> --
> --
> 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/150b23f2-3266-4b4c-8fd2-cc800da32cc3%40chromium.org.
Reply all
Reply to author
Forward
0 new messages