Bug - Cannot Reproduce batching put_shop() commands fails after 11th (post #7)

Bale

Minion
In r11434 both the CLI mallsell and ASH put_shop() commands do not appear to be working.

I backed up to r11431 and it works fine, so there is a very good chance that the problem is in r11432.
 
After I had the problem I quit KoLmafia and then restarted it from scratch just to make sure that it wasn't a weird fluke. When it was still broke I downloaded an older revision to see if that worked (and it did) so I knew it was not my system or java installation.

I cannot replicate the error anymore. I'm just flabbergasted at that fact since I ensured easy replication before bothering to make the bug report. All that is left is to mark this bug as "Cannot Reproduce" since I also can't do so.
 
I haven't looked at the code to even know if it's possible, but given that the tradeitems.txt was changed quite a bit, the only thing I can think of is that you may have had an older version of tradeitems.txt in your data folder overriding it.
 
I believe I found the actual problem I should have been reporting in the first case. I reproduced it. I have changed the thread title to reflect the actual problem.

Using batch_open() and batch_close() around a sequence of put_shop() commands does not send items to the store after the 11th. Successive items remain in inventory although mafia believes them to have been gone. Refreshing inventory reveals their presence.
 
Hi Bale,

Do you still think this was caused by r11432?

I'll look into this when I feel like it, if nobody else does by then.
 
Last edited:
Considering that there were no changes to anything called by mallsell or put_shop() in revision 11432, I found this puzzling. I downloaded revision 11431's jar file and did some tests.

---
Using KoLmafia v15.4 r11431:

> mallsell breath mint, cube of billiard chalk, cyclops eyedrops, disassembled clover, irradiated pet snack, knob goblin lunchbox, pack of alice's army cards, trivial avocations card: What?, trivial avocations card: when?, trivial avocations card: where?, trivial avocations card: who?, ye wizards shack snack voucher

Transferring items to store (request 1 of 2)...
Items offered up for sale.
Transferring items to store (request 2 of 2)...
Items offered up for sale.

Session log:

mallsell: 1 breath mint, 1 cube of billiard chalk, 1 cyclops eyedrops, 1 disassembled clover, 1 irradiated pet snacks, 1 Knob Goblin lunchbox, 1 Pack of Alice's Army Cards, 1 Trivial Avocations Card: What?, 1 Trivial Avocations Card: When?, 1 Trivial Avocations Card: Where?, 1 Trivial Avocations Card: Who?

mallsell: 1 Ye Wizard's Shack snack voucher

I had the DEBUG log going. I saw two requests - one with 11 items and one with 1 item - and I saw KoL's response to each request telling me that it had transferred stuff to the store.

That worked exactly as expected; it split the 12 items into a 11 item request and a 1 item request.
---
Using KoLmafia v15.4 r11438:

> mallsell breath mint, cube of billiard chalk, cyclops eyedrops, disassembled clover, irradiated pet snack, knob goblin lunchbox, pack of alice's army cards, trivial avocations card: What?, trivial avocations card: when?, trivial avocations card: where?, trivial avocations card: who?, ye wizards shack snack voucher

Transferring items to store (request 1 of 2)...
Items offered up for sale.
Transferring items to store (request 2 of 2)...
Items offered up for sale.

Session log:

mallsell: 1 breath mint, 1 cube of billiard chalk, 1 cyclops eyedrops, 1 disassembled clover, 1 irradiated pet snacks, 1 Knob Goblin lunchbox, 1 Pack of Alice's Army Cards, 1 Trivial Avocations Card: What?, 1 Trivial Avocations Card: When?, 1 Trivial Avocations Card: Where?, 1 Trivial Avocations Card: Who?

mallsell: 1 Ye Wizard's Shack snack voucher

I had the DEBUG log going. I saw two requests - one with 11 items and one with 1 item - and I saw KoL's response to each request telling me that it had transferred stuff to the store.

This also worked perfectly.
---

I see no bug. Can you give a specific example of a request with 12 or more items that failed to transfer correctly? Perhaps a session log, showing what it thought it was doing?

Thanks.
 
Thank you for being patient with me, but I'm bouncing this bug back to unreproducible status. It worked badly yesterday, but there was no problem today. Here is my session log from yesterday. OCD produced this output: (The stuff with the "> " was OCD's output to the CLI as you'd obviously deduce.)

> mallsell 1 "DRINK ME" potion @ 335, 3 Angry Farmer candy @ 274, 3 dry noodles @ 995, 1 irradiated pet snacks @ 13,800, 7 jamfish jam @ 700, 15 jellyfish gel @ 8,799, 1 Knob Goblin lunchbox @ 14,960, 1 magic dragonfish fry @ 80,000, 1 Pack of Alice's Army Cards @ 13,500, 33 pufferfish spine @ 6,799, 45 rough fish scale @ 2,100
> Sale price for this line: 582,154
>
> mallsell 3 scrumptious reagent @ 1,400, 54 seaweed @ 2,699, 1 Tasty Fun Good rice candy @ 108, 1 Trivial Avocations Card: What? @ 135, 2 Trivial Avocations Card: When? @ 250, 3 Trivial Avocations Card: Where? @ 290, 3 Trivial Avocations Card: Who? @ 749, 3 Ye Wizard's Shack snack voucher @ 290, 6 Yummy Tummy bean @ 198
> Sale price for this line: 155,864
>
> Total mall sale = 738,018

mallsell: 1 "DRINK ME" potion, 3 Angry Farmer candy, 3 dry noodles, 1 irradiated pet snacks, 7 jamfish jam, 15 jellyfish gel, 1 Knob Goblin lunchbox, 1 magic dragonfish fry, 1 Pack of Alice's Army Cards, 33 pufferfish spine, 45 rough fish scale, 3 scrumptious reagent, 54 seaweed, 1 Tasty Fun Good rice candy, 1 Trivial Avocations Card: What?, 2 Trivial Avocations Card: When?, 3 Trivial Avocations Card: Where?, 3 Trivial Avocations Card: Who?, 3 Ye Wizard's Shack snack voucher, 6 Yummy Tummy bean

Notice that the mallsell was done in a single server hit of 20 items, not two separate hits as in your example. After I used "inv refresh" it successfully finished off the remaining 9 items...

> mallsell 3 scrumptious reagent @ 1,400, 54 seaweed @ 2,699, 1 Tasty Fun Good rice candy @ 108, 1 Trivial Avocations Card: What? @ 135, 2 Trivial Avocations Card: When? @ 250, 3 Trivial Avocations Card: Where? @ 290, 3 Trivial Avocations Card: Who? @ 749, 3 Ye Wizard's Shack snack voucher @ 290, 6 Yummy Tummy bean @ 198
> Sale price for this line: 155,864
>
> Total mall sale = 155,864

mallsell: 3 scrumptious reagent, 54 seaweed, 1 Tasty Fun Good rice candy, 1 Trivial Avocations Card: What?, 2 Trivial Avocations Card: When?, 3 Trivial Avocations Card: Where?, 3 Trivial Avocations Card: Who?, 3 Ye Wizard's Shack snack voucher, 6 Yummy Tummy bean




That was yesterday. Today it works perfectly:


> mallsell 1 "DRINK ME" potion @ 290, 1 Angry Farmer candy @ 274, 1 cyclops eyedrops @ 13,998, 3 dry noodles @ 990, 5 jamfish jam @ 700, 11 jellyfish gel @ 8,799, 1 Knob Goblin lunchbox @ 14,000, 1 Pack of Alice's Army Cards @ 13,500, 42 pufferfish spine @ 6,799, 30 rough fish scale @ 2,100, 3 scrumptious reagent @ 1,400
> Sale price for this line: 498,079
>
> mallsell 41 seaweed @ 3,100, 1 Trivial Avocations Card: When? @ 250, 2 Trivial Avocations Card: Where? @ 290, 1 Ye Wizard's Shack snack voucher @ 380, 4 Yummy Tummy bean @ 145
> Sale price for this line: 128,890
>
> Total mall sale = 626,969

mallsell: 1 "DRINK ME" potion, 1 Angry Farmer candy, 1 cyclops eyedrops, 3 dry noodles, 5 jamfish jam, 11 jellyfish gel, 1 Knob Goblin lunchbox, 1 Pack of Alice's Army Cards, 42 pufferfish spine, 30 rough fish scale, 3 scrumptious reagent

mallsell: 41 seaweed, 1 Trivial Avocations Card: When?, 2 Trivial Avocations Card: Where?, 1 Ye Wizard's Shack snack voucher, 4 Yummy Tummy bean

I cannot figure out what I did differently. Since the today I was not using an older build I suspect it was the same sort of quirk that made the old build work properly for me so I truly doubt it was the fault of some error in r11432 and Veracity is correct about that fact. If it happens to me again and I can figure out why, I will post about it again.
 
Back
Top