mojira.dev
MC-11834

"[SEVERE] Item entity # has no item?" is spammed in the console and items appear as stone for invalid IDs or on initial drop

The Server is spammed with Item entity *number* has no item!? until it crashes. ~~It is the spawners because it stops when i break them. The spawners are custom and spawn armour and weapons. A copy of the spawner is in the attachments and a crash report.


Confirmed for 13w41b with the following command, in a command block:

/setblock ~ ~1 ~ minecraft:mob_spawner 1 replace {EntityId:Item,SpawnData:{Health:5,Age:0,Item:{id:7,Damage:0,Count:1}}}

Observe the spam in the Development Console of the launcher, or the server console if you perform this on a server.

The message is now of the form:

Client> [02:10:41] [Client thread/ERROR]: Item entity 9740 has no item?!

Marcono says:

Like I wrote already, the problem is the getEntityItem() method (MCP 1.8 name). Minecraft expects it to be null when no item data is stored but this method is required to return an ItemStack for rendering (else the client will crash). Because of this currently it returns a new ItemStack if the stored ItemStack is null (and prints the "Item entity # has not item?!" error message).

Linked issues

MC-31287 Minecraft client complains about missing items Resolved MC-35821 Fishing Resolved MC-35967 Random freezing Resolved MC-36798 Constant spam of Item entity xxx has no Item on clientconsole Resolved MC-40610 Summon Item causes FPS drop Resolved

Attachments

Comments 112

You should - at least when you make such experiments - start Minecraft with the default launcher to allocate enough memory.

JVM Flags: 0 total;

your JVM has only 256 MB - that is way too less.

Why is this closed as invalid? I'm able to reproduce it, sans the crashes. As item spawners are a vanilla feature, they should not be spamming the console like this.

EDIT: I should note, OP's crash report seems to indicate a mod item, "CrimTopaz", outside the ordinary item ID range.

On the other hand, I am getting messages of the form

[SEVERE] Item entity 64 has no item?!

with legitimate, vanilla-supported item spawners. The number just keeps incrementing; I've had it climb into the millions before. It makes traversing the server.log tedious. It also makes it difficult to communicate with players via the console; their chat and your own quickly get shunted off the screen.

So, what's the bug ? The crash or spamming of the console ?
Crash : Invalid because of too less memory
Spamming: Please provide exact steps to reproduce.

I've added a new schematic in case OP's schematic did not work.

Steps to reproduce:

  1. Import the "itemsPirate.schematic" into your world. This schematic is designed to randomly spawn various rapidly-despawning items, and succeeds in doing so. All of these items are vanilla-compatible. It was originally made for a custom level I added to a copy of SethBling's Super Craft Bros map, so some of the items may be familiar to some people here. I should also note that SethBling's own spawners also caused this issue.

  2. Start a vanilla 1.5 server, and go near the spawner.

  3. Observe that the console is spammed with messages of the form

    [SEVERE] Item entity # has no item?!

    where # is a number which continuously increments.

  4. Observe that the items are still spawned as intended.

Can the description be updated and this be reopened? It's a real bug. Unless nobody else can reproduce it? I've had it on several servers on different computers.

102 more comments

Just reproduced in my vanilla singleplayer world.

Forced crash:

---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 20-7-16 16:16
Description: Manually triggered debug crash

java.lang.Throwable
	at bcx.az(SourceFile:1705)
	at bcx.t(SourceFile:1626)
	at bcx.av(SourceFile:968)
	at bcx.a(SourceFile:396)
	at net.minecraft.client.main.Main.main(SourceFile:124)


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

-- Head --
Thread: Client thread
Stacktrace:
	at bcx.az(SourceFile:1705)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bnn['FVbico'/251, l='MpServer', x=27,65, y=65,00, z=263,21]]
	Chunk stats: MultiplayerChunkCache: 1089, 1089
	Level seed: 0
	Level generator: ID 00 - default, ver 1. Features enabled: false
	Level generator options: 
	Level spawn location: World: (-56,64,256), Chunk: (at 8,4,0 in -4,16; contains blocks -64,0,256 to -49,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Level time: 219479 game time, 219479 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
	Forced entities: 107 total; [wa['Bat'/548, l='MpServer', x=-13,35, y=16,06, z=214,46], wa['Bat'/550, l='MpServer', x=-17,15, y=15,07, z=216,69], zi['Zombie'/43, l='MpServer', x=-50,50, y=13,00, z=336,50], yp['Creeper'/44, l='MpServer', x=-51,50, y=13,00, z=339,50], wa['Bat'/52, l='MpServer', x=-39,27, y=25,00, z=210,15], yp['Creeper'/53, l='MpServer', x=-32,50, y=15,00, z=228,50], zi['Zombie'/54, l='MpServer', x=-38,50, y=17,00, z=236,50], zd['Skeleton'/55, l='MpServer', x=-38,50, y=17,00, z=227,50], zi['Zombie'/56, l='MpServer', x=-40,49, y=46,00, z=223,76], yp['Creeper'/57, l='MpServer', x=-43,50, y=18,00, z=252,50], zi['Zombie'/58, l='MpServer', x=-43,50, y=18,00, z=252,50], wa['Bat'/59, l='MpServer', x=-41,36, y=25,04, z=260,23], yp['Creeper'/62, l='MpServer', x=-41,50, y=25,00, z=342,17], zi['Zombie'/64, l='MpServer', x=-38,50, y=25,00, z=341,50], zd['Skeleton'/71, l='MpServer', x=-30,50, y=40,00, z=188,50], bnn['FVbico'/251, l='MpServer', x=27,65, y=65,00, z=263,21], yp['Creeper'/72, l='MpServer', x=-29,50, y=40,00, z=186,50], yp['Creeper'/73, l='MpServer', x=-19,50, y=19,00, z=207,50], zd['Skeleton'/74, l='MpServer', x=-24,50, y=13,00, z=211,50], wa['Bat'/75, l='MpServer', x=-14,22, y=15,05, z=216,10], wl['Sheep'/76, l='MpServer', x=-28,12, y=67,00, z=234,36], wl['Sheep'/77, l='MpServer', x=-17,21, y=65,00, z=265,51], wa['Bat'/78, l='MpServer', x=-22,36, y=45,28, z=289,20], wl['Sheep'/79, l='MpServer', x=-17,47, y=66,00, z=280,74], wl['Sheep'/80, l='MpServer', x=-20,73, y=64,00, z=292,31], wl['Sheep'/81, l='MpServer', x=-24,29, y=64,00, z=304,78], wl['Sheep'/92, l='MpServer', x=-14,28, y=80,00, z=190,79], wl['Sheep'/93, l='MpServer', x=-4,65, y=80,00, z=201,45], wl['Sheep'/94, l='MpServer', x=-12,63, y=67,00, z=215,80], yp['Creeper'/95, l='MpServer', x=-15,50, y=49,00, z=227,50], wl['Sheep'/96, l='MpServer', x=-1,45, y=65,28, z=253,51], wl['Sheep'/97, l='MpServer', x=-3,55, y=65,53, z=251,47], zg['Spider'/98, l='MpServer', x=-2,81, y=65,00, z=244,66], zi['Zombie'/99, l='MpServer', x=-14,50, y=13,00, z=259,50], wl['Sheep'/100, l='MpServer', x=-9,73, y=66,00, z=303,55], wl['Sheep'/107, l='MpServer', x=7,73, y=74,00, z=211,51], wl['Sheep'/108, l='MpServer', x=7,29, y=73,00, z=215,47], zi['Zombie'/109, l='MpServer', x=11,07, y=40,00, z=258,93], yp['Creeper'/110, l='MpServer', x=11,70, y=40,00, z=258,76], yp['Creeper'/120, l='MpServer', x=19,50, y=15,00, z=197,50], wa['Bat'/121, l='MpServer', x=16,25, y=37,70, z=257,44], wa['Bat'/122, l='MpServer', x=13,58, y=39,00, z=255,58], wl['Sheep'/123, l='MpServer', x=22,22, y=65,00, z=270,57], wl['Sheep'/124, l='MpServer', x=32,13, y=65,00, z=267,45], wl['Sheep'/125, l='MpServer', x=21,07, y=65,00, z=271,38], wl['Sheep'/126, l='MpServer', x=23,53, y=65,00, z=274,98], wl['Sheep'/127, l='MpServer', x=21,07, y=65,00, z=270,07], wl['Sheep'/128, l='MpServer', x=28,67, y=65,00, z=271,97], wl['Sheep'/129, l='MpServer', x=31,00, y=65,00, z=267,79], wl['Sheep'/130, l='MpServer', x=23,59, y=65,00, z=271,88], wl['Sheep'/131, l='MpServer', x=22,54, y=65,00, z=274,75], wl['Sheep'/132, l='MpServer', x=23,65, y=65,00, z=275,92], wl['Sheep'/133, l='MpServer', x=22,45, y=65,00, z=275,92], wl['Sheep'/134, l='MpServer', x=28,48, y=65,00, z=273,77], wl['Sheep'/135, l='MpServer', x=21,07, y=65,00, z=273,50], wl['Sheep'/136, l='MpServer', x=21,52, y=65,00, z=274,45], wl['Sheep'/137, l='MpServer', x=24,61, y=65,00, z=275,66], wl['Sheep'/141, l='MpServer', x=46,66, y=68,00, z=202,75], wl['Sheep'/142, l='MpServer', x=46,80, y=69,00, z=205,52], wl['Sheep'/143, l='MpServer', x=40,26, y=68,00, z=221,56], wl['Sheep'/144, l='MpServer', x=41,81, y=70,00, z=229,68], zd['Skeleton'/145, l='MpServer', x=44,09, y=69,00, z=234,55], zi['Zombie'/146, l='MpServer', x=47,50, y=21,00, z=270,50], zi['Zombie'/147, l='MpServer', x=47,50, y=21,00, z=272,50], wl['Sheep'/150, l='MpServer', x=55,36, y=72,00, z=186,45], wl['Sheep'/152, l='MpServer', x=53,27, y=72,00, z=183,54], wl['Sheep'/153, l='MpServer', x=50,49, y=69,00, z=199,27], wl['Sheep'/154, l='MpServer', x=53,38, y=71,00, z=197,51], wl['Sheep'/155, l='MpServer', x=62,84, y=72,00, z=192,45], wl['Sheep'/156, l='MpServer', x=60,82, y=70,00, z=211,60], wl['Sheep'/157, l='MpServer', x=62,23, y=70,00, z=225,55], wl['Sheep'/158, l='MpServer', x=60,62, y=70,00, z=240,79], wi['Pig'/159, l='MpServer', x=55,46, y=73,00, z=245,30], zi['Zombie'/160, l='MpServer', x=52,49, y=26,00, z=297,24], wl['Sheep'/163, l='MpServer', x=70,69, y=71,00, z=190,89], wl['Sheep'/164, l='MpServer', x=71,90, y=71,00, z=186,59], wl['Sheep'/165, l='MpServer', x=71,49, y=71,00, z=205,79], wl['Sheep'/166, l='MpServer', x=65,25, y=71,00, z=208,20], wi['Pig'/167, l='MpServer', x=68,03, y=74,00, z=261,61], zi['Zombie'/169, l='MpServer', x=84,50, y=67,00, z=191,50], wa['Bat'/170, l='MpServer', x=86,80, y=59,10, z=194,59], wl['Sheep'/171, l='MpServer', x=88,70, y=70,00, z=210,58], zi['Zombie'/172, l='MpServer', x=86,50, y=67,00, z=194,50], wl['Sheep'/173, l='MpServer', x=84,20, y=75,00, z=209,53], wa['Bat'/174, l='MpServer', x=94,65, y=13,90, z=260,09], yp['Creeper'/175, l='MpServer', x=85,50, y=35,00, z=261,50], wi['Pig'/176, l='MpServer', x=100,25, y=68,00, z=257,59], yp['Creeper'/177, l='MpServer', x=89,50, y=25,00, z=286,50], wi['Pig'/178, l='MpServer', x=88,37, y=68,00, z=279,28], zd['Skeleton'/179, l='MpServer', x=91,23, y=17,00, z=298,49], zd['Skeleton'/180, l='MpServer', x=95,50, y=17,00, z=310,50], wl['Sheep'/181, l='MpServer', x=87,73, y=72,00, z=310,50], wl['Sheep'/182, l='MpServer', x=93,50, y=71,00, z=310,50], wl['Sheep'/183, l='MpServer', x=89,50, y=70,00, z=311,96], wl['Sheep'/188, l='MpServer', x=105,50, y=90,00, z=184,04], wl['Sheep'/189, l='MpServer', x=102,49, y=97,00, z=186,25], wl['Sheep'/190, l='MpServer', x=99,41, y=99,00, z=186,49], zi['Zombie'/193, l='MpServer', x=100,50, y=60,00, z=221,50], zd['Skeleton'/194, l='MpServer', x=99,50, y=60,00, z=220,50], yp['Creeper'/197, l='MpServer', x=105,50, y=20,00, z=263,50], zd['Skeleton'/198, l='MpServer', x=107,50, y=20,00, z=264,50], yp['Creeper'/200, l='MpServer', x=107,50, y=40,00, z=269,50], zi['Zombie'/202, l='MpServer', x=100,50, y=19,00, z=272,50], zi['Zombie'/203, l='MpServer', x=104,34, y=28,00, z=288,18], yp['Creeper'/204, l='MpServer', x=104,50, y=37,00, z=278,50], yq['Enderman'/205, l='MpServer', x=103,81, y=37,00, z=277,50], wa['Bat'/208, l='MpServer', x=104,15, y=35,15, z=332,72]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer 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_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 237065768 bytes (226 MB) / 479752192 bytes (457 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 6800 Series GL version 4.5.13399 Compatibility Profile Context 15.200.1062.1004, 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: 4x Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz
Sybren Gjaltema

I'd like to comment that this happened to me too in Multiplayer. It seems to happen when spawning an item that doesn't exist (apparently).
I am using Spigot 1.10.2, which has a Material enum containing the 'COCOA' material. When spawning this item this error starts to pop up.
I'd also like to add that /give <me> cocoa results in "There is no such item with name minecraft:cocoa".

@unknown

  1. modded server, not supported.

  2. cocoa is a block, without a item.

  3. cocoa beans are dye:3

Is this still an issue in the most recent versions (currently that is 1.13.2, or the latest snapshot 19w06a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

This issue was technically fixed in 1.11 (=> 16w32a, the first snapshot); the message is no longer logged. However, the fix results in removing the items clientside (MC-111978) which is a bit worse.

I'm resolving this as fixed since technically it is fixed, in that there is no longer log spam or a stone item appearing.

I'm also going to clarify this issue to refer only to newly spawned items or invalid items displaying as stone or and spamming the log. (And as a very belated response to @unknown's comment: cocoa wasn't an item but only a block; it was only dye back then and spigot, being spigot, named dye ink sac. That's what your issue was, and it wouldn't apply in 1.13+.}}

Whatever crash was referenced is presumably separate and likely relates to old behavior with forcing invalid items to render; that crash report doesn't seem to exist anymore. There's also comments saying that the crash was modded only, so I think it's probably best to just completely exclude it. And this ticket was first created in a pre-1.8❓ era where you could use block IDs for all items, even invalid ones; that hasn't been a thing for a while.

frazer smith

(Unassigned)

Confirmed

Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w21b, Snapshot 13w22a, ..., Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.10, Minecraft 1.10.2

Minecraft 16w32a

Retrieved