Re: Minecraft + Forge crash

Jeroen Frijters <[email protected]> Fri, 27 Feb 2015 11:18:38 +0000
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi Alastair,

Thanks for reporting this. This is an interesting bug. It is caused by a difference in class loading between IKVM and the JDK, the JDK is very lazy whereas IKVM is very eager. In this case the custom class loader tries to use a class that is still being loaded (indirectly) and that causes infinite recursion.

I have some ideas on how to fix this (or rather, work around the problem), but it will take a while to implement.

Thanks,
Jeroen

> -----Original Message-----
> From: Alastair Barnes [mailto:[email protected]]
> Sent: Thursday, February 26, 2015 17:25
> To: [email protected]
> Subject: [Ikvm-developers] Minecraft + Forge crash
> 
> Hello
> 
> I recently discovered your post on being able to run minecraft on
> IKVM.NET, and having tried it myself (using ikvm-8.0.5449.1), was
> reasonable impressed.
> 
> I then attempted to run a minecraft instance with forge installed
> (http://files.minecraftforge.net/, 1.7.10-Recommended) and encountered a
> stack overflow exception on launch. (on the plus side, the installer
> seems to work fine).
> (Console log below, not sure how useful it will be).
> 
> Unsupported option ignored: -
> XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecra
> ft.exe.heapdump
> Unsupported option ignored: -Xmx1G
> Unsupported option ignored: -XX:+UseConcMarkSweepGC Unsupported option
> ignored: -XX:+CMSIncrementalMode Unsupported option ignored: -XX:-
> UseAdaptiveSizePolicy Unsupported option ignored: -Xmn128M [16:07:35]
> [main/INFO] [LaunchWrapper]: Loading tweak class name
> cpw.mods.fml.common.launcher.FMLTweaker
> [16:07:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name
> cpw.mods.fml.common.launcher.FMLTweaker
> [16:07:36] [main/INFO] [LaunchWrapper]: Calling tweak class
> cpw.mods.fml.common.launcher.FMLTweaker
> [16:07:37] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for
> Minecraft 1.7.10 loading [16:07:37] [main/INFO] [FML]: Java is IKVM.NET,
> version 1.8.0, running on Windows 7:amd64:6.1, installed at C:\.virtual-
> ikvm-home [16:07:37] [main/INFO] [LaunchWrapper]: Loading tweak class
> name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
> [16:07:37] [main/INFO] [LaunchWrapper]: Loading tweak class name
> cpw.mods.fml.common.launcher.FMLDeobfTweaker
> [16:07:37] [main/INFO] [LaunchWrapper]: Calling tweak class
> cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
> [16:07:37] [main/INFO] [LaunchWrapper]: Calling tweak class
> cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
> [16:07:37] [main/INFO] [LaunchWrapper]: Calling tweak class
> cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
> 
> Process is terminated due to StackOverflowException.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/