Author Topic: [fixed] [Bug] in 3.4.0dev+r1116: Workers fail to harvest  (Read 1341 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« on: 19 October 2010, 00:40:42 »
Slightly rearranged IRC log:

Quote
<tomreyn> softcoder: these changes to how the workers harvest are problematic
<tomreyn> workers stop harvesting, or can not even start to (cancel it as soon as they arrive at the harvesting location, but the order to harvest is still present (yellow arrow))
<titi_linux> the workers are corrupt now
<titi_linux> they often simply stopped
<titi_linux> cpu replace was fine
<titi_linux> and cpu has same problems
<titi_linux> much more stuck than before
<titi_linux> and completly nonsens kind of stuck
<tomreyn> got a screen shot?
<titi_linux> no
<tomreyn> well should be easy to reproduce
<titi_linux> I think its very easy to reproduce
<titi_linux> :)
<titi_linux> but cpu takeover was really fine
<ultifd> can we make it optionable for cpus to replace, sometimes you don't want them to
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #1 on: 19 October 2010, 00:47:34 »
Well, we shouldn't worry too much as it is easy to reproduce (I guess). Then trying to find the cause...
Too bad I suddenly had connection problems when we were going to test.
I wonder if titi had a log...

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #2 on: 19 October 2010, 04:43:59 »
Try rev 1118, I tried a bugfix for this.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #3 on: 20 October 2010, 08:17:39 »
This issue is fixed in or before r1121 for me. I played a single player game on this revision and the workers worked fine.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #4 on: 21 October 2010, 07:30:22 »
Sometime between r1121 and r1125, a related bug is reintroduced. While workers do not cancel their attempts trying to harvest anymore, they will (maybe just in some cases) walk around indefinitely, trying to do so.

I've had two workers involved in this issue which would indefinitely do this while trying to harvest wood:
* after worker A leaves this position, worker B goes stand in some corner which was previously cut into the wood; he stands there for a couple seconds, then walks away to a different position (apparently still trying to reach cuttable wood)
* after worker B leaves this position, worker A now goes stand in said corner which was previously cut into the wood; he stands there for a couple seconds, then walks away to a different position (apparently still trying to reach cuttable wood)
* after worker A leaves this position, worker B now goes stand in said corner which was previously cut into the wood; he stands there for a couple seconds, then walks away to a different position (apparently still trying to reach cuttable wood)
...

I should have taken a video of this but unfortunately didn't come to think of it, so here's just some images hopefully showing it, too...

The map this happened on is "Conflict". My base was a little to the south of this current screen position and the location where the bug occurred is encircled here:


The following series of screens should demonstrate the failure to harvest described above:


atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #5 on: 21 October 2010, 11:49:41 »
I think this is no bug. You maybe gave them the command to harvest wood in an unreachable place?
If this is the jungle tileset I see a not harvestable big tree right and left to the "waiting" worker, so he maybe cannot reach the tree this way.
The path to the wood seems to be blocked by big trees.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: [Bug] in 3.4.0dev+r1116: Workers fail to harvest
« Reply #6 on: 21 October 2010, 14:07:25 »
With the current code in svn Rev1126, the unit harvesting which cannot get to a location (for whatever reason) will 'eventually' check in a faction wide cache for another location to harvest the same resource type. This is in cases where they get blocked too many times and cannot get to that resource. OF course in a tight space even with this logic they can get continuously blocked by other moving units and objects and walk around 'seemingly aimlessly' due to congestion.

Thanks