Steps to reproduce:
. have a ship in Europe with 100Cotton and 30Cotton
. Shift+click on Cotton, move it from the ship to Europe ("down")
. select a value of 200 (intention to move/sell 200 cotton to Europe)
Expected: a GUI explanation why it's not possible
Actual: "Server can't do that", a weird log file etc.
P.S. I'm not sure how developers feel about this thing. If you think this should be closed, you may close the issue.
That error usually appears when client and server are out of sync.
It signifies a problem in the code that needs to be investigated, but to do that we need
the savegame and log file.
Exactly. This should only appear on OOS or other kinds of exceptions. But instead it happens "normally" when you unload more than you have.
BTW, I re-tested the steps above, and it actually happens when unloading any kind of cargo anywhere. Like unloading 2 food from a ship that only has 1 food. Or from Wagon. It reproduces 100%.
If the issue gets confirmed, please remove the "needs more info" status..
Confirmed.
This error does not have to do with sync issues , but looks like a corner case in unload goods handing.
When using shift+click , manually type in a bigger number then available to trigger this bug.
savefile and log with latest trunk attached.
Last edit: Lone_Wolf 2017-10-28
Agreed that this is the problem. I am somewhat surprised it works, so kudos to Vasya for spotting this. The amount of goods present is clearly available in the dialog so we should be able to prevent entering an invalid value. Looking at this next.
Added an InputValidator to the combobox in git.69161b5. AFAICT now if you enter an invalid amount, it is quietly ignored without crash or consequence.
title changed
I am having no such trouble. Something very odd is happening for you. Please supply more detail (log file, save game, or even the terminal output in COMMS debug mode).
Another non-reproduceable bug that has gone quiet.