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

[Bug?](WIN): KERNEL32.dll Problem that makes OpenTTD stop working #11529

Closed
ghost opened this issue Dec 2, 2023 · 3 comments · Fixed by #11531
Closed

[Bug?](WIN): KERNEL32.dll Problem that makes OpenTTD stop working #11529

ghost opened this issue Dec 2, 2023 · 3 comments · Fixed by #11531

Comments

@ghost
Copy link

ghost commented Dec 2, 2023

Version of OpenTTD

OpenTTD Version 13.4 on (Windows Vista Starter x86 [NT6.0] Build 6003: Service Pack 2)

Expected result

OpenTTD will open up, downloading some extra files before proceeding into the menu

Actual result

After pressing continue, an error appears
Window: openttd.exe - Entry Point Not Found
Msg: The proedure entry point TryAcquireSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll

Steps to reproduce

1- Get Windows Vista Starter (or Home Basic x86) and install it

2- Install all of the drivers of the laptop

2.5- The first try will be without installing all of the available updates.

  • In my case, it is with all of the Updates installed (including the Windows Server 2008 and Platform Update ones)

3- Open setup.exe > (it works!)

4- Install it

5- Run it

6- The error appears with the forced Windows Classic appearance (openttd.exe - Entry Point Not Found)

image

6.5 - No crash or save files have been created, but this is listened in the Windows Event Viewer:

Faulting application openttd.exe, version 13.4.0.45642, time stamp 0x64c59d58, faulting module KERNEL32.dll!TryAcquireSRWLockExclusive, version 6.0.6003.20555, time stamp 0x5cefed6b, exception code 0xc0000139, fault offset 0x00009fad, process id 0xf18, application start time 0x01da2543988f36d0.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="Application Error" /> 
  <EventID Qualifiers="0">1000</EventID> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2023-12-02T17:19:10.000Z" /> 
  <EventRecordID>955</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>NicoDM-Starter</Computer> 
  <Security /> 
  </System>
<EventData>
  <Data>openttd.exe</Data> 
  <Data>13.4.0.45642</Data> 
  <Data>64c59d58</Data> 
  <Data>KERNEL32.dll!TryAcquireSRWLockExclusive</Data> 
  <Data>6.0.6003.20555</Data> 
  <Data>5cefed6b</Data> 
  <Data>c0000139</Data> 
  <Data>00009fad</Data> 
  <Data>f18</Data> 
  <Data>01da2543988f36d0</Data> 
  </EventData>
  </Event>
@TrueBrain
Copy link
Member

Windows Vista has been EoL for over 11 years. This means two things:

  1. we (as developers) don't test on OSes that are that far EoL.
  2. very few users still use it to play the game.

Although we tend to not deliberately break compatibility with such old OSes, when they break, solving it is nearly impossible for us. The breaking most of the time happens because MSVC (the compiler from Microsoft) produces binary that use calls that are no longer supported by an OS like Vista.

As we don't test for those OSes, and very few people play on it, it can take years before a report reaches us mentioned it is no longer working. So honestly, I couldn't tell you if it broke last month, of 6 years ago. Sadly for you, our solution is to no longer mention we support Vista.

The best course of action for you is either of two things:

  • Update to an OS that hasn't been out of support for more than 11 years ;) And, if not practical:
  • Download a (much) older version of OpenTTD. You will have to use trial&error to figure out what the last working version was.

Sorry, but it is just not reasonable for us to spend a our limited resources on an OS that is that old, and used by that few people.

@ghost
Copy link
Author

ghost commented Dec 3, 2023

Windows Vista has been EoL for over 11 years.

Actually it's been EoL for 6 or (very close) to 7 years, but close enough

Despite that, thanks for the clarification.
It seems like the issue might have happened since the last version from Windows XP, but maybe I can test it to see

@ghost
Copy link
Author

ghost commented Dec 3, 2023

I have just tested and its latest version working on Windows Vista (for the official release) is version 13.0-beta2, or 12.2 for the stable build

I hope it helps for anyone who somehow got through this post; or wanna know why Vista support ended.

But now I have a question; does this mean that the newest one is technically version 13.4.1? Or is it so minor update that it wouldn't make sense to have a number change?
I mean, Steam already doesn't support Windows Vista or XP, which might not be worth an entire update or announcement for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant