-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Null pointer exception #12922
Comments
I'm only following this project very loosely these days, bit this sounds curious. The stack trace shows only Gdx code except our Exception handling stuff. So first suspicion - Gdx's fault... But. ActorGestureListener retrieves a listener Actor reference from some Event - the Event class does not guarantee non-null here but ActorGestureListener dereferences it without a check. So, how can event processing get to a touchUp with an Event object that doesn't know which Actor the Listener that fired it was attached to? There's presumably no check because an unattached Listener won't fire Events... So, to have any chance to investigate one would need to know more - the save itself won't make a difference, but: Which distro - does it Wayland or not? Unusual screen layout / scaling / something? Most importantly: Where exactly did that dual click happen? Do Screenshot and paint an arrow on it? |
I'm using X11 not Wayland, 1920x1080, game in full screen. I don't know where exactly and what I clicked but I'm 100% sure it was in lower left corner of the screen, most likely unit panel because it's the only thing in lower left corner. (it was not left and right arrow on the panel used to cycle units because I don't use them) That's as much as I can say, I'll try repro this again, and if occurs again I'll share more info. |
OK, I have the exact repro steps, tested it and able to crash the game each time I do this:
It doesn't matter whether you first press and hold left button or right button, all that matter is that one button is pressed and held on "Exit City" Button while another button follows in same time. Here is screenshot as requested: Save file: |
Cool, repro steps are 90% of solution |
Is there an existing issue for this?
Game Version
4.15.9
Describe the bug
This was reported when the crash occured:
Platform: Desktop
Version: 4.15.9 (Build 1.100)
Rulesets: [Higher quality builtin sounds, Unciv Vanilla Music Pack, Civ V - Vanilla, Community Maps, Civ V Leader portraits, unciv realistic earth maps, Civ6 Tileset, Civ IV Music, Higher Quality City Ambience Sounds, Civ V - Gods & Kings, Civilization II Music, Edges Tileset, 5Hex Tileset, 4X Audio]
Last Screen:
com.unciv.ui.screens.worldscreen.WorldScreen
OS: Linux (amd64, 6.12.9+bpo-amd64)
Debian GNU/Linux 12 (bookworm)
Java: Eclipse Adoptium Temurin-21.0.6+7
Max Memory: 8192 MB
System default encoding: UTF-8
Message:
Save Mods:
Permanent audiovisual Mods:
Save Data:
Edited out due to size limitation, see attached zip file instead.
Steps to Reproduce
Not sure but I recall pressing both mouse keys, left followed by right relatively quickly, it was by mistake.
Screenshots
No response
Link to save file
Rim - 620 poteza.zip
Operating System
Linux
Additional Information
No response
The text was updated successfully, but these errors were encountered: