iChun / IssueTracker-Mods

Issue Tracker for my Minecraft Mods which sources are not already hosted on GitHub.
6 stars 3 forks source link

[1.10.2] [PortalGun] Memory leak(?) #59

Open BlueCyro opened 7 years ago

BlueCyro commented 7 years ago

Felt this deserved a separate issue, after a while of playing with this mod, I seem to start getting GC lag-spikes a lot with 1024MB of ram allocated and just iChunUtil, PortalGun and FML installed.

Logs just in case:


Minecraft folder is:
instances/1.10.2/minecraft

Java path is:
C:/ProgramData/Oracle/Java/javapath/java.exe

Java is version 1.8.0_111, using 64-bit architecture.

Main Class:
  net.minecraft.launchwrapper.Launch

Native path:
  D:/MultiMC/instances/1.10.2/natives

Libraries:
  D:/MultiMC/libraries/com/mojang/netty/1.6/netty-1.6.jar
  D:/MultiMC/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar
  D:/MultiMC/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar
  D:/MultiMC/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar
  D:/MultiMC/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar
  D:/MultiMC/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar
  D:/MultiMC/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar
  D:/MultiMC/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar
  D:/MultiMC/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar
  D:/MultiMC/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar
  D:/MultiMC/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar
  D:/MultiMC/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar
  D:/MultiMC/libraries/com/google/guava/guava/17.0/guava-17.0.jar
  D:/MultiMC/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
  D:/MultiMC/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar
  D:/MultiMC/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
  D:/MultiMC/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
  D:/MultiMC/libraries/com/mojang/authlib/1.5.22/authlib-1.5.22.jar
  D:/MultiMC/libraries/com/mojang/realms/1.9.8/realms-1.9.8.jar
  D:/MultiMC/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
  D:/MultiMC/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
  D:/MultiMC/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
  D:/MultiMC/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
  D:/MultiMC/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar
  D:/MultiMC/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar
  D:/MultiMC/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar
  D:/MultiMC/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar
  D:/MultiMC/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar
  D:/MultiMC/libraries/org/lwjgl/lwjgl/lwjgl/2.9.1/lwjgl-2.9.1.jar
  D:/MultiMC/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.1/lwjgl_util-2.9.1.jar
  D:/MultiMC/libraries/net/minecraftforge/forge/1.10.2-12.18.3.2281/forge-1.10.2-12.18.3.2281-universal.jar
  D:/MultiMC/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar
  D:/MultiMC/libraries/org/ow2/asm/asm-all/5.0.3/asm-all-5.0.3.jar
  D:/MultiMC/libraries/jline/jline/2.13/jline-2.13.jar
  D:/MultiMC/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar
  D:/MultiMC/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar
  D:/MultiMC/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar
  D:/MultiMC/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar
  D:/MultiMC/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar
  D:/MultiMC/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar
  D:/MultiMC/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
  D:/MultiMC/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar
  D:/MultiMC/libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar
  D:/MultiMC/libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar
  D:/MultiMC/libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
  D:/MultiMC/libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar
  D:/MultiMC/libraries/java3d/vecmath/1.5.2/vecmath-1.5.2.jar
  D:/MultiMC/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar
  D:/MultiMC/versions/1.10.2/1.10.2.jar
  D:/MultiMC/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar
  D:/MultiMC/libraries/org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1-natives-windows.jar

Mods:
  iChunUtil-1.10.2-6.3.0
  PortalGun-1.10.2-6.0.0

Params:
  --username  --version MultiMC5 --gameDir D:/MultiMC/instances/1.10.2/minecraft --assetsDir D:/MultiMC/assets --assetIndex 1.10 --uuid  --accessToken  --userType  --versionType custom --tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker

Window size: 854 x 480

Java Arguments:
[-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms1024m, -Xmx1024m, -Duser.language=en]

Minecraft process ID: 3484

Using onesix launcher.

2017-04-13 11:45:36,794 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-04-13 11:45:36,795 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[11:45:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[11:45:36] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2281 for Minecraft 1.10.2 loading
[11:45:36] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_111, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_111
[11:45:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:45:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:45:38] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[11:45:38] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[11:45:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:45:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[11:45:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[11:45:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[11:45:38] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-04-13 11:45:38,767 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-04-13 11:45:38,778 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-04-13 11:45:38,779 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[11:45:38] [Client thread/INFO]: Setting user: <PROFILE NAME>
[11:45:41] [Client thread/WARN]: Skipping bad option: lastServer:
[11:45:41] [Client thread/INFO]: LWJGL Version: 2.9.1
[11:45:41] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:223]: ---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 4/13/17 11:45 AM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
    Minecraft Version: 1.10.2
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_111, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 759118224 bytes (723 MB) / 985661440 bytes (940 MB) up to 985661440 bytes (940 MB)
    JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms1024m -Xmx1024m
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 375.57' Renderer: 'GeForce GTX 970/PCIe/SSE2'
[11:45:41] [Client thread/INFO] [FML]: MinecraftForge v12.18.3.2281 Initialized
[11:45:41] [Client thread/INFO] [FML]: Replaced 231 ore recipes
[11:45:41] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[11:45:41] [Client thread/INFO] [FML]: Searching D:\MultiMC\instances\1.10.2\minecraft\mods for mods
[11:45:42] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[11:45:42] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ichunutil, portalgun] at CLIENT
[11:45:42] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ichunutil, portalgun] at SERVER
[11:45:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:iChunUtil, FMLFileResourcePack:PortalGun
[11:45:43] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[11:45:43] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
[11:45:43] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[11:45:43] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[11:45:43] [Client thread/INFO] [FML]: Applying holder lookups
[11:45:43] [Client thread/INFO] [FML]: Holder lookups applied
[11:45:43] [Client thread/INFO] [FML]: Applying holder lookups
[11:45:43] [Client thread/INFO] [FML]: Holder lookups applied
[11:45:43] [Client thread/INFO] [FML]: Applying holder lookups
[11:45:43] [Client thread/INFO] [FML]: Holder lookups applied
[11:45:43] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[11:45:43] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[11:45:43] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: AHEAD Target: null
[11:45:43] [Client thread/INFO] [FML]: Applying holder lookups
[11:45:43] [Client thread/INFO] [FML]: Holder lookups applied
[11:45:43] [Client thread/INFO] [FML]: Injecting itemstacks
[11:45:43] [Client thread/INFO] [FML]: Itemstack injection complete
[11:45:43] [Sound Library Loader/INFO]: Starting up SoundSystem...
[11:45:43] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 90146661 nanos
[11:45:44] [Thread-8/INFO]: Initializing LWJGL OpenAL
[11:45:44] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[11:45:44] [Thread-8/INFO]: OpenAL initialized.
[11:45:44] [Sound Library Loader/INFO]: Sound engine started
[11:45:44] [Client thread/INFO] [FML]: Max texture size: 16384
[11:45:44] [Client thread/INFO]: Created: 16x16 textures-atlas
[11:45:45] [Client thread/INFO] [FML]: Injecting itemstacks
[11:45:45] [Client thread/INFO] [FML]: Itemstack injection complete
[11:45:45] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[11:45:45] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:iChunUtil, FMLFileResourcePack:PortalGun
[11:45:45] [Client thread/INFO]: SoundSystem shutting down...
[11:45:45] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[11:45:45] [Sound Library Loader/INFO]: Starting up SoundSystem...
[11:45:45] [Thread-11/INFO]: Initializing LWJGL OpenAL
[11:45:45] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[11:45:45] [Thread-11/INFO]: OpenAL initialized.
[11:45:46] [Client thread/INFO] [FML]: Max texture size: 16384
[11:45:46] [Sound Library Loader/INFO]: Sound engine started
[11:45:46] [Client thread/INFO]: Created: 512x512 textures-atlas
[11:45:47] [Client thread/WARN]: Skipping bad option: lastServer:
[11:45:50] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[11:45:50] [Server thread/INFO]: Generating keypair
[11:45:51] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[11:45:51] [Server thread/INFO] [FML]: Applying holder lookups
[11:45:51] [Server thread/INFO] [FML]: Holder lookups applied
[11:45:51] [Server thread/INFO] [FML]: Loading dimension 0 (Amplified) (net.minecraft.server.integrated.IntegratedServer@41070a92)
[11:45:51] [Server thread/INFO] [FML]: Loading dimension 1 (Amplified) (net.minecraft.server.integrated.IntegratedServer@41070a92)
[11:45:51] [Server thread/INFO] [FML]: Loading dimension -1 (Amplified) (net.minecraft.server.integrated.IntegratedServer@41070a92)
[11:45:51] [Server thread/INFO]: Preparing start region for level 0
[11:45:52] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[11:45:52] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[11:45:52] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : ichunutil@6.3.0,portalgun@6.0.0,FML@8.0.99.99,Forge@12.18.3.2281,mcp@9.19
[11:45:52] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[11:45:52] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[11:45:52] [Server thread/INFO]: <PROFILE NAME>[local:E:a0363336] logged in with entity id 179 at (250.14815586705396, 123.0, -55.427938783412614)
[11:45:52] [Server thread/INFO]: <PROFILE NAME> joined the game
[11:45:53] [Server thread/INFO]: Saving and pausing game...
[11:45:53] [Server thread/INFO]: Saving chunks for level 'Amplified'/Overworld
[11:45:53] [Server thread/INFO]: Saving chunks for level 'Amplified'/Nether
[11:45:53] [Server thread/INFO]: Saving chunks for level 'Amplified'/The End
[11:49:08] [Server thread/INFO]: Saving and pausing game...
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/Overworld
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/Nether
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/The End
[11:49:08] [Server thread/INFO]: Stopping server
[11:49:08] [Server thread/INFO]: Saving players
[11:49:08] [Server thread/INFO]: Saving worlds
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/Overworld
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/Nether
[11:49:08] [Server thread/INFO]: Saving chunks for level 'Amplified'/The End
[11:49:08] [Server thread/INFO] [FML]: Unloading dimension 0
[11:49:08] [Server thread/INFO] [FML]: Unloading dimension -1
[11:49:08] [Server thread/INFO] [FML]: Unloading dimension 1
[11:49:09] [Server thread/INFO] [FML]: Applying holder lookups
[11:49:09] [Server thread/INFO] [FML]: Holder lookups applied
ThomasAunvik commented 7 years ago

The issue is alerady known. You can find known issues here: Portal Gun is back. Here’s what’s new, and what’s to come. (Almost bottom of the page)

Lag when you pair a set of portals.

Also, 1024 MB RAM? I do not recommend that...

BlueCyro commented 7 years ago

I'm aware of lag when pairing portals, I'm talking about a possible memory leak problem that appears even when there are no portals on the map whatsoever.

EDIT: 1024MB of ram should not hurt anything, if I set it any lower the GC goes nuts even sooner.

iChun commented 7 years ago

Wait, NO portals whatsoever? That's a bit strange. I'm wondering if I'm accidentally creating something then disposing of it too often somewhere.

BlueCyro commented 7 years ago

Yeah, even without portals it still leaks a little bit. I left my instance running with 1024MB of ram and GC went absolutely insane. If I set it to something like 4096MB, which is modpack level it will take longer for GC to go insane, but also I notice in task manager the javaw process goes from 3-4 gb up to 8 when left running for a few hours.

iChun commented 7 years ago

Does this happen with just iChunUtil?

On 21 Apr 2017 2:10 am, "RileyGuy" notifications@github.com wrote:

Yeah, even without portals it still leaks a little bit. I left my instance running with 1024MB of ram and GC went absolutely insane. If I set it to something like 4096MB, which is modpack level it will take longer for GC to go insane, but also I notice in task manager the javaw process goes from 3-4 gb up to 8 when left running for a few hours.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iChun/IssueTracker-Mods/issues/59#issuecomment-295839695, or mute the thread https://github.com/notifications/unsubscribe-auth/ACMSTMwuwoxp8Te6pX_lNEfSbuV5NZDhks5rx5-mgaJpZM4M88n5 .

BlueCyro commented 7 years ago

I believe it does even with just iChunUtil installed, my GC went absolutely mad. After I took out iChunUtil it was back to normal.

iChun commented 7 years ago

Alright that helps narrow it down. I'll have a look see when I can.

On 21 Apr 2017 8:39 am, "RileyGuy" notifications@github.com wrote:

I believe it does even with just iChunUtil installed, my GC went absolutely mad. After I took out iChunUtil it was back to normal.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iChun/IssueTracker-Mods/issues/59#issuecomment-295988596, or mute the thread https://github.com/notifications/unsubscribe-auth/ACMSTJWTR237hrGZH14QVE0BZ2ixt8IHks5rx_qvgaJpZM4M88n5 .