mojira.dev
MC-147754

Crash while opening world / while ticking entity: "IllegalStateException: POI data mismatch: already registered at ev{x=##, y=##, z=##}"

Was going to test some bugs today, but the world crashed when trying to open it, twice. Both crash reports attached, I can also attach the world file if desired.

Not sure if this ticket should be private or not.

1.14 Pre-release 1\: [^crash-2019-04-10_16.09.26-server.txt]

java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=-1, y=31, z=47}
	at aqc.a(SourceFile:72)
	at aqc.a(SourceFile:43)
	at aqc$$Lambda$2583/1281199057.accept(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at aqc.<init>(SourceFile:43)
	at aqa$$Lambda$2444/1399778887.apply(Unknown Source)
	at bxt.a(SourceFile:123)
	at bxt$$Lambda$2578/72956740.apply(Unknown Source)
	at java.util.Optional.map(Optional.java:215)
	at bxt.a(SourceFile:122)
	at bxt.a(SourceFile:102)
	at bxt.d(SourceFile:76)
	at aqa.a(SourceFile:69)
	at aqa.a(SourceFile:65)
	at aqa$$Lambda$2806/45311108.apply(Unknown Source)
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
	at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250)
	at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
	at java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
	at bgn$1.tryAdvance(SourceFile:164)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at aqa.b(SourceFile:85)
	at apj.b(SourceFile:49)
	at apj.a(SourceFile:34)
	at apj.a(SourceFile:19)
	at apo.b(SourceFile:31)
	at ajb.a(SourceFile:249)
	at ajb$$Lambda$2783/813156550.accept(Unknown Source)
	at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:600)
	at ajb.c(SourceFile:249)
	at ajb.a(SourceFile:221)
	at ave.K(SourceFile:255)
	at ain.cZ(SourceFile:623)
	at aim.k(SourceFile:2257)
	at ain.k(SourceFile:479)
	at aib.k(SourceFile:140)
	at aim.h(SourceFile:2102)
	at ain.h(SourceFile:293)
	at ave.h(SourceFile:293)
	at vf.a(SourceFile:581)
	at vf$$Lambda$2749/1657880339.accept(Unknown Source)
	at bha.a(SourceFile:669)
	at vf.a(SourceFile:384)
	at net.minecraft.server.MinecraftServer.b(SourceFile:817)
	at net.minecraft.server.MinecraftServer.a(SourceFile:754)
	at dwy.a(SourceFile:128)
	at net.minecraft.server.MinecraftServer.run(SourceFile:629)
	at java.lang.Thread.run(Thread.java:745)

Related issues

MC-147763 The game crashed whilst ticking entity MC-147768 Converting world to 1.14 pre release 1 regenerates some chunks MC-147782 crash report MC-147783 Updating from snapshot 19w14b to 1.14 Pre-Release 1 corrupts certain villagers. MC-147802 "ticking entity" villager MC-147820 The game crashed whilst ticking entity The game crashed whilst ticking entity Error: java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=31, y=79, z=-305} MC-147823 Ticking Villager Entity Server Crash due to POI data mismatch MC-147830 One specific chunk regenerates MC-147834 The game crashed whilst ticking entity The game crashed whilst ticking entity Error: java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=15, y=79, z=255} MC-147835 Game crashed while Ticking Entity MC-147863 Crash when villager claims smoker MC-147875 Ticking entity Crash MC-147921 POI data mismatch - Crash whilst loading world in 1.14 Pre-Release1 MC-147979 1.14-pre1 crash when loading world from 19w14b

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media]
muzikbike

Destroying all workplaces and killing all villagers in the world loaded in a previous snapshot seemed to resolve this issue, although some chunks appeared to have been deleted.

ednoria

Same "point of interest" crash, this happens after optimizing world for the pre-release and clearing all caches.

ETA: Also happens if the world is NOT optimized.

brickticks

Just happened to me too.  Stupid Snapshot!

migrated

Just had a ton of chunks regenerate on me in the 1.14 Pre-Release. World is totally fine on 19w14b but as soon as I update it regenerates the chunks.

Also had the POI error when loading certain chunks, would crash the server.

boq

Crash will may occur for chunks that contain POIs (villager workplaces, beds, etc) that were created:

  • in version before introduction of new villages (very probable)

  • in this pre-release (large view range on freshly generated world increases probability)

We will try to re-create broken data, but villager assignments may be lost.

ednoria

By "in this snapshot" do you mean in this pre-release, or in the snapshot before the pre-release? Or something else entirely? 🙂

 

migrated

It's spamming in the server console for me and regenerating chunks with chests/furnances.

--> attached log.txt.

Johnibur

This issue occurs only if there is "already" registered POI data upon restart. It means this issue never occurs if I remove the POI data (deleting the files from the poi world folder). But even with new computed data from this version pre-1, this issue will be happening again after restarting the server if there is any existing POI data, old one or not.

Mitko1239

Crash happened to me when upgrading to 1.14-pre1:

[media]
boq

Please DON'T remove POI data, it will only make this issue worse.

migrated

Confirmed for 1.14 pre-release 1

migrated
[media]

I have Got the Errors on my Server when Updating my Server to 1.14 Pre-release 1

migrated

Had this with a new world generated in the pre-release 1, so its not necessarily related to migrating old save data or optimizing.

migrated

This happened to me as well, and only affects to the entity, Villager.
Loading up other worlds from previous snapshots seems to work fine.

migrated

hopefully we will get this bug fixed in 1.14 pre-release 2

migrated

Confirmed. Some worlds from the previous snapshot can be loaded properly, but the world that already in pre-release 1 version can no longer be loaded again.

Nixinova

As soon as I loaded 1.14-pre1:

The game crashed whilst ticking entity
Error: java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=-49, y=79, z=-17}
migrated

This may or may not be causing chunk corruption also, loading up a world with this issue appears to cause some chunks to completely break. Reloading the world reveals the chunks to have been completely reset.

It's worth noting that I have not yet experienced this happening in worlds without this issue, even when transitioning from 19w14b to 1.14-pr1. If you need a test world, I will be happy to provide one for you.

migrated

I can confirm that it will break your chuck(s).

Had 50% of a house deleted because of it, it complained about a POI being allready registered on 1727,79,-913 , which is an airblock just above my house ...

------------

[22:49:00] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[22:49:04] [Server thread/ERROR]: Couldn't load chunk
java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=1727, y=79, z=-913}
at aqc.a(SourceFile:72) ~[server.jar:?]
at aqc.a(SourceFile:43) ~[server.jar:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201]
at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201]
at aqc.<init>(SourceFile:43) ~[server.jar:?]
at bxt.a(SourceFile:123) ~[server.jar:?]
at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_201]
at bxt.a(SourceFile:122) ~[server.jar:?]
at bxt.a(SourceFile:102) ~[server.jar:?]
at bxt.d(SourceFile:76) ~[server.jar:?]
at aqa.a(SourceFile:165) ~[server.jar:?]
at bxo.a(SourceFile:113) ~[server.jar:?]
at us.f(SourceFile:416) ~[server.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) [?:1.8.0_201]
at agf.h(SourceFile:135) [server.jar:?]
at agf.p(SourceFile:114) [server.jar:?]
at vd$a.p(SourceFile:438) [server.jar:?]
at vd.d(SourceFile:194) [server.jar:?]
at net.minecraft.server.MinecraftServer.p(SourceFile:698) [server.jar:?]
at agf.bf(SourceFile:99) [server.jar:?]
at net.minecraft.server.MinecraftServer.o(SourceFile:676) [server.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:467) [server.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:370) [server.jar:?]
at ug.d(SourceFile:218) [server.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:602) [server.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]

-------------

 

migrated

Ticking on "trapped" villagers. Had to eliminate a villager in a player's automatic carrot farm in order to get the server to boot.

migrated

Confirmed. Crash when villagers are in sight.

[media]
migrated

Villagers(NPC) are not the problem, new 1.14 villages(location) are. Problem still occurs when you kill all NPCs
Did not have this problem with 1.13.2 villages, but a newly generated village is a problem.
When you delete the POI files you can play again, until you find a 1.14 village, then close your world and try to rejoin.
POI likely stands for Points of Interest, villages are a point of interest. A Pillager Outpost is likely aso a Point of Interest, but no crash at those locations.

Hope this helps.

Johnibur

No MuMe, points of interest are the blocks villagers can interact with: beds, bells, and all the working stations: cauldron, brewing stands, lectern, stonecutter, loom, grindstone, composter, cartography table, smithing table, barrel, smoker, blast furnace and fletching table.
The bug can occur with poi created either with this pre1, or with versions prior to 19w11a (the village overhaul).
But even if it seems to not trigger the problem at first, like boq said, do not delete the poi data, and be sure to have a world backup.

migrated

If I don't delete POI data I cannot play at all, as it crashes right after starting the world.
But my only reason to do this is to check for bugs with my Realms server before the full release. My Server uses multiple command systems and datapacks, so I need to test those before the server breaks after the automatic update of realms. As long as i delete POI data I can at least test the other things.

migrated

I may have found a better work round than removing the POI files.

I tried that and chunks kept regening every time I opened the game, even if I had removed blocks etc. Then I looked through posts on the mcr files and found one from way back that suggested renaming the level.dat_mcr to level.dat_mcr_old so I gave it a try and touch wood the game has been more stable since.

I have had one odd crash but not related to this but a fatal in the Java runtime environment which I will look into seperatly.

 

Hope this helps.

migrated

Just to join the mass.

Confirmed! Yesterday, when I first upgraded server to 1.14-pre1, I played normally. Today I cannot join the server (with server being crashed) because of this bug.

migrated

Can you mark my MC-147877 as duplicate if MC-147768 / MC-147783MC-147830 are marked?

migrated

My case was this:

In the morning I started MC to play for a few minutes. New version. Backup and load. I noticed there are now guardians around the monument and other fish in the ocean around. Then I went home and switched the game off. When I loaded my world when I came back from work, I found my house gone, only one side still there, surroundings seemed OK too. I checked with a bit of digging that the basement is gone too. best described by MC-147768.

Johnibur

@boq  Will the fix of this bring in the end any data loss to existing worlds prior to the villages overhaul?

migrated

What does being fixed in "Future Version - 1.14+" mean? Does it mean I have to wait until the full release of 1.14 rather than just the next pre-release?

migrated

maybe on 1.14 pre-release 2

Johnibur

"Future Version - xx" is a common name for the strict next upcoming version not labeled on Mojira yet. Will be 1.14-pre2 in this case.

migrated

Confirmed for Pre Release 1

I also had the same problem opening a world created in previous snapshot versions. It usually opens the 1st time in Pre 1, but the second time the crash occurs. It seems that the crash is always related to the villager entity in certain chunks created in previous versions of snapshots. If you drop a villager with an egg in the creative mode in these chunks, the crash also occurs instantly. As in the logs posted here, the villager entity is always referred in these errors.

  • Entity being ticked -
    Details:
    Entity Type: minecraft: villager (bird)
    Entity ID: 222
    Entity Name: Dorfbewohner
    Entity's Exact location: -756.53, 66.00, -852.33
    Entity's Block location: World: (-757,66, -853), Chunk: (at 11.4,11 in -48, -54; contains blocks -768,0, -864 to -753,255, -849), Region : (-2.2, contains chunks -64, -64 to -33, -33, blocks -1024.0, -1024 to -513.255, -513)

By deleting the villager entity mentioned in the logs with nbtexplorer it is possible to enter the world without the crash, but some chunks are lost.

Johnibur

Unfortunately the issue is not fixed in pre2.

[14:37:27] [Server thread/INFO]: Starting minecraft server version 1.14 Pre-Release 2
[]
[14:37:36] [Server thread/ERROR]: Failed to load POI chunk
java.lang.IllegalStateException: POI data mismatch: already registered at ev{x=15, y=79, z=-1}
        at aqc.a(SourceFile:81) ~[server.jar:?]
        at aqc.a(SourceFile:44) ~[server.jar:?]
        

Edit: although, the aforesaid chunks are not being overwritten this time.

Edit: error message only appeared on first startup. Second try, no error.

boq

Working as intended, corrupted data needs to be regenerated, but that does not destroy whole chunk.

brickticks

OK, Mr. Bok, I'll try it, but I'm holding you responsible if Skelly, Bones, Ice Runner, Zenith, Rusty, Bedrock, Leonard, Otis, Lars, Jellie, Jeb_, Toast, Rueben, Drumstick's cousin Drumstick, Chocolate, Gabe, Goldie, or any of my other pet are harmed by this!!

[media]

!

[media]
boq

If you test anything other than release without backups, it's your own fault.

muzikbike

boq

Community Consensus

Minecraft 1.14 Pre-Release 1

Minecraft 1.14 Pre-Release 2

Retrieved