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

[MHQ - 50.03 Nightly - CI1729] - Deploying Patrol lance created NPE - java.lang.IllegalArgumentException: Unknown Weight Class in getClassName(int) #5694

Closed
5 tasks done
UlyssesSockdrawer opened this issue Jan 7, 2025 · 1 comment · Fixed by #5701
Labels
Bug Severity: High Issues described as high severity as per the new issue form StratCon Bugs relating strictly to StratCon

Comments

@UlyssesSockdrawer
Copy link
Collaborator

Brief Description *

Apologies - only save file available is from after the error happened. I know this isn't super useful, shame on me for not saving in advance.

Campaign is in the Age of War, and an Artillery Base modifier is present, so I suspect there might be some kind of unit generation issued tied into FG3.

Issue occured when deploying the Patrol lance to the bottom left hex on the StratCon map.

image

NPE was triggered, with the following in the logs:

"22:21:26,560 ERROR [mekhq.MekHQ] {AWT-EventQueue-0}
mekhq.MekHQ.lambda$main$1(MekHQ.java:296) - Uncaught java.lang.IllegalArgumentException detected. Please open up an issue containing all logs, the game save file, and customs at https://github.com/MegaMek/megamek/issues . If Sentry is enabled, the error has also been logged.
java.lang.IllegalArgumentException: Unknown Weight Class in getClassName(int)
at megamek.common.EntityWeightClass.getClassName(EntityWeightClass.java:492)
at "

Log attached further down the report.

3. Steps to Reproduce

  1. Go to Area of Operations tab once Patrol lance has returned.
  2. Right click to deploy Patrol lance.
  3. NPE triggered (hopefully).
  4. 'Deployment' window remains open, but cannot click confirm. Must be closed via 'X' in top right.
  5. Force appears to deploy correctly to the map and a scenario is generated.

Attach Files

Log:
mekhq.log

Save file:
The Orphan Eater's Batshit Bastards24750515-AfterError.cpnx.gz

Severity *

High (Major Disruption): A major feature is broken or incorrect, but a workaround exists.

MekHQ Suite Version *

50.03 CI1729 Nightly

Operating System *

Win11

Java Version *

Java Vendor: Eclipse Adoptium Java Version: 17.0.12

Final Verification

  • I confirm this is a single, unique issue that hasn't been reported before
  • I have filled and provided all necessary information above
  • I have included any and all logs, custom units, and CPNX (save) files
  • I have asked on MegaMek Discord about this issue
  • I have confirmed this issue is being opened on the correct repository: MegaMek, MegaMekLab, or MekHQ
@UlyssesSockdrawer UlyssesSockdrawer added Bug StratCon Bugs relating strictly to StratCon Severity: High Issues described as high severity as per the new issue form labels Jan 7, 2025
@IllianiCBT
Copy link
Collaborator

Closing as resolved

This was a really good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Severity: High Issues described as high severity as per the new issue form StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants