Giving Skull Heads with "without skin" names causes a crash

Discussion in 'Spigot Help' started by MrPowerGamerBR, Jun 26, 2016.

  1. Code (Text):
    ---- Minecraft Crash Report ----
    // Daisy, daisy...

    Time: 26/06/16 13:00
    Description: Rendering item

    com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
        at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
        at bxk.a(SourceFile:126)
        at bqn.a(SourceFile:81)
        at bnx.a(SourceFile:67)
        at bsu.a(SourceFile:152)
        at bsu.a(SourceFile:328)
        at bsu.a(SourceFile:363)
        at bgl.a(SourceFile:248)
        at bgl.a(SourceFile:106)
        at bgw.a(SourceFile:37)
        at bhc.a(SourceFile:47)
        at bnz.a(SourceFile:1062)
        at bcx.av(SourceFile:991)
        at bcx.a(SourceFile:396)
        at net.minecraft.client.main.Main.main(SourceFile:124)
    Caused by: java.lang.NullPointerException
        at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.getTextures(YggdrasilMinecraftSessionService.java:144)
        at bxk$1.a(SourceFile:47)
        at bxk$1.load(SourceFile:44)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
        ... 18 more


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

    -- Head --
    Thread: Client thread
    Stacktrace:
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
        at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
        at bxk.a(SourceFile:126)
        at bqn.a(SourceFile:81)
        at bnx.a(SourceFile:67)
        at bsu.a(SourceFile:152)
        at bsu.a(SourceFile:328)

    -- Item being rendered --
    Details:
        Item Type: [email protected]
        Item Aux: 3
        Item NBT: {SkullOwner:{Id:"36d19ce0-74c3-337f-8788-d48f45a88ea6",Properties:{textures:[0:{Signature:"",Value:""}]},Name:"S_Vip"},display:{Name:"§fCabeça do S_Vip"}}
        Item Foil: false
    Stacktrace:
        at bsu.a(SourceFile:363)
        at bgl.a(SourceFile:248)
        at bgl.a(SourceFile:106)
        at bgw.a(SourceFile:37)
        at bhc.a(SourceFile:47)

    -- Screen render details --
    Details:
        Screen name: bhc
        Mouse location: Scaled: (213, 119). Absolute: (427, 240)
        Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

    -- Affected level --
    Details:
        Level name: MpServer
        All players: 3 total; [bnn['CommanderKeen'/2680, l='MpServer', x=292,38, y=66,00, z=350,48], bno['S_Vip'/2858, l='MpServer', x=291,28, y=66,00, z=329,49], bno['Padre'/2868, l='MpServer', x=293,97, y=68,00, z=352,43]]
        Chunk stats: MultiplayerChunkCache: 23, 23
        Level seed: 0
        Level generator: ID 00 - default, ver 1. Features enabled: false
        Level generator options:
        Level spawn location: World: (403,67,257), Chunk: (at 3,4,1 in 25,16; contains blocks 400,0,256 to 415,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
        Level time: 384842190 game time, 385217579 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: 16 total; [bnn['CommanderKeen'/2680, l='MpServer', x=292,38, y=66,00, z=350,48], bno['BNNRUSH'/2896, l='MpServer', x=403,50, y=67,00, z=257,50], bno['S_Vip'/2858, l='MpServer', x=291,28, y=66,00, z=329,49], bno['Padre'/2868, l='MpServer', x=293,97, y=68,00, z=352,43], bno['BNNRUSH'/2896, l='MpServer', x=403,50, y=67,00, z=257,50], xz['entity.ItemFrame.name'/2859, l='MpServer', x=300,97, y=73,50, z=330,50], xz['entity.ItemFrame.name'/2860, l='MpServer', x=300,97, y=73,50, z=335,50], xz['entity.ItemFrame.name'/2861, l='MpServer', x=287,03, y=73,50, z=330,50], xz['entity.ItemFrame.name'/2862, l='MpServer', x=287,03, y=73,50, z=335,50], xz['entity.ItemFrame.name'/2863, l='MpServer', x=300,97, y=73,50, z=340,50], xz['entity.ItemFrame.name'/2864, l='MpServer', x=300,97, y=73,50, z=345,50], bno['S_Vip'/2858, l='MpServer', x=291,28, y=66,00, z=329,49], xz['entity.ItemFrame.name'/2865, l='MpServer', x=287,03, y=73,50, z=340,50], xz['entity.ItemFrame.name'/2866, l='MpServer', x=287,03, y=73,50, z=345,50], xz['entity.ItemFrame.name'/2867, l='MpServer', x=293,50, y=68,50, z=356,03], bno['Padre'/2868, l='MpServer', x=293,97, y=68,00, z=352,43]]
        Retry entities: 0 total; []
        Server brand: Spigot
        Server type: Non-integrated multiplayer server
    Stacktrace:
        at bln.a(SourceFile:364)
        at bcx.b(SourceFile:2535)
        at bcx.a(SourceFile:405)
        at net.minecraft.client.main.Main.main(SourceFile:124)

    -- System Details --
    Details:
        Minecraft Version: 1.10.2
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.8.0_77, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 71619032 bytes (68 MB) / 228859904 bytes (218 MB) up to 1060372480 bytes (1011 MB)
        JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
        IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
        Launched Version: 1.10.2
        LWJGL: 2.9.4
        OpenGL: AMD Radeon HD 7800 Series GL version 4.5.13399 Compatibility Profile Context 15.201.1151.1010, ATI Technologies Inc.
        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: Yes
        Is Modded: Probably not. Jar signature remains and client brand is untouched.
        Type: Client (map_client.txt)
        Resource Packs:
        Current Language: English (US)
        Profiler Position: N/A (disabled)
        CPU: 6x AMD FX(tm)-6100 Six-Core Processor
    #@[email protected]# Game crashed! Crash report saved to: #@[email protected]# C:\Users\User\AppData\Roaming\.minecraft\crash-reports\crash-2016-06-26_13.00.54-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
     
    Code (Text):

    [13:02:00 INFO]: This server is running CraftBukkit version git-Spigot-c3e4052-1953f52 (MC: 1.10) (Implementing API version 1.10-R0.1-SNAPSHOT)
    [13:02:00 INFO]: Checking version, please wait...
    [13:02:00 INFO]: You are 11 version(s) behind
    I also tried the latest Paper build, same issue.

    Code:
    Code (Text):
            ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
            SkullMeta meta = (SkullMeta) head.getItemMeta();

            meta.setOwner("no_skin_wow");
            meta.setDisplayName("Head");
            head.setItemMeta(meta);

            ItemStack map = new ItemStack(Material.MAP, 1, (short) 2560);
       
            p.getInventory().addItem(map);
            p.getInventory().addItem(head);
    So... what is happening? This code worked without any issues in 1.7.10, and now in 1.10 it is crashing every client!

    Also, I'm using ProtocolSupport, but I don't know if that changes anything.

    EDIT: Removed ProtocolSupport, same issue.

    EDIT 2: Yeah, I was adding a map on my code, that's isn't the issue because I can view the map properly, the client crashes after viewing the skull.
     
    #1 MrPowerGamerBR, Jun 26, 2016
    Last edited: Jun 26, 2016
  2. Ok, found the fix, using

    Code (Text):
    meta.setDisplayName("Head");
    causes a crash on 1.10.X, removing that fixes the issue.