{"action":"created","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2683","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2683/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2683/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2683/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2683","id":145341332,"number":2683,"title":"InvocationTargetException for Forge 1820 for 1.9","user":{"login":"krimin-killr21","id":1839673,"avatar_url":"https://avatars.githubusercontent.com/u/1839673?v=3","gravatar_id":"","url":"https://api.github.com/users/krimin-killr21","html_url":"https://github.com/krimin-killr21","followers_url":"https://api.github.com/users/krimin-killr21/followers","following_url":"https://api.github.com/users/krimin-killr21/following{/other_user}","gists_url":"https://api.github.com/users/krimin-killr21/gists{/gist_id}","starred_url":"https://api.github.com/users/krimin-killr21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krimin-killr21/subscriptions","organizations_url":"https://api.github.com/users/krimin-killr21/orgs","repos_url":"https://api.github.com/users/krimin-killr21/repos","events_url":"https://api.github.com/users/krimin-killr21/events{/privacy}","received_events_url":"https://api.github.com/users/krimin-killr21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-02T06:05:24Z","updated_at":"2016-04-02T07:49:33Z","closed_at":null,"body":"I and another dev both had identical errors at startup in the dev environment. Did not occur as late as 1816. Here's the trace:\r\n\r\n2016-04-02 00:47:06,664 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream\r\n2016-04-02 00:47:06,665 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker\r\n[00:47:06] [main/INFO] [FML]: Forge Mod Loader version 12.16.0.1820 for Minecraft 1.9 loading\r\n[00:47:06] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 10:amd64:10.0, installed at C:\\Program Files (x86)\\Minecraft\\runtime\\jre-x64\\1.8.0_25\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker\r\n[00:47:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper\r\n[00:47:07] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557\r\n[00:47:07] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc\r\n[00:47:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper\r\n[00:47:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker\r\n[00:47:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker\r\n[00:47:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker\r\n[00:47:08] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}\r\n2016-04-02 00:47:08,418 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream\r\n2016-04-02 00:47:08,428 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream\r\n2016-04-02 00:47:08,430 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream\r\n[00:47:08] [main/INFO] [STDOUT]: [net.minecraft.client.main.Main:main:56]: Completely ignored arguments: [--nativeLauncherVersion, 301]\r\n[00:47:08] [Client thread/INFO]: Setting user: uxsvent\r\n[00:47:08] [Client thread/ERROR] [LaunchWrapper]: Unable to launch\r\njava.lang.reflect.InvocationTargetException\r\n   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]\r\n   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]\r\n   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]\r\n   at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]\r\n   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]\r\n   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]\r\nCaused by: java.lang.ExceptionInInitializerError\r\n   at net.minecraft.util.SoundEvent.<clinit>(SoundEvent.java:9) ~[nf.class:?]\r\n   at net.minecraft.init.Bootstrap.func_151354_b(SourceFile:501) ~[kn.class:?]\r\n   at net.minecraft.client.Minecraft.<init>(Minecraft.java:337) ~[bcf.class:?]\r\n   at net.minecraft.client.main.Main.main(SourceFile:124) ~[Main.class:?]\r\n   ... 6 more\r\nCaused by: java.lang.NegativeArraySizeException: nbits < 0: -2147483648\r\n   at java.util.BitSet.<init>(BitSet.java:159) ~[?:1.8.0_25]\r\n   at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.<init>(FMLControlledNamespacedRegistry.java:77) ~[FMLControlledNamespacedRegistry.class:?]\r\n   at net.minecraftforge.fml.common.registry.PersistentRegistryManager$PersistentRegistry.createRegistry(PersistentRegistryManager.java:85) ~[PersistentRegistryManager$PersistentRegistry.class:?]\r\n   at net.minecraftforge.fml.common.registry.PersistentRegistryManager$PersistentRegistry.access$000(PersistentRegistryManager.java:45) ~[PersistentRegistryManager$PersistentRegistry.class:?]\r\n   at net.minecraftforge.fml.common.registry.PersistentRegistryManager.createRegistry(PersistentRegistryManager.java:139) ~[PersistentRegistryManager.class:?]\r\n   at net.minecraftforge.fml.common.registry.GameData.<init>(GameData.java:64) ~[GameData.class:?]\r\n   at net.minecraftforge.fml.common.registry.GameData.<clinit>(GameData.java:56) ~[GameData.class:?]\r\n   at net.minecraft.util.SoundEvent.<clinit>(SoundEvent.java:9) ~[nf.class:?]\r\n   at net.minecraft.init.Bootstrap.func_151354_b(SourceFile:501) ~[kn.class:?]\r\n   at net.minecraft.client.Minecraft.<init>(Minecraft.java:337) ~[bcf.class:?]\r\n   at net.minecraft.client.main.Main.main(SourceFile:124) ~[Main.class:?]\r\n   ... 6 more\r\nException in thread \"Client thread\" [00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30)\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at java.lang.SecurityManager.checkExit(SecurityManager.java:761)\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at java.lang.Runtime.exit(Runtime.java:107)\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at java.lang.System.exit(System.java:968)\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)\r\n[00:47:08] [Client thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)"},"comment":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/comments/204668367","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2683#issuecomment-204668367","issue_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2683","id":204668367,"user":{"login":"jacky8399","id":7542810,"avatar_url":"https://avatars.githubusercontent.com/u/7542810?v=3","gravatar_id":"","url":"https://api.github.com/users/jacky8399","html_url":"https://github.com/jacky8399","followers_url":"https://api.github.com/users/jacky8399/followers","following_url":"https://api.github.com/users/jacky8399/following{/other_user}","gists_url":"https://api.github.com/users/jacky8399/gists{/gist_id}","starred_url":"https://api.github.com/users/jacky8399/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacky8399/subscriptions","organizations_url":"https://api.github.com/users/jacky8399/orgs","repos_url":"https://api.github.com/users/jacky8399/repos","events_url":"https://api.github.com/users/jacky8399/events{/privacy}","received_events_url":"https://api.github.com/users/jacky8399/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T07:49:33Z","updated_at":"2016-04-02T07:49:33Z","body":"I have the same problem too. I think it's because they used the max int for max_sound_id\r\n`private static final int MAX_SOUND_ID = Integer.MAX_VALUE; // Varint (SPacketSoundEffect)`\r\nAnd then used it as a parameter\r\n`iSoundEventRegistry = PersistentRegistryManager.createRegistry(PersistentRegistryManager.SOUNDEVENTS, SoundEvent.class, null, MIN_SOUND_ID, MAX_SOUND_ID, false, null, null, null);`\r\nwhich the method used to create a BitSet\r\n`this.availabilityMap = new BitSet(maxIdValue + 1);`\r\nthus causing this problem\r\nCaused by: java.lang.NegativeArraySizeException: nbits < 0: -2147483648"}}