[Bug] Mining and production stop seemingly randomly due to "not enough space left in storage"

  1. What is your character name in-game?
    Dragon Willam Rebel
  2. Please explain what problem you ran into and show screenshots where possible, (JPEG, JPG, PNG)
    Still cant upload
    Please note the following. Whenever I talk about mining or producing in the following text, they are interchangeable. Either counts to cause the problem, as well as a mix of the two.
    After a lot more testing, I can now say the following.

Mining and production will fail prematurely due to “not enough space left in storage”. Even when there is still plenty of space. The number of items you can produce depends on the space left in storage (or the items already in there. should be pretty much the same thing). You can see the table below to know at what point you can make how many items before it will fail. Note that the number of items made counts. Mining always creates 1 item, but production can make more. For example 4 items at the same time. In which case you can fail in a lot fewer cycles. Note also that it does not matter how many items a production consumes, you will fail after a number of items is made, even if you actually reduced the amount of items in storage. If the production cycle makes more items than you would be able to make if each cycle only makes 1 item, it will succeed but the next one will fail.

You can reset this amount during production. By opening either storage (from a storage terminal or from clicking a storage button on another terminal) or just opening the production terminal. At some point it seemed like starting a new production also resets it, but I am not entirely sure of that, I have had some times where it seemed to work and others where it seemed not to.

Here you have a table with how many items I can mine depending on how full the storage is.

Items in storage Items mined before fail Space Left in storage
0 0 3000
77 77 2923
109 32 2891
133 24 2867
153 20 2847
171 18 2829
187 16 2813
202 15 2798
216 14 2784
229 13 2771
241 12 2759
253 12 2747
264 11 2736
275 11 2725
285 10 2715
295 10 2705
305 10 2695
314 9 2686
324 10 2676
333 9 2667
341 8 2659
349 8 2651
357 8 2643
365 8 2635
373 8 2627
380 7 2620
387 7 2613
394 7 2606
401 7 2599
408 7 2592
415 7 2585
422 7 2578
429 7 2571
435 6 2565
441 6 2559
447 6 2553
453 6 2547
459 6 2541
465 6 2535
471 6 2529
477 6 2523
483 6 2517
489 6 2511
495 6 2505
501 6 2499
506 5 2494
511 5 2489
516 5 2484
521 5 2479
526 5 2474
531 5 2469
536 5 2464
541 5 2459
546 5 2454
551 5 2449
556 5 2444
561 5 2439
566 5 2434
571 5 2429
576 5 2424
581 5 2419
586 5 2414
591 5 2409
596 5 2404
601 5 2399
605 4 2395
609 4 2391
613 4 2387
617 4 2383
621 4 2379

It seems like the server sends an amount of free space in storage to the client.
But the client only requests this info or forces the server to calculate this amount at the start of a mining or production run, or whenever opening certain terminals or storage. Until this number is updated. the client will simply do its mining or production task and count down from this number whenever an item is created. It seems to me that before receiving an item from a production cycle the client should request an update from the server on how much room is in storage. For starters because most productions actually reduce the number of items in storage, so if that does not get updated upon each production cycle, the client might think he runs out of space while actually opening up space. A second reason might be to avoid storage overflows if somebody decides to transfer items to you while mining. If you do not get updates on how much room is left, the client could continue mining while his storage got filled up with a transfer.

The current calculation also seems to have a mistake somewhere. Probably could figure out what goes wrong based on the values I have captured here, but I would think that it will be quick enough for somebody looking at the code to find the mistake.

  1. What items were you using at the time of the problem?
    Any mining.
  2. What world were you on when the problem took place?
    Pax Prime
1 Like

Okay, so I was able to replicate this issue on P51.

I mined chemical substances and the process stopped at 105 chem subs mined.

I had two processes going at the same time at full power/cooling.

Notably, one of my processes was only mining 1 chem sub per two cycles.

I.e. 99, 99, 98, 98, 97, 97, and so on, whereas the other process was mining regularly, 99, 98, 97, etc.

Hey Winter

Yes, the first mining slot only produces half the time, speed of the processes doesnt seem to matter nor location.

Yes this bug is happening for me also

I am hoping that this may be fixed now. I simplified the DB query that is checking for total storage space available on a given colony. Previously the storage space was being calculated enumerating through all the items retrieved back that you have in your storage on a colony which at times required more time to enumerate through and being the call is done asynchronously in execution sometimes the sotrage check was being done on a null value if the operation wasn’t complete before the check occurred. Please test this again in the upcoming patch here and let me know. Thanks

I do have to test some more, but it does seem to be fixed.