Trying to refill my Food Truck from my pot of gasoline results in an error (But the vehicle is indeed refilled after ignoring the error). This error also occurs if I store the gasoline in another container...
After some testing, this bug seems to only occur if I have 2 objects stored in a same item (or pocket?) in my inventory, if I drop one of the two (The paper wrapper in the save), the bug appears no more.
To refill my vehicle without errors happening every time.
The bug also seems to make the game believe I have gasoline stored in the item in which I have two items, since it gives me the option to refill from there... If you select that option, the game tries to refill the vehicle with whatever you have stored in there (DEBUG: tried to put an item (Thorazine) in a container (metal_tank) that cannot contain it).
Oh, and the vehicle is "Completely refilled" after you try to refill it if it gives you the error.
error report:
DEBUG : ERROR: item_contents::only_item called with 2 items contained
FUNCTION : const item& item_contents::only_item() const
FILE : src/item_contents.cpp
LINE : 851
This is an issue mentioned in PR #41439
It will continue until the check is no longer bypassed by the container system.
This is an issue mentioned in PR #41439
It will continue until the check is no longer bypassed by the container system.
Oh, then good, at least the issue is known.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.
I can reproduce this error, by attempting to fill a vehicle gasoline tank from a steel jerrycan of gasoline, while wearing any article of clothing with more than 1 item in its pockets.
examine the vehicle, and try to fill a tank with gasoline - error item_contents::only_item called with 2 items contained (this is referring to your clothing with 2 things in the pockets)examine and try to fill again - no errorsHere, I have attempted to fill a beetle's gas tank while wearing jeans with 3 items in them. The error:

After skipping the error, I am prompted which inventory item to fill the tank with. The jerrycan is there, which is good - but I can also select the jeans:

If I choose to fill the tank from the jeans, one of the items disappears from the jeans (a cell phone), and I get a message that the tank has been refilled (though it hasn't):

I can do this with items from any of my pockets. If I have a backpack full of bricks, I can fill the gas tank with bricks from the backpack.
Verified hat #42867 fixes the issue - when filling a vehicle tank, there are no error messages, and the prompt correctly includes only the liquids in my watertight containers:

Most helpful comment
I can reproduce this error, by attempting to
fill a vehicle gasoline tank from a steel jerrycan of gasoline, while wearing any article of clothing with more than 1 item in its pockets.examine the vehicle, and try tofill a tank with gasoline - erroritem_contents::only_item called with 2 items contained(this is referring to your clothing with 2 things in the pockets)examine and try tofill again - no errorsHere, I have attempted to fill a beetle's gas tank while wearing jeans with 3 items in them. The error:
After skipping the error, I am prompted which inventory item to fill the tank with. The jerrycan is there, which is good - but I can also select the jeans:
If I choose to fill the tank from the jeans, one of the items disappears from the jeans (a cell phone), and I get a message that the tank has been refilled (though it hasn't):
I can do this with items from any of my pockets. If I have a backpack full of bricks, I can fill the gas tank with bricks from the backpack.
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food]
]