[Crash] ECC Minimap

Discussion in 'Help & Support / Errors & Bugs' started by 314, Feb 26, 2016.

  1. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    Minecraft Username:
    314

    Brief Description:
    Crashing when attempting to join any entry from the multiplayer list. I don't know whether it only happens with Spigot, or also with vanilla. (Tested with localhost and ECC.)

    I came across this bug a few months ago, then gave up fixing it. Now I am trying to use the Minimap again and am still experiencing this bug.

    Instructions:
    1. Install the latest version of Forge available.
    2. Place the latest version of the ECC Minimap in mods/1.8/
    3. Attempt to join any entry from the multiplayer tab. Singleplayer worlds work just fine, Multiplayer worlds crash with "String index out of range: -1"

    How many times did you recreate this bug?:
    80+ times. 100% success rate.

    Result:
    Crashing.

    Expected Result:
    Not crashing.

    Evidence:
    This is a report from an attempt to join ECC. Everything that is not Minecraft itself, Forge or the Minimap jar has been removed before these tests.
    Code:
    ---- Minecraft Crash Report ----
    // This doesn't make any sense!
    
    Time: 26.02.16 18:56
    Description: Unexpected error
    
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
       at java.lang.String.substring(String.java:1954)
       at mapwriter.util.Utils.getWorldName(Utils.java:129)
       at mapwriter.Mw.load(Mw.java:287)
       at mapwriter.Mw.onTick(Mw.java:381)
       at mapwriter.forge.EventHandler.renderMap(EventHandler.java:80)
       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_EventHandler_renderMap_Post.invoke(.dynamic)
       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:55)
       at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
       at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:858)
       at net.minecraftforge.client.GuiIngameForge.func_175180_a(GuiIngameForge.java:190)
       at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1059)
       at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
       at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345)
       at net.minecraft.client.main.Main.main(SourceFile:120)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:483)
       at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
       at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
       at java.lang.String.substring(String.java:1954)
       at mapwriter.util.Utils.getWorldName(Utils.java:129)
       at mapwriter.Mw.load(Mw.java:287)
       at mapwriter.Mw.onTick(Mw.java:381)
       at mapwriter.forge.EventHandler.renderMap(EventHandler.java:80)
       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_EventHandler_renderMap_Post.invoke(.dynamic)
       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:55)
       at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
       at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:858)
       at net.minecraftforge.client.GuiIngameForge.func_175180_a(GuiIngameForge.java:190)
    
    -- Affected level --
    Details:
       Level name: MpServer
       All players: 1 total; [EntityPlayerSP['314'/41476631, l='MpServer', x=8,50, y=65,00, z=8,50]]
       Chunk stats: MultiplayerChunkCache: 1, 1
       Level seed: 0
       Level generator: ID 00 - default, ver 1. Features enabled: false
       Level generator options:
       Level spawn location: 7,00,75,00,1,00 - World: (7,75,1), Chunk: (at 7,4,1 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
       Level time: 1 game time, 1 day time
       Level dimension: 0
       Level storage version: 0x00000 - Unknown?
       Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
       Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
       Forced entities: 1 total; [EntityPlayerSP['314'/41476631, l='MpServer', x=8,50, y=65,00, z=8,50]]
       Retry entities: 0 total; []
       Server brand: BungeeCord (git:BungeeCord-Bootstrap:1.8-SNAPSHOT:7d2c2ab:1119) <- Spigot
       Server type: Non-integrated multiplayer server
    Stacktrace:
       at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:351)
       at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2502)
       at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:374)
       at net.minecraft.client.main.Main.main(SourceFile:120)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:483)
       at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
       at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    
    -- System Details --
    Details:
       Minecraft Version: 1.8
       Operating System: Windows 10 (amd64) version 10.0
       Java Version: 1.8.0_25, Oracle Corporation
       Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
       Memory: 1124721856 bytes (1072 MB) / 1390411776 bytes (1326 MB) up to 3817865216 bytes (3641 MB)
       JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4G
       IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
       FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 4 mods loaded, 4 mods active
       States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
       UCHIJAAAAAA   mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
       UCHIJAAAAAA   FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.4.1577.jar)
       UCHIJAAAAAA   Forge{11.14.4.1577} [Minecraft Forge] (forge-1.8-11.14.4.1577.jar)
       UCHIJAAAAAA   ECCMinimap{2.2.5} [ECCMinimap] (ECCMinimap-1.8-2.2.5.jar)
       Loaded coremods (and transformers):
       GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 361.75' Renderer: 'GeForce GTX 650/PCIe/SSE2'
       Launched Version: 1.8-forge1.8-11.14.4.1577
       LWJGL: 2.9.1
       OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.75, NVIDIA Corporation
       GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.
    
       Using VBOs: No
       Is Modded: Definitely; Client brand changed to 'fml,forge'
       Type: Client (map_client.txt)
       Resource Packs: []
       Current Language: English (UK)
       Profiler Position: N/A (disabled)
    
    Things I am wondering about:

    I have no idea why the report states 1.8.0_25 as my Java version. 8u25 is not existent on my PC, Minecraft is actually run with 8u73 here.
    This is also the first time that I have seen UCHIJAAAAAA as status of the mods, normally all I see is UCHIJA.


    EDITED:

    A screenshot of the minimap in a singleplayer world.
    [​IMG]
    This should not be intended behaviour in any way...
     
    • Winner Winner x 1
    • Informative Informative x 1
    • List
    #1 314, Feb 26, 2016
    Last edited: Mar 3, 2016
  2. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    Added screenshot of the map's Singleplayer appearance.

    Also adjusted the number of tries from 20+ to 40+.
     
  3. yokeby52

    yokeby52 Penguin?
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Feb 18, 2013
    Messages:
    1,121
    Trophy Points:
    47,410
    Gender:
    Male
    Ratings:
    +538
    also doesn't seem to be able to read blocks at all
     
  4. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    I didn't know what to do with my free time, so I brought my 40+ crashes to 80+ crashes... all attempted with minor variations, nothing works. I set up a completely new testing environment with a clean vanilla MC and the required files only... I no longer have an idea what causes these problems.
     
  5. MatthewStevenGo

    MatthewStevenGo Builder
    Builder ⛰️ Ex-Resident ⚒️

    Joined:
    May 8, 2015
    Messages:
    773
    Trophy Points:
    25,410
    Gender:
    Male
    EcoDollars:
    $9,469
    Ratings:
    +572
    Probably you modified something in the Minimap mod.
     
  6. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    Latest version freshly downloaded from Jamie's server before testing, no options changed, not modified in any way since I haven't found the time to decompile it for fun yet.
     
  7. MatthewStevenGo

    MatthewStevenGo Builder
    Builder ⛰️ Ex-Resident ⚒️

    Joined:
    May 8, 2015
    Messages:
    773
    Trophy Points:
    25,410
    Gender:
    Male
    EcoDollars:
    $9,469
    Ratings:
    +572
    I see, but that might be the bug in the minimap that JamieSinn didn't notice.
     
  8. Nicit6

    Nicit6 N6
    Mayor ⛰️⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ II ⭐ Gameplay Architect Premium Upgrade

    Joined:
    Jul 13, 2013
    Messages:
    9,916
    Trophy Points:
    102,160
    Ratings:
    +8,061
    That is generally why bug reports are filed.
     
  9. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    You're using the latest version of forge, don't.
    I only compiled with a certain version and that means that I cant guarantee it working with any other versions.
     
  10. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    Ah, I see - thank you for the answer.

    What version of forge is the minimap tested for? :p
     
  11. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    Uh.....
    I don't know
    Lemme check
     
  12. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    @314 1.8-11.14.3.1468
    AKA - Build 1468
     
  13. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    I hate to say it, but... I see no changes at all. ;-;

    Minecraft 1.8, Forge 11.14.3.1468, Minimap 1.8 2.2.5.

    ---- Minecraft Crash Report ----
    // Shall we play a game?

    Time: 06.03.16 19:20
    Description: Unexpected error

    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1954)
    at mapwriter.util.Utils.getWorldName(Utils.java:129)
    at mapwriter.Mw.load(Mw.java:287)
    at mapwriter.Mw.onTick(Mw.java:381)
    at mapwriter.forge.EventHandler.renderMap(EventHandler.java:80)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_12_EventHandler_renderMap_Post.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:55)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:138)
    at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:858)
    at net.minecraftforge.client.GuiIngameForge.func_175180_a(GuiIngameForge.java:190)
    at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1056)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345)
    at net.minecraft.client.main.Main.main(SourceFile:120)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

    -- Head --
    Stacktrace:
    at java.lang.String.substring(String.java:1954)
    at mapwriter.util.Utils.getWorldName(Utils.java:129)
    at mapwriter.Mw.load(Mw.java:287)
    at mapwriter.Mw.onTick(Mw.java:381)
    at mapwriter.forge.EventHandler.renderMap(EventHandler.java:80)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_12_EventHandler_renderMap_Post.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:55)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:138)
    at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:858)
    at net.minecraftforge.client.GuiIngameForge.func_175180_a(GuiIngameForge.java:190)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['314'/10088922, l='MpServer', x=8,50, y=65,00, z=8,50]]
    Chunk stats: MultiplayerChunkCache: 1, 1
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options:
    Level spawn location: 1,00,74,00,0,00 - World: (1,74,0), Chunk: (at 1,4,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 1 game time, 1 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Forced entities: 1 total; [EntityPlayerSP['314'/10088922, l='MpServer', x=8,50, y=65,00, z=8,50]]
    Retry entities: 0 total; []
    Server brand: BungeeCord (git:BungeeCord-Bootstrap:1.8-SNAPSHOT:7d2c2ab:1119) <- Spigot
    Server type: Non-integrated multiplayer server
    Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:351)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2502)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:374)
    at net.minecraft.client.main.Main.main(SourceFile:120)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    -- System Details --
    Details:
    Minecraft Version: 1.8
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_25, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1057630096 bytes (1008 MB) / 1356857344 bytes (1294 MB) up to 3817865216 bytes (3641 MB)
    JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4G
    IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1468 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAAAAAAAAAAAAAAAAAAAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAAAAAAAAAAAAAAAAAAAAAA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.3.1468.jar)
    UCHIJAAAAAAAAAAAAAAAAAAAAAAAA Forge{11.14.3.1468} [Minecraft Forge] (forge-1.8-11.14.3.1468.jar)
    UCHIJAAAAAAAAAAAAAAAAAAAAAAAA ECCMinimap{2.2.5} [ECCMinimap] (ECCMinimap-1.8-2.2.5.jar)
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 361.75' Renderer: 'GeForce GTX 650/PCIe/SSE2'
    Launched Version: 1.8-Forge11.14.3.1468
    LWJGL: 2.9.1
    OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.75, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: No
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (UK)
    Profiler Position: N/A (disabled)
    The amount of As has increased... ._.
     
  14. 314

    314 Irrational Moderator, former ServerAdmin
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,046
    Trophy Points:
    97,160
    EcoDollars:
    $1,400,000
    Ratings:
    +4,917
    @JamieSinn - Minor update...
    I completely nuked my testing folder once again and accidentally cleared (a lot) more than I wanted...
    ...however, now it "works".

    • Things that work now:
      • Joining a server without crashing.
    • Things that do not work:
      • The minimap itself... (See the image below)

    I have tested some ideas, and I now know why there is so much pink in the map.

    The mod paints the entire chunk (except for transparent blocks) pink if there is at least one single block that is placed at or above y = 64.
    The mod paints the single block (except for transparent blocks) pink if the block is located at or below Y = 61.
    A very high Y coord causes a 3D-like effect between neighbouring chunks.

    Placing a block to invalidate the chunk will keep the chunk pink when the block is broken again, unless the chunk is un- and then reloaded.



    A screenshot of Piville.
    [​IMG]