Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

results YAPF + cache + depot searching (with limit) not the same as without cache #2900

Closed
DorpsGek opened this issue May 14, 2009 · 5 comments
Labels
component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

mike_123 opened the ticket and wrote:

Openttd 0.7.0 build by "./configure ; make ; make install" under fedora7 (4.1.2 20070925).

Game requires GRF file which is attached.

Start server "openttd -D 127.0.0.1:12345 -g instant_desync.sav" then join it from other console.

Join first company called "TeamTrans ...".

Jump to station called "TARTAK IN, TOWARY OUT", open train list related to this station and click green flag to start all trains.
Do the same for station called "FABRYKA IN, RAFINERIA IN".

Wait for about 5-10min until all trains fix themselves in depots.
After that game starts to desync.

Reconnecting won't help. Desync in about 10seconds.

If I "pasue" game in server console then I can join for longer, but after "unpause" I get instant desync.

Attachments

Reported version: 0.7.0
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2900
@DorpsGek
Copy link
Member Author

Rubidium wrote:

Only starting the trains at TARTAK IN seems to do the trick; (re)joining after train 117 leaves the depot will cause a desync approximately 8 game days later


This comment was imported from FlySpray: https://bugs.openttd.org/task/2900#comment6067

@DorpsGek
Copy link
Member Author

mike_123 wrote:

Additional question:

After loading above save in single player game I have noticed that openttd eats about 50% of my CPU.

vendor_id : AuthenticAMD
model name : AMD Sempron(tm) 2400+
cpu MHz : 1670.306
cache size : 256 KB
bogomips : 3340.61

Is it ok for my CPU?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2900#comment6068

@DorpsGek
Copy link
Member Author

Rubidium wrote:

Root cause is a YAPF cache issue; enable DEBUG_YAPF_CACHE and finding depots will regularly result in cache mismatches. Again, you only need to start the vehicles fro the TARTAK IN station.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2900#comment6070

@DorpsGek
Copy link
Member Author

Rubidium wrote:

The desync of this bug has been fixed in r16323.

To make the mismatch reproducable you have to revert r16323 and apply the attached patch. That makes the cache mismatch reliably reproducable within a few seconds.

Be very aware that fixing the first cache mismatch does probably not mean that all cache mismatch causes have been fixed; just run it for a longer time to check that.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2900#comment6080

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Implemented

Rubidium indicates in comments that this is believed fixed. No new comments for more than 5 years. Closing, thanks.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2900

@DorpsGek DorpsGek added component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) enhancement labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pathfinder This issue is related to Pathfinder flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant