yairm210 / Unciv

Open-source Android/Desktop remake of Civ V
Mozilla Public License 2.0
8.5k stars 1.58k forks source link

Game crash on Start New Game #9356

Closed Marko10105 closed 1 year ago

Marko10105 commented 1 year ago

Platform: Android Version: 4.6.9-patch2 (Build 861) Rulesets: [The Undead, Policy mod, Origins, Civ6Nations, Civ V - Vanilla, Greek Civ Split, Medieval Civilizations, Community Maps, Extra Buildings, Civ Army Color Style Sheet, WW2 Nations, Civ V - Gods & Kings, Byzantium Buffed, Mitteleuropa and Balkans, Outpost Mod] Last Screen: com.unciv.ui.screens.newgamescreen.NewGameScreen


Device Model: W-K211-EEA API Level: 29


Message:


java.lang.NullPointerException: Attempt to read from field 'float com.badlogic.gdx.math.Rectangle.x' on a null object reference
    at com.unciv.ui.components.NativeBitmapFontData.getGlyph(Fonts.kt:122)
    at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.getGlyphs(BitmapFont.java:845)
    at com.unciv.ui.components.NativeBitmapFontData.getGlyphs(Fonts.kt:177)
    at com.badlogic.gdx.graphics.g2d.GlyphLayout.setText(GlyphLayout.java:178)
    at com.badlogic.gdx.graphics.g2d.GlyphLayout.setText(GlyphLayout.java:95)
    at com.badlogic.gdx.scenes.scene2d.ui.Label.computePrefSize(Label.java:162)
    at com.badlogic.gdx.scenes.scene2d.ui.Label.scaleAndComputePrefSize(Label.java:147)
    at com.badlogic.gdx.scenes.scene2d.ui.Label.getPrefWidth(Label.java:244)
    at com.badlogic.gdx.scenes.scene2d.ui.Value$3.get(Value.java:87)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.computeSize(Table.java:827)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.getPrefWidth(Table.java:432)
    at com.badlogic.gdx.scenes.scene2d.ui.Button.getPrefWidth(Button.java:244)
    at com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup.computeSize(VerticalGroup.java:117)
    at com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup.getPrefWidth(VerticalGroup.java:295)
    at com.badlogic.gdx.scenes.scene2d.ui.Value$3.get(Value.java:87)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.computeSize(Table.java:827)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.getPrefWidth(Table.java:432)
    at com.badlogic.gdx.scenes.scene2d.ui.SplitPane.getPrefWidth(SplitPane.java:173)
    at com.badlogic.gdx.scenes.scene2d.ui.Value$3.get(Value.java:87)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.computeSize(Table.java:827)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.layout(Table.java:953)
    at com.unciv.ui.screens.pickerscreens.PickerPane.layout(PickerPane.kt:65)
    at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:113)
    at com.badlogic.gdx.scenes.scene2d.ui.Table.draw(Table.java:108)
    at com.badlogic.gdx.scenes.scene2d.Group.drawChildren(Group.java:111)
    at com.badlogic.gdx.scenes.scene2d.Group.draw(Group.java:58)
    at com.badlogic.gdx.scenes.scene2d.Stage.draw(Stage.java:129)
    at com.unciv.ui.screens.basescreen.UncivStage.access$draw$s80204510(UncivStage.kt:17)
    at com.unciv.ui.screens.basescreen.UncivStage$draw$1.invoke(UncivStage.kt:53)
    at com.unciv.ui.screens.basescreen.UncivStage$draw$1.invoke(UncivStage.kt:53)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
    at com.unciv.ui.screens.basescreen.UncivStage.draw(UncivStage.kt:53)
    at com.unciv.ui.screens.basescreen.BaseScreen.render(BaseScreen.kt:83)
    at com.badlogic.gdx.Game.render(Game.java:48)
    at com.unciv.UncivGame.access$render$s2211858(UncivGame.kt:125)
    at com.unciv.UncivGame$wrappedCrashHandlingRender$1.invoke(UncivGame.kt:143)
    at com.unciv.UncivGame$wrappedCrashHandlingRender$1.invoke(UncivGame.kt:143)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
    at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
    at com.unciv.UncivGame.render(UncivGame.kt:456)
    at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:474)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1573)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)

``
yairm210 commented 1 year ago

Time to close