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

XP, 2003 32bit Compatibility #241

Open
bnote opened this issue Nov 17, 2021 · 16 comments
Open

XP, 2003 32bit Compatibility #241

bnote opened this issue Nov 17, 2021 · 16 comments

Comments

@bnote
Copy link

bnote commented Nov 17, 2021

Windows 2003 SP2 EE Eng 32bit

All versions of AviSynthPlus below gives:
Entry Point Not Found : The procedure entry point ReleaseSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll

v.3.7.0
AviSynthPlus_3.7.0_20210111-filesonly.7z
AviSynthPlus_3.7.0_20210111_vcredist_xp.exe

v.3.4.0
AviSynthPlus_3.4.0_Portable.7z
AviSynthPlus_3.4.0_20191020.exe

As described in ReleaseSRWLockExclusive function (synchapi.h):
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-releasesrwlockexclusive
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
.

@pinterf
Copy link

pinterf commented Nov 17, 2021

That build is probably broken. After installing 3.7.0 I recommend downloading 3.7.1 test builds from the first post:
https://forum.doom9.org/showthread.php?t=181351
Unzip and simply overwrite your relevant files. These are built with XP support. When you are lucky, it works. I have no access even to a Windows 7 nowadays.

@bnote
Copy link
Author

bnote commented Nov 17, 2021

@pinterf

OK. I will try a few later.
Thank you for reply, for link and for advices on install.

However... does v.3.4.0 was "broken" too with the same symptoms?..
.

@pinterf
Copy link

pinterf commented Nov 17, 2021

I dont remember on 3.4.0 times. Anyway, Visual c++ redistributable is needed but it is probably installed when you got the 'big' install pack.

@bnote
Copy link
Author

bnote commented Nov 18, 2021

@pinterf

I tried...

Command line:
ffprobe.exe -v trace Version.avs

Version.avs is a simple one-line one-command script:
Version()

Folders "plugins" and "plugins+" are empty

Unfortunatelly all of versions below are NOT compatible and all gives the same error.
Avisynth_3.7.1_20210313_test1
Avisynth_3.7.1_20210610_test4
Avisynth_3.7.1_20211117_test27


ffprobe.exe - Entry Point Not Found

The procedure entry point ReleaseSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll.

OK

.

@bnote
Copy link
Author

bnote commented Nov 18, 2021

Sorry for bold and size - my browser is old too as OS and I can't preview the post :(

@pinterf
Copy link

pinterf commented Nov 18, 2021

Bold: no problem.

The toolset which I am using: v141_xp. It is O.K. on the build side (plus there is a special non-thread safe init setting for the project that must be made for xp favour).

But this is what I found:
https://docs.microsoft.com/en-us/answers/questions/325993/vc-redist-1418-breaks-windows-xp-compatibility.html
VC Redist 14.28 breaks Windows XP compatibility
After installing VC Redist 14.18.29325.2, software build with the platform toolset v141_xp no longer run on Windows XP because msvc140.dll requires "ReleaseSRWLockExclusive" in "kernel32.dll".
Older versions of VC Redist (testet with 14.27.29016.0) didn't have this problem.

If this is true, and you really have a newer redistributable version, visit
https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
Uninstall your old redistributable and install one of these "older" ones, step by step back.

When it works, please write feedback here which was the one that worked, and I'm gonna put a notice in a readme.

@bnote
Copy link
Author

bnote commented Nov 18, 2021

This is good encouraging news. Thank you.
I'll try. Not right now, but asap.
.

@pinterf
Copy link

pinterf commented Nov 18, 2021

(Obviously he mismatched the old-new version numbers in the description, as it was mentioned later in the discussion.)

@bnote
Copy link
Author

bnote commented Nov 18, 2021

OK.

Short conclusion:
The latest 2003(x86)-compatible VC_redist.x86 for AvisynthPlus(x86) is 14.28.29213.0
"Compatible" means here that

  • the package is installed without visible errors (logs were not examined)
  • all tested applications (MPlayer, MPC, AvsPmod, VirtualDubMod) correctly
    proceed the simple sctript "Version()"

However MS says:
The last version of the Visual C++ Redistributable that works on Windows XP shipped in Visual Studio 2019 version 16.7 (file versions starting with 14.27)

https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170#notes
Windows XP Support: Microsoft ended support for Windows XP on April 8, 2014. Current versions of the Visual C++ Redistributable for Visual Studio 2015-2022 only support Windows Vista, 7, 8.1, 10, and 11. The last version of the Visual C++ Redistributable that works on Windows XP shipped in Visual Studio 2019 version 16.7 (file versions starting with 14.27). The redistributable is available in the my.visualstudio.com Downloads section as Visual C++ Redistributable for Visual Studio 2019 - Version 16.7. Use the Search box to find this version. To download the files, select the platform and language you need, and then choose the Download button.

I have no account on MS. Maybe someone can find there on my.visualstudio.com
the latest working between 14.28.29325.2-ERR (used in AVS+) and 14.28.29213.0-OK
and the latest in 14.27.xxxxx series after 14.27.29112.0?

FULL REPORT

(all sources beginning with "Visual-C-Runtimes-All-in-One-" are taken from
https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/)

(I hope on Lord that there are no typos and confusions below,
but be careful and recheck again sources used by me and conclusions I made,
before apply any in specific system environment.
I'm not a wizard. I am just learning :)

Visual-C-Runtimes-All-in-One-Nov-2021.zip
14.30.30704.0
ERR
Setup Failed

Visual-C-Runtimes-All-in-One-Jul-2021.zip
14.30.30401.0
ERR
Setup Failed

https://aka.ms/vs/16/release/vc_redist.x86.exe
https://download.visualstudio.microsoft.com/download/pr/73b58d04-0049-47d1-9f54-1784792c71cd/80C7969F4E05002A0CD820B746E0ACB7406D4B85E52EF096707315B390927824/VC_redist.x86.exe
14.29.30135.0
ERR
ffprobe.exe - Unable To Locate Component
This application has failed to start because api-ms-win-crt-runtime-l1-1-0.dll was not found. Re-installing the application may fix this problem.

Visual-C-Runtimes-All-in-One-May-2021.zip
14.29.30129.1
ERR
ffprobe.exe - Unable To Locate Component
This application has failed to start because api-ms-win-crt-runtime-l1-1-0.dll was not found. Re-installing the application may fix this problem.

Visual-C-Runtimes-All-in-One-Apr-2021.zip
14.29.30031.0
ERR
ffprobe.exe - Unable To Locate Component
This application has failed to start because api-ms-win-crt-runtime-l1-1-0.dll was not found. Re-installing the application may fix this problem.

Visual-C-Runtimes-All-in-One-Mar-2021.zip
14.29.29917.0
ERR
ffprobe.exe - Unable To Locate Component
The procedure entry point CloseThreadpoolWork could not be located in the dynamic link library KERNEL32.dll.

Visual-C-Runtimes-All-in-One-Jan-2021.zip
14.28.29325.2 (used in AVS+)
ERR
ffprobe.exe - Unable To Locate Component
The procedure entry point ReleaseSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll.

https://download.visualstudio.microsoft.com/download/pr/566435ac-4e1c-434b-b93f-aecc71e8cffc/0D59EC7FDBF05DE813736BF875CEA5C894FFF4769F60E32E87BD48406BBF0A3A/VC_redist.x86.exe
VC_redist.x86_5.exe
14.28.29213.0
OK

https://dl.filehorse.com/win/developer-tools/microsoft-visual-c-redistributable-package-32/Microsoft-Visual-C-Redistributable-Package-2019-14.27.29112.0-(32-bit).exe?st=XNpbT7oU3xw9VVKs4_U6Iw&e=1637330554&fn=vc_redist.x86.exe
vc_redist.x86_4.exe
14.27.29112.0
OK

Visual-C-Runtimes-All-in-One-Aug-2020.zip
14.27.29016.0
OK

Visual-C-Runtimes-All-in-One-Mar-2020.zip
14.25.28508.3
OK

Le Fin
.

@bnote
Copy link
Author

bnote commented Nov 18, 2021

All was tested on AviSynth+ 3.7.1 (r3396, master, i386)

@bnote
Copy link
Author

bnote commented Nov 18, 2021

Yes-s, bos-s :)
But, if:

  • there was no official versions between 14.28.29213.0 - .29325.2
  • we ignore that MS declare latest official XP-compatible as 14.27.xxxxx
    .

@ghost
Copy link

ghost commented Nov 22, 2021

Installing 2015-2019 redist in your system (XP) causes some applications to use (much) more memory. Please avoid installing 2015-2019 in XP. For details, read this.

Also, note: uninstalling redist doesn't always remove harmful dll's from Windows folder. Even official Microsoft uninstallers leave garbage behind.

@ghost
Copy link

ghost commented Nov 22, 2021

bnote
my browser is old

Install an up-to-date browser, not Firefox 52/Chrome 49/Mypal.
At least DcBrowser v4 Modified (Chromium 75, June 2019).
It works correctly with Github/Gitlab (more or less).

@bnote
Copy link
Author

bnote commented Nov 22, 2021

@artenaki

At least DcBrowser v4 Modified (Chromium 75, June 2019).

Thank you for DC advice.

I tried and was satisfiedme on it for the some specific cases. For the first tries at least :)
This msg I wrote on it. The Github functionality is OK now.

2015-2019 redist ... causes some applications to use (much) more memory.

Well. Let him(them) ...

... avoid installing 2015-2019 in XP.

For such paltry reason (as memory) only?..

For details, read this.

For russians more suitable will be this :)

And... @TheBarmaley is focused on browsers only in his post...
And he did it in strange manner... No comparative tables but tonns of photo masterpieces only :)
However his post is useful in its several parts and as review at all.

Thank you for link too.
.

@ghost
Copy link

ghost commented Nov 23, 2021

Yes, a significant increase in memory consumption of the browser 360 (very important for XP users) and maybe all chromium based. Especially relevant if you open a lot of tabs and little memory on your computer (1.5-2 GB). I have encountered this myself, but I am not sure about the cause.
I saw tables somewhere, by the way.

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

No branches or pull requests

2 participants