failed to load avisynth.dll

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

failed to load avisynth.dll

Post by A3s »

Hi,

I'm running wine-fbsd64-1.3.23,1 on FreeBSD 9.0-STABLE amd64. (it still as a 32-bit wine)

I need to run avs2yuv.exe by using wine, which required avisynth.dll that I've installed successfully.

When invoking

Code: Select all

> wine avs2yuv.exe xxx.avs -o test.y4m
I got

Code: Select all

failed to load avisynth.dll
partial log after setting WINEDEBUG=+module,+dll: (full: http://paste2.org/p/1870127)

Code: Select all

trace:module:MODULE_InitDLL (0x10000000 L"avisynth.dll",PROCESS_ATTACH,0x0) - CALL
trace:module:load_dll looking for L"KERNEL32.DLL" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system
trace:module:load_dll Found L"C:\\windows\\system32\\KERNEL32.dll" for L"KERNEL32.DLL" at 0x62810000, count=-1
trace:module:load_dll looking for L"ADVAPI32.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system
trace:module:load_dll Found L"C:\\windows\\system32\\advapi32.dll" for L"ADVAPI32.dll" at 0x623b0000, count=14
trace:module:load_dll looking for L"AVIFIL32.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system
trace:module:load_dll Found L"C:\\windows\\system32\\avifil32.dll" for L"AVIFIL32.dll" at 0x629a0000, count=2
trace:module:load_dll looking for L"DevIL.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system;C:
trace:module:load_dll Found L"C:\\windows\\system32\\DevIL.dll" for L"DevIL.dll" at 0x520000, count=2
trace:module:load_dll looking for L"GDI32.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system;C:
trace:module:load_dll Found L"C:\\windows\\system32\\gdi32.dll" for L"GDI32.dll" at 0x62bd0000, count=8
trace:module:load_dll looking for L"MSACM32.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system;
trace:module:load_dll Found L"C:\\windows\\system32\\msacm32.dll" for L"MSACM32.dll" at 0x629e0000, count=3
trace:module:load_dll looking for L"MSVCP60.dll" in L"C:\\windows\\system32;.;C:\\windows\\system32;C:\\windows\\system;
trace:module:load_dll Found L"C:\\windows\\system32\\msvcp60.dll" for L"MSVCP60.dll" at 0x62f90000, count=2
trace:module:MODULE_InitDLL (0x10000000,PROCESS_ATTACH,0x0) - RETURN 0
trace:module:MODULE_InitDLL (0x10000000 L"avisynth.dll",PROCESS_DETACH,0x0) - CALL
trace:module:MODULE_InitDLL (0x10000000,PROCESS_DETACH,0x0) - RETURN 1
trace:module:process_attach (L"avisynth.dll",0x0) - END
trace:module:LdrUnloadDll (0x10000000)
trace:module:LdrUnloadDll (L"avisynth.dll") - START
It seems that it does try to load avisynth.dll, but fails.
I can't find out where the problem is.
Any help will be appreciated, thanks!!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: failed to load avisynth.dll

Post by dimesio »

A3s wrote: I'm running wine-fbsd64-1.3.23,1 on FreeBSD 9.0-STABLE amd64. (it still as a 32-bit wine)
That version is old; the current development release is 1.3.37.
I need to run avs2yuv.exe by using wine, which required avisynth.dll that I've installed successfully.
Is this the app? http://akuvian.org/src/avisynth/avs2yuv/

If it is, I doubt it will work in current Wine, or even the older version you have. That app hasn't been updated since 2005, and a great deal has changed in Wine.
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

Post by A3s »

Thanks for the replying.

I've grabbed 1.3.36 (the latest binary built for bsd64), still the same problem.

yes, and avs2yuv seems works very well on most Ubuntu systems.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

A3s wrote: I've grabbed 1.3.36 (the latest binary built for bsd64), still the same problem.

yes, and avs2yuv seems works very well on most Ubuntu systems.
The page I linked to says avs2yuv was designed for Linux.

Post plain terminal output--no debug channels.
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

Post by A3s »

It outputs simply "failed to load avisynth.dll".

I've also tried on a fresh installed FreeBSD 8.2 i386 with compiled wine from ports.

Still the same problem "failed to load avisynth.dll".

I reinstall to a Gentoo Linux and run avs2yuv.exe from wine, it just works.

Still cannot find out what the problem to prevent avisynth.dll being loaded under FreeBSD wine.

Reproduce Steps: the above steps works on Gentoo Linux, fails on FreeBSD 8.2.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

A3s wrote: the above steps works on Gentoo Linux, fails on FreeBSD 8.2.
It fails on openSUSE 11.4.
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

Post by A3s »

Thanks!!

And I've just found out that my Gentoo's wine is of 1.2.3,
When upgrading to 1.3.37, it fails, too..

After some tests, for each fresh new wine install (i.e. rm -rf ~/.wine)

The Following versions didn't work! (Failed to load avisynth.dll)
  • Gentoo Linux amd64 with 32-bit wine-1.3.37
    FreeBSD 9.0R amd64 with 32-bit >= wine-1.3.20
The following works!
  • Gentoo Linux amd64 with 32-bit wine-1.2.3
    FreeBSD 9.0R amd64 with 32-bit wine-1.3.16, wine-1.3.18 (i have no 1.3.19 package)
And if ... (test under FreeBSD)
  • 1. install wine-1.3.16 at first,
    2. install avisynth.exe,
    3. remove wine-1.3.16
    4. do not delete the old ~/.wine
    5. install wine-1.3.36
    6. wine avs2yuv.exe works!!
That is:
  • *. ~/.wine @1.3.16 # works.
    *. ~/.wine @1.3.36 # didn't work.
    *. ~/.wine @1.3.16 → 1.3.36 # works.
wine-1.3.20 seems to be the regression point.

I've filed a bug report.

Thanks everyone.
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

Post by A3s »

A3s wrote:Thanks!!

I've filed a bug report.

Thanks everyone.
http://bugs.winehq.org/show_bug.cgi?id=29648
mr99
Newbie
Newbie
Posts: 1
Joined: Sat Jan 21, 2012 8:31 pm

Post by mr99 »

Do you have the Visual C++ 6 runtime installed? Avisynth needs it.
see: http://forum.doom9.org/showthread.php?p ... ost1513646
A3s
Level 1
Level 1
Posts: 6
Joined: Mon Jan 16, 2012 8:54 am

Post by A3s »

mr99 wrote:Do you have the Visual C++ 6 runtime installed? Avisynth needs it.
see: http://forum.doom9.org/showthread.php?p ... ost1513646


Hooray! It works!
Thanks for the info.

I've also found out that the regression point is at commit a3172a5dc of wine-git.

So a brief summary for a avisynth.dll to work:
use wine-1.3.17 (or any version previous to commit a3172a5dc)
or
use latest wine, and 'winetrick vcrun6sp6' to install native msvcp60.dll
Locked