Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #982

Closed
sentry-io bot opened this issue Feb 22, 2021 · 3 comments
Closed

NullPointerException #982

sentry-io bot opened this issue Feb 22, 2021 · 3 comments
Assignees
Labels
Type: bug Something isn't working
Projects
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 22, 2021

Sentry Issue: POWERNUKKIT-MA

https://discord.com/channels/728280425255927879/728284682646716416/813527510167715840

image

NullPointerException: None
    at cn.nukkit.level.format.anvil.ChunkSection.setBlockSkyLight(ChunkSection.java:464)
    at cn.nukkit.level.format.generic.BaseChunk.setBlockSkyLight(BaseChunk.java:313)
    at cn.nukkit.level.format.generic.BaseFullChunk.populateSkyLight(BaseFullChunk.java:310)
    at cn.nukkit.level.generator.task.PopulationTask.generationTask(PopulationTask.java:116)
    at cn.nukkit.level.generator.task.PopulationTask.syncGen(PopulationTask.java:48)
...
(14 additional frame(s) were not displayed)

Exception in asynchronous task
@powernukkit
Copy link

powernukkit bot commented Feb 22, 2021

Hey @sentry-io[bot], thank you for the report!

⚠️ I could not find which PowerNukkit version you are using from your message. ⚠️

Please, run the command: /debugpaste it will generate a link, send us this link replying this issue.
It's an important step to get your issue resolved.

Don't say latest or current version, we support different versions and your latest may not be the same latest as our, and your latest will not be the same latest in the future, so please, use a fixed version.

Thank you 👍

@joserobjr joserobjr added the Type: bug Something isn't working label Jul 16, 2021
@joserobjr joserobjr added this to the 1.5.2.0-PN milestone Jul 16, 2021
@joserobjr joserobjr self-assigned this Jul 16, 2021
@joserobjr joserobjr added this to Not Triaged in Triage via automation Jul 16, 2021
@joserobjr joserobjr moved this from Not Triaged to Triaged in Triage Jul 16, 2021
@joserobjr
Copy link
Member

Cause: Side effect of light cache corruption in ChunkSection (message: [ERROR] Failed to decompress a chunk section) makes the skyLight field be empty when read at ChunkSection:646

@sentry-io
Copy link
Author

sentry-io bot commented Jul 16, 2021

Sentry issue: POWERNUKKIT-E5Y

1.5.1.0-PN (release)

java.util.zip.DataFormatException: incorrect header check
    at java.util.zip.Inflater.inflateBytesBytes(Inflater.java)
    at java.util.zip.Inflater.inflate(Inflater.java:385)
    at java.util.zip.Inflater.inflate(Inflater.java:471)
    at cn.nukkit.utils.ZlibThreadLocal.inflate(ZlibThreadLocal.java:81)
    at cn.nukkit.utils.Zlib.inflate(Zlib.java:65)
    at cn.nukkit.utils.Zlib.inflate(Zlib.java:61)
    at cn.nukkit.level.format.anvil.ChunkSection.inflate(ChunkSection.java:520)
    at cn.nukkit.level.format.anvil.ChunkSection.getLightArray(ChunkSection.java:547)
    at cn.nukkit.level.format.anvil.ChunkSection.getBlockLight(ChunkSection.java:475)
    at cn.nukkit.level.format.anvil.Chunk.getBlockLight(Chunk.java:476)
    at cn.nukkit.level.Level.getBlockLightAt(Level.java:2863)
    at cn.nukkit.level.Level.computeRemoveBlockLight(Level.java:1895)
    at cn.nukkit.level.Level.updateBlockLight(Level.java:1868)
    at cn.nukkit.level.Level.doTick(Level.java:863)
    at cn.nukkit.Server.checkTickUpdates(Server.java:1289)
    at cn.nukkit.Server.tick(Server.java:1371)
    at cn.nukkit.Server.tickProcessor(Server.java:1143)
    at cn.nukkit.Server.start(Server.java:1103)
    at cn.nukkit.Server.<init>(Server.java:775)
    at cn.nukkit.Nukkit.main(Nukkit.java:199)
java.io.IOException: Unable to inflate zlib stream
    at cn.nukkit.utils.ZlibThreadLocal.inflate(ZlibThreadLocal.java:90)
    at cn.nukkit.utils.Zlib.inflate(Zlib.java:65)
    at cn.nukkit.utils.Zlib.inflate(Zlib.java:61)
    at cn.nukkit.level.format.anvil.ChunkSection.inflate(ChunkSection.java:520)
    at cn.nukkit.level.format.anvil.ChunkSection.getLightArray(ChunkSection.java:547)
    at cn.nukkit.level.format.anvil.ChunkSection.getBlockLight(ChunkSection.java:475)
    at cn.nukkit.level.format.anvil.Chunk.getBlockLight(Chunk.java:476)
    at cn.nukkit.level.Level.getBlockLightAt(Level.java:2863)
    at cn.nukkit.level.Level.computeRemoveBlockLight(Level.java:1895)
    at cn.nukkit.level.Level.updateBlockLight(Level.java:1868)
    at cn.nukkit.level.Level.doTick(Level.java:863)
    at cn.nukkit.Server.checkTickUpdates(Server.java:1289)
    at cn.nukkit.Server.tick(Server.java:1371)
    at cn.nukkit.Server.tickProcessor(Server.java:1143)
    at cn.nukkit.Server.start(Server.java:1103)
    at cn.nukkit.Server.<init>(Server.java:775)
    at cn.nukkit.Nukkit.main(Nukkit.java:199)

joserobjr added a commit that referenced this issue Jul 17, 2021
LoboMetalurgico added a commit that referenced this issue Oct 27, 2021
Fixes #982 populator error due to corruption on compressed light data
Triage automation moved this from Triaged to Closed Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
Triage
Closed
Development

No branches or pull requests

1 participant