Page MenuHomeSchine - Phabricator

Starmade | Extreme Lag Spikes when NPC Factions are Trading, also unable to trade with NPC Factions from player end
Open, HighPublic

Description

I've noticed that the buy and sell sections on the Order menu aren't filled with anything when I try to trade with the NPC factions from my end. Also I've noticed there are huge lag spikes any time the NPC Factions trade with the player or each other in a few cases.

Here's some of the logs:

I'll try and get some pictures of the strange issue for the trading from the player end but it seems the Order Menu of the Trade Menu in the shop doesn't show up in screenshots.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Singleplayer
Reproducible
uncertain
Last tested (version)
0.199.311
Category
AI
First occurrence (version)
0.199.303-
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
Intel
Video Card Model
Intel
Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

lancake added a subscriber: lancake.
lancake claimed this task.

Most likely from the excessive logging that is taking place. There is/was also an issue that the scavengers had no trading ship and that resulted in their trading fleets ending up with hundreds of combat ships.
Also a lot of logging in that case, enough to slow everything down.

lancake shifted this object from the S1 Public space to the S3 Starmade space.Dec 11 2016, 1:19 AM
lancake changed the visibility from "Custom Policy" to "Public (No Login Required)".
lancake changed the edit policy from "Task Author" to "Starmade (Project)".
lancake changed Last tested (version) from v0.199.303 to 0.199.311.
lancake changed First occurrence (version) from at least a couple versions back to 0.199.303-.
lancake triaged this task as Pre-Release Quality Assurance priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptDec 11 2016, 1:19 AM
erthparadine added a comment.EditedFeb 21 2017, 9:31 PM

Also seeing this.

java process is not I/O-bound when issue occurs, and we can induce far more logging/console activity with third-party tools, than the NPC functions generate...but our third-party tooling doesn't have any correlating lag.

However, there is a very distinct correlation between the onset of almost all lag spikes, and this log entry:

Feb 21 18:40:39 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 18:40:39 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 18:40:39 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 18:55:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 18:55:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 18:55:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 19:10:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 19:10:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 19:10:41 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 19:25:43 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 19:25:43 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 19:25:43 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 19:40:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 19:40:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 19:40:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 19:55:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 19:55:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 19:55:44 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 20:10:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 20:10:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 20:10:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 20:25:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 20:25:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 20:25:45 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 20:40:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 20:40:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 20:40:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 20:55:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 20:55:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 20:55:47 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 21:10:49 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 21:10:49 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 21:10:49 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 21:25:51 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 21:25:51 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 21:25:51 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 21:40:53 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 21:40:53 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 21:40:53 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]
Feb 21 21:55:54 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999999, name=Outcasts, description=The Outcasts is a loose organization comprised of many different aliens species. The harshness of space has left these people without a home, and so they rely on each to survive. The Outcasts are not particularly strong, buttreat outsiders with justifiable wariness. The Outcasts are spread thin across the stars and seek to avoid the attention of others., size: 0; FP: 500]
Feb 21 21:55:54 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-9999998, name=Scavengers, description=The Scavengers are a violent people. They care only for themselves, and are willing to do whatever it takes to achieve their goals. Space is a bleak place, and it has driven them to the extremes.Their unwillingness to work with others leaves them at a disadvantage. As a result, the Scavengers are fairly weak. They are little more than a nuisance to many other factions., size: 0; FP: 500]
Feb 21 21:55:54 stars SMPrd: [SERVER][NPC] scheduling faction turn for Faction [id=-10000000, name=Traders, description=The Trading Guild is a collection of large corporations. They work to better themselves primarily through trade and economics.The Trading Guild treats others with neutrality, and they hardly care who or what they sell their products to. Their wealth grants them strength, but they are a relatively peaceful faction., size: 0; FP: 500]

Log timezone is UTC, screenshot timezone is US/Pacific.

erthparadine added a comment.EditedFeb 22 2017, 4:43 PM

Further testing confirms initial reports that lag is distinctly connected to NPC faction trade.

For the following portion, "lag" is defined as when all connected clients see the pop-up "Connection problem. Either you are losing connection..."

As an admin, using F1+b/NPC Control/Faction...in all listed factions:

  • Set all "TURN OPTIONS" to OFF. No lag when running /npc_turn_all
  • Set all "TURN OPTIONS" to ON, except "TRADE" at OFF. No lag when running /npc_turn_all
  • Set all "TURN OPTIONS" to ON. Lag when running /npc_turn_all
  • Set only TRADE" TURN OPTION to ON, all others OFF. Lag when running /npc_turn_all
  • Waiting for server's recurring/scheduled (default: every 15 minute) NPC Faction turns: no lag when TRADE is OFF, lag when TRADE is ON.

Onset of lag also directly coincides with the log entry "-----TRADE START" in each NPC faction logfile. Example of trades follows:

Outcast Faction:

[2017-02-22 16:08:16] -----TRADE START
[2017-02-22 16:08:24] [TRADE]Considered 820 buy prices and 669 sell prices
[2017-02-22 16:08:24] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Outcasts Home sys (-10, 0, -8) sec (-158, 2, -121); Capacity: 9044128.7 / 100000000000000.0; Credits: 18,590;
TO  : Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : -5.8
-----
BUY PRICE    : 0
SELL PRICE   : -12,768
---------------------------------
TOTAL PRICE  : 12,768
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER SELL -13 x Shield Capacitor(3)
  ORDER SELL -45 x Power Capacitor(331)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:24] [TRADE]TRADE ORDER CHECK: Server(0); Outcasts Home <-> Traders Home; capB: 1.0E14; volB: 1.1366985483702695E7 = availableCapB 9.999998863301452E13; CreditsA: 18590; CreditsB: -17707
[2017-02-22 16:08:24] [TRADE]not enough credis in targetShop. cant sell to it. Server(0); sell price -12768; target credits: -17707
[2017-02-22 16:08:24] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Outcasts Home sys (-10, 0, -8) sec (-158, 2, -121); Capacity: 9044128.7 / 100000000000000.0; Credits: 18,590;
TO  : TestYard sys (0, 0, 0) sec (2, 2, 2); Capacity: 3108508.2 / 6164500.0; Credits: 11,668,022;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : 0.0
-----
BUY PRICE    : 0
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : 0
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER BUY  0 x Cannon Computer(6)
  ORDER BUY  0 x Jump Inhibitor Computer(681)
  ORDER BUY  0 x Warp Gate Computer(542)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:24] [TRADE]TRADE ORDER CHECK: Server(0); Outcasts Home <-> TestYard; capB: 6164500.0; volB: 3108508.1826538183 = availableCapB 3055991.8173461817; CreditsA: 18590; CreditsB: 11668022
[2017-02-22 16:08:24] [TRADE]trade order empty -> no trade
[2017-02-22 16:08:24] -----TRADE END

Scavengers Faction:

[2017-02-22 16:08:25] -----TRADE START
[2017-02-22 16:08:33] [TRADE]Considered 850 buy prices and 636 sell prices
[2017-02-22 16:08:33] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Scavengers Home sys (7, -1, -37) sec (121, -11, -583); Capacity: 7697881.5 / 100000000000000.0; Credits: 53;
TO  : Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : -3.9
-----
BUY PRICE    : 0
SELL PRICE   : -13,011
---------------------------------
TOTAL PRICE  : 13,011
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER SELL -18 x Shield Capacitor(3)
  ORDER SELL -21 x Power Capacitor(331)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:33] [TRADE]TRADE ORDER CHECK: Server(0); Scavengers Home <-> Traders Home; capB: 1.0E14; volB: 1.1366985483702695E7 = availableCapB 9.999998
863301452E13; CreditsA: 53; CreditsB: -17707
[2017-02-22 16:08:33] [TRADE]not enough credis in targetShop. cant sell to it. Server(0); sell price -13011; target credits: -17707
[2017-02-22 16:08:33] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Scavengers Home sys (7, -1, -37) sec (121, -11, -583); Capacity: 7697881.5 / 100000000000000.0; Credits: 53;
TO  : TestYard sys (0, 0, 0) sec (2, 2, 2); Capacity: 3108508.2 / 6164500.0; Credits: 11,668,022;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : 0.0
-----
BUY PRICE    : 0
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : 0
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER BUY  0 x White Light(55)
  ORDER BUY  0 x Red light(282)
  ORDER BUY  0 x Teal Light(888)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:33] [TRADE]TRADE ORDER CHECK: Server(0); Scavengers Home <-> TestYard; capB: 6164500.0; volB: 3108508.1826538183 = availableCapB 3055991.8173461817; CreditsA: 53; CreditsB: 11668022
[2017-02-22 16:08:33] [TRADE]trade order empty -> no trade
[2017-02-22 16:08:33] -----TRADE END

Traders Faction:

[2017-02-22 16:08:34] -----TRADE START
[2017-02-22 16:08:42] [TRADE]Considered 854 buy prices and 713 sell prices
[2017-02-22 16:08:42] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
TO  : Omega sys (-2, 4, 18) sec (-28, 78, 292); Capacity: 6034687.3 / 7401200.0; Credits: 4,500;
-----
BUY   VOLUME : -3.1
SELL  VOLUME : 0.0
-----
BUY PRICE    : -15,500
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : -15,500
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER BUY  -21 x Shield Capacitor(3)
  ORDER BUY  -10 x Shield-Recharger(478)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:42] [TRADE]TRADE ORDER CHECK: Server(0); Traders Home <-> Omega; capB: 7401200.0; volB: 6034687.296244564 = availableCapB 1366512.7037554365
; CreditsA: -17707; CreditsB: 4500
[2017-02-22 16:08:42] [TRADE]not enough credits to pay (-15500 / -17707)
[2017-02-22 16:08:42] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
TO  : Scavengers Home sys (7, -1, -37) sec (121, -11, -583); Capacity: 7697881.5 / 100000000000000.0; Credits: 53;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : 0.0
-----
BUY PRICE    : 0
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : 0
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER SELL 0 x Thruster Module(8)
  ORDER SELL 0 x Sapsun Capsule(158)
  ORDER SELL 0 x Damage Beam Module(415)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:42] [TRADE]TRADE ORDER CHECK: Server(0); Traders Home <-> Scavengers Home; capB: 1.0E14; volB: 7697881.46559323 = availableCapB 9.999999230211853E13; CreditsA: -17707; CreditsB: 53
[2017-02-22 16:08:42] [TRADE]trade order empty -> no trade
[2017-02-22 16:08:42] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
TO  : Furon Citadel sys (128, 128, -3) sec (2058, 2059, -46); Capacity: 6973564.8 / 8294100.0; Credits: 29,809,713;
-----
BUY   VOLUME : -28.9
SELL  VOLUME : 0.0
-----
BUY PRICE    : -15,895
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : -15,895
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER BUY  -289 x Power Capacitor(331)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:42] [TRADE]TRADE ORDER CHECK: Server(0); Traders Home <-> Furon Citadel; capB: 8294100.0; volB: 6973564.82445608 = availableCapB 1320535.1755439201; CreditsA: -17707; CreditsB: 29809713
[2017-02-22 16:08:42] [TRADE]not enough credits to pay (-15895 / -17707)
[2017-02-22 16:08:42] [TRADE]TRADE ORDER
---- PRINTING TRADE ORDER START ----
FROM: Traders Home sys (0, 0, 0) sec (11, 8, 14); Capacity: 11366985.5 / 100000000000000.0; Credits: -17,707;
TO  : TestYard sys (0, 0, 0) sec (2, 2, 2); Capacity: 3108508.2 / 6164500.0; Credits: 11,668,022;
-----
BUY   VOLUME : 0.0
SELL  VOLUME : 0.0
-----
BUY PRICE    : 0
SELL PRICE   : 0
---------------------------------
TOTAL PRICE  : 0
DELIVERY COST: 0
USED SHIPS   : 0
---------------------------------
  ORDER BUY  0 x Transporter Controller(687)
  ORDER BUY  0 x Scanner Computer(654)
  ORDER BUY  0 x Damage Pulse Computer(416)
  ORDER BUY  0 x Missile Computer(38)
  ORDER BUY  0 x Damage Beam Computer(414)
'''' PRINTING TRADE ORDER END ''''

[2017-02-22 16:08:42] [TRADE]TRADE ORDER CHECK: Server(0); Traders Home <-> TestYard; capB: 6164500.0; volB: 3108508.1826538183 = availableCapB 3055991.8173461817; CreditsA: -17707; CreditsB: 11668022
[2017-02-22 16:08:42] [TRADE]trade order empty -> no trade
[2017-02-22 16:08:42] -----TRADE END

Also noticed that trades are not run in parallel, they run in series. I assume this intended to avoid implementing parallel (non-blocking) threads, and to avoid database concurrency controls or data collision management. If that's the case, I simply don't see how this approach is scalable to many players and/or factions, whether its NPC or player-controlled. Quite-frankly, an every-fifteen-minute 30-second whole-server hang just flat-out kills any semblance of immersion.

If you must continue without implementing parallel (non-blocking) threads, database concurrency controls or data collision management. Then please provide an option to disable each of these turn options from the CLI, and for a console user to trigger them individually: larger server environments then have the option of programmatically arranging for such tasks to complete during light-load timeframes.

lancake lowered the priority of this task from Pre-Release Quality Assurance to High.Apr 23 2017, 5:24 PM

Can confirm, it also happens on servers; my server (with modified config for power and the like) has insane levels of console spam from NPC factions. We're currently trying to find the root cause, and my technician found this bug thread