Skip to content

Detect an invalid server icon on all server software - #226

Merged
pavog merged 1 commit into
masterfrom
paper-server-icon-invalid
Nov 17, 2026
Merged

pavog merged 1 commit into
masterfrom
paper-server-icon-invalid

Conversation

@pavog

@pavog pavog commented Nov 17, 2026

Copy link
Copy Markdown
Member
[16:22:34 WARN]: Couldn't load server icon
java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "image" is null
[16:22:35 ERROR]: Couldn't load server icon
java.io.IOException: Bad PNG Signature: 6E6F74206120706E

When server-icon.png is not a PNG image of 64x64 pixels, the server cannot load it and has no icon in the server list.
This was not detected before.

This PR adds ServerIconInvalidProblem to the VanillaAnalyser.
The message comes from Vanilla's MinecraftServer, and Bukkit servers log it a second time from CraftServer, so both lines are reported as one problem with a counter.

The message says which images are allowed, and the solution is the existing FileDeleteSolution for server-icon.png, because the server runs normally without an icon.

Changes

  • add ServerIconInvalidProblem
  • add translation for the problem
  • add paper-server-icon-invalid-26-3.log

@pavog
pavog merged commit 85919ef into master Nov 17, 2026
3 checks passed
@pavog
pavog deleted the paper-server-icon-invalid branch November 17, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant