{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/405","labels_url":"https://api.github.com/repos/facebook/buck/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/405/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/405/events","html_url":"https://github.com/facebook/buck/issues/405","id":105249874,"number":405,"title":"OutOfMemoryError when do release","user":{"login":"llj098","id":139195,"avatar_url":"https://avatars.githubusercontent.com/u/139195?v=3","gravatar_id":"","url":"https://api.github.com/users/llj098","html_url":"https://github.com/llj098","followers_url":"https://api.github.com/users/llj098/followers","following_url":"https://api.github.com/users/llj098/following{/other_user}","gists_url":"https://api.github.com/users/llj098/gists{/gist_id}","starred_url":"https://api.github.com/users/llj098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llj098/subscriptions","organizations_url":"https://api.github.com/users/llj098/orgs","repos_url":"https://api.github.com/users/llj098/repos","events_url":"https://api.github.com/users/llj098/events{/privacy}","received_events_url":"https://api.github.com/users/llj098/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-07T17:23:03Z","updated_at":"2015-09-24T11:56:12Z","closed_at":"2015-09-24T11:56:12Z","body":"build with:\r\n\r\n```\r\nandroid_binary(\r\n  name = 'release',\r\n  manifest = ':manifest',\r\n  keystore = '//keystores:release',\r\n  package_type = 'release',\r\n  deps = [\r\n    ':application-lib',\r\n    ':res',\r\n    ':src',\r\n  ],\r\n  proguard_config = 'prog.pro',\r\n)\r\n```\r\n\r\n\r\n```\r\nUNEXPECTED TOP-LEVEL ERROR:\r\njava.lang.OutOfMemoryError: GC overhead limit exceeded\r\n\tat com.android.dx.rop.code.ThrowingInsn.withNewRegisters(ThrowingInsn.java:116)\r\n\tat com.android.dx.ssa.NormalSsaInsn.toRopInsn(NormalSsaInsn.java:126)\r\n\tat com.android.dx.ssa.back.SsaToRop.convertInsns(SsaToRop.java:341)\r\n\tat com.android.dx.ssa.back.SsaToRop.convertBasicBlock(SsaToRop.java:322)\r\n\tat com.android.dx.ssa.back.SsaToRop.convertBasicBlocks(SsaToRop.java:259)\r\n\tat com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:123)\r\n\tat com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:69)\r\n\tat com.android.dx.ssa.Optimizer.optimize(Optimizer.java:101)\r\n\tat com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)\r\n\tat com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297)\r\n\tat com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)\r\n\tat com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)\r\n\tat com.android.dx.command.dexer.Main.processClass(Main.java:729)\r\n\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)\r\n\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)\r\n\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)\r\n\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)\r\n\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)\r\n\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)\r\n\tat com.android.dx.command.dexer.Main.run(Main.java:246)\r\n\tat com.android.dx.command.dexer.Main.main(Main.java:215)\r\n\tat com.android.dx.command.Main.main(Main.java:106)\r\n```\r\n\r\n\r\n\r\n- buck version *92f4a5486d4531d0ba8535529ab8f0cada2d3651\r\n- java version \"1.8.0_45\"\r\n- Java(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\n- Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n- mac os 10.10.5\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/142908012","html_url":"https://github.com/facebook/buck/issues/405#issuecomment-142908012","issue_url":"https://api.github.com/repos/facebook/buck/issues/405","id":142908012,"user":{"login":"llj098","id":139195,"avatar_url":"https://avatars.githubusercontent.com/u/139195?v=3","gravatar_id":"","url":"https://api.github.com/users/llj098","html_url":"https://github.com/llj098","followers_url":"https://api.github.com/users/llj098/followers","following_url":"https://api.github.com/users/llj098/following{/other_user}","gists_url":"https://api.github.com/users/llj098/gists{/gist_id}","starred_url":"https://api.github.com/users/llj098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llj098/subscriptions","organizations_url":"https://api.github.com/users/llj098/orgs","repos_url":"https://api.github.com/users/llj098/repos","events_url":"https://api.github.com/users/llj098/events{/privacy}","received_events_url":"https://api.github.com/users/llj098/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T11:56:12Z","updated_at":"2015-09-24T11:56:12Z","body":"I found the problem, I failed in the `smart_dex` step, it runs the android sdk's `dx`, the default `Mmx` of it is 1024M. "}}