Skip to content

Default Eclipse run configurations cause crashes when attempting to load mods in /run/mods while in deobfuscated environment. #519

Description

@Pheenixm

Example of crash with Mekanism

Issue can be resolved by removing "-DFORGE_FORCE_FRAME_RECALC=true" from the VM arguments in ForgeGradle auto-generated launch configurations.

Example of broken run configuration:
<?xml version="1.0" encoding="UTF-8"?> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStart" /> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="GraphLib" /> <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/Users/NAMEGOESHERE/git/GraphLib/run" /> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value=" -DFORGE_FORCE_FRAME_RECALC=true" /> </launchConfiguration>

Example of functional run configuration:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> <listEntry value="/Explosives+"/> </listAttribute> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> <listEntry value="4"/> </listAttribute> <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStart"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Explosives+"/> <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/Users/NAMEGOESHERE/git/Explosives+/run"/> </launchConfiguration>

The failure appears to have something to do with the ASM lib. Changing the default runtime config to not contain this VM argument would likely resolve the bug entirely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions