AniDB Client and wine ?

misc client related stuff

Moderators: AniDB, AniDB API

Locked
tetsuo2501

AniDB Client and wine ?

Post by tetsuo2501 »

Hello,

Has anybody tried running the client under linux using wine ?
I tried but with no luck, well maybe 'couse I'm not really familliar with wine :)
But if anyone had any experience or maybe sucessful lunch, please response.
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Well, main issue wine might encounter is the use of unicode API calls such as FindFirstW and nt specific registry calls. I never tested wine but I doubt it supports the unicode functions AOM uses.
I'd guess you get an error message when it "fails", if you post that error message maybe I can be more specific on why it doesn't work.
tetsuo2501

Post by tetsuo2501 »

Here it goes:

Code: Select all

tetsuo@tetsuo:~/moviedb/anidb$ wine AOM.exe
wine: Unhandled exception (thread 0009), starting debugger...
err:seh:start_debugger Couldn't start debugger ("programs/winedbg/winedbg 8 148") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
fixme:dialog:MSGBOX_OnInit task modal msgbox ! Not modal yet.
tetsuo@tetsuo:~/moviedb/anidb$
and here are some screens with errors ;)
http://www.adm.com.pl/~tetsuo/errors/

Hope this'll give you some clue, in the meanwhile I'll try to get more verbous wine debug output...
thx for interest in the case :)
nich
Posts: 33
Joined: Sat Feb 08, 2003 12:38 am

Post by nich »

I tried too.

Got to the same point as you did, i think (loaded the splash screen and then crashed).

I'll try again latter, but for now the only thing I got to know is that (according to folks @ #winhq@irc.freenode.com) the error I got was a typical Delphi on wine one.
[Edit]Aff... Forgot to tell you the error changed when I updated wine. So it might not be still a "typical delphi on wine error" [/Edit]

Besides, PetriW already stated that aom requires some IE things. I'll try to get the dlls separately, latter (or at least check if they are supported by wine natively).

Just so we can compare, my wine is 20040309, emerged (yep, gentoo) with debug options on.

My output was like this, btw:

Code: Select all

bash-2.05b$ wine aom
wine: Unhandled exception (thread 0009), starting debugger...
WineDbg starting on pid 8
Can't find file for ELF 'wine-kthread' ((nil))
No debug information in ELF 'wine-pthread' ((nil))
Breakpoint 1 at 0x4000ba00 (_end+0x3fef94d0)
No debug information in ELF '/usr/lib/wine/lib/libwine.so.1' (0x40016000)
No debug information in ELF '/lib/libpthread.so.0' (0x40042000)
No debug information in ELF '/lib/libc.so.6' (0x40093000)
No debug information in ELF '/lib/libdl.so.2' (0x401bf000)
No debug information in ELF '/lib/libm.so.6' (0x401c2000)
No debug information in ELF '/lib/ld-linux.so.2' (0x40000000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/ntdll.dll.so' (0x401e5000)
No debug information in ELF '/usr/lib/wine/lib/libwine_unicode.so.1' (0x40255000)
No debug information in ELF '/lib/libnss_compat.so.2' (0x4035e000)
No debug information in ELF '/lib/libnsl.so.1' (0x40366000)
No debug information in ELF '/lib/libnss_nis.so.2' (0x4037b000)
No debug information in ELF '/lib/libnss_files.so.2' (0x40384000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/kernel32.dll.so' (0x404a0000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/user32.dll.so' (0x406e0000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/gdi32.dll.so' (0x40836000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/advapi32.dll.so' (0x408c1000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/oleaut32.dll.so' (0x408f5000)
No debug information in ELF '/usr/lib/libungif.so.4' (0x4099c000)
No debug information in ELF '/usr/lib/libjpeg.so.62' (0x409a4000)
No debug information in ELF '/usr/X11R6/lib/libX11.so.6' (0x409c2000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/ole32.dll.so' (0x40a9f000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/rpcrt4.dll.so' (0x40b1f000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/version.dll.so' (0x40b6c000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/lz32.dll.so' (0x40b86000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/comctl32.dll.so' (0x40b9c000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/imm32.dll.so' (0x40c54000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/winspool.drv.so' (0x40c71000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/shell32.dll.so' (0x40c98000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/shlwapi.dll.so' (0x40d29000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/wininet.dll.so' (0x40d87000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/mpr.dll.so' (0x40dc3000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/comdlg32.dll.so' (0x40ddd000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/winmm.dll.so' (0x40e66000)
No debug information in ELF '/usr/lib/libfreetype.so.6' (0x40ef8000)
No debug information in ELF '/lib/libz.so.1' (0x40f5c000)
No debug information in ELF '/usr/lib/libfontconfig.so.1' (0x40f80000)
No debug information in ELF '/usr/lib/libexpat.so.0' (0x40fa7000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/x11drv.dll.so' (0x40fc6000)
No debug information in ELF '/usr/X11R6/lib/libSM.so.6' (0x4105c000)
No debug information in ELF '/usr/X11R6/lib/libICE.so.6' (0x41065000)
No debug information in ELF '/usr/X11R6/lib/libXxf86dga.so.1' (0x4107c000)
No debug information in ELF '/usr/X11R6/lib/libXxf86vm.so.1' (0x41082000)
No debug information in ELF '/usr/X11R6/lib/libXrandr.so.2' (0x41087000)
No debug information in ELF '/usr/X11R6/lib/libXrender.so.1' (0x4108b000)
No debug information in ELF '/usr/X11R6/lib/libXv.so.1' (0x41093000)
No debug information in ELF '/usr/X11R6/lib/libXext.so.6' (0x41098000)
No debug information in ELF '/usr/X11R6/lib/libGL.so.1' (0x410ba000)
No debug information in ELF '/usr/lib/opengl/nvidia/lib/libGLcore.so.1' (0x41123000)
No debug information in ELF '/usr/X11R6/lib/libXcursor.so.1' (0x416ac000)
No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2' (0x416b5000)
No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2' (0x416b8000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/wineoss.drv.so' (0x417f2000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/msacm.drv.so' (0x41833000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/msacm32.dll.so' (0x4184b000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/midimap.drv.so' (0x41980000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/msimg32.dll.so' (0x41ab1000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/uxtheme.dll.so' (0x41ca6000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/ws2_32.dll.so' (0x41cf0000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/iphlpapi.dll.so' (0x41d18000)
No debug information in 32bit DLL 'G:\aom\AOM.exe' (0x400000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\NTDLL.DLL' (0x40200000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\KERNEL32.DLL' (0x404d0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL' (0x408d0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\GDI32.DLL' (0x40850000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\USER32.DLL' (0x40700000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\RPCRT4.DLL' (0x40b40000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLE32.DLL' (0x40ac0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLEAUT32.DLL' (0x40910000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\LZ32.DLL' (0x40b90000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\VERSION.DLL' (0x40b70000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMCTL32.DLL' (0x40bb0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\IMM32.DLL' (0x40c60000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WINSPOOL.DRV' (0x40c80000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHLWAPI.DLL' (0x40d40000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHELL32.DLL' (0x40cc0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MPR.DLL' (0x40dd0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WININET.DLL' (0x40d90000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMDLG32.DLL' (0x40df0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WINMM.DLL' (0x40e70000)
No debug information in 32bit DLL 'G:\AOM\AOMSHARE.DLL' (0x40ed9000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\X11DRV.DLL' (0x40fe0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WINEOSS.DRV' (0x41800000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSACM32.DLL' (0x41850000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSACM.DRV' (0x41840000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MIDIMAP.DRV' (0x41990000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSIMG32.DLL' (0x41ac0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\UXTHEME.DLL' (0x41cb0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\IPHLPAPI.DLL' (0x41d20000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WS2_32.DLL' (0x41d00000)
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00000000).
In 32-bit mode.
0x00000000: addb        %al,0x0(%eax)
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Ok, it looks like both of you crash when it tries to load MSXML. You must have this installed and IXMLDocument etc registered. (msxml.dll etc, located in the system32 directory)
This works by default on a normal Win2k+ system.

Since apparently wine can run MSOffice I assume it's possible to get this in there somehow. :wink:

In my system it uses msxml4.dll. Which I can't see in the list above.
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

AOM 0.5 should display a more informative error if this is the case.
nich
Posts: 33
Joined: Sat Feb 08, 2003 12:38 am

Post by nich »

Well... it doesn't look like msxml makes a huge difference on my case, at least.

According to winehq, running wine --debugmsg +loaddll should give me a list of the dlls it's using, and it does not even mention msxml.dll:

Code: Select all

bash-2.05b$ wine --debugmsg +loaddll aom
trace:loaddll:load_dll Loaded module L"advapi32.dll" : builtin
trace:loaddll:load_dll Loaded module L"gdi32.dll" : builtin
trace:loaddll:load_dll Loaded module L"user32.dll" : builtin
trace:loaddll:load_dll Loaded module L"rpcrt4.dll" : builtin
trace:loaddll:load_dll Loaded module L"ole32.dll" : builtin
trace:loaddll:load_dll Loaded module L"oleaut32.dll" : builtin
trace:loaddll:load_dll Loaded module L"lz32.dll" : builtin
trace:loaddll:load_dll Loaded module L"version.dll" : builtin
trace:loaddll:load_dll Loaded module L"comctl32.dll" : builtin
trace:loaddll:load_dll Loaded module L"imm32.dll" : builtin
trace:loaddll:load_dll Loaded module L"winspool.drv" : builtin
trace:loaddll:load_dll Loaded module L"shlwapi.dll" : builtin
trace:loaddll:load_dll Loaded module L"shell32.dll" : builtin
trace:loaddll:load_dll Loaded module L"mpr.dll" : builtin
trace:loaddll:load_dll Loaded module L"wininet.dll" : builtin
trace:loaddll:load_dll Loaded module L"comdlg32.dll" : builtin
trace:loaddll:load_dll Loaded module L"winmm.dll" : builtin
trace:loaddll:load_dll Loaded module L"G:\\aom\\aomshare.dll" : native
trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin
trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin
trace:loaddll:MODULE_LoadModule16 Loaded module "GDI.EXE" : builtin
trace:loaddll:MODULE_LoadModule16 Loaded module "USER.EXE" : builtin
trace:loaddll:load_dll Loaded module L"x11drv.dll" : builtin
trace:loaddll:load_dll Loaded module L"wineoss.drv" : builtin
trace:loaddll:load_dll Loaded module L"msacm32.dll" : builtin
trace:loaddll:load_dll Loaded module L"msacm.drv" : builtin
trace:loaddll:load_dll Loaded module L"midimap.drv" : builtin
trace:loaddll:load_dll Loaded module L"msimg32.dll" : builtin
trace:loaddll:load_dll Loaded module L"uxtheme.dll" : builtin
trace:loaddll:load_dll Loaded module L"iphlpapi.dll" : builtin
trace:loaddll:load_dll Loaded module L"WS2_32.DLL" : builtin
wine: Unhandled exception (thread 0009), starting debugger...
trace:loaddll:load_dll Loaded module L"advapi32.dll" : builtin
trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin
trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin
Unless, of course, it is supposed to show only the successfully loaded dlls, but the way they say it, it doens't look like it's the case.

Btw: funny thing to know that the system tray integration works fine, even though the program crashes before completely opening... :P
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

As I said you must have the IXMLDocument interface declared. It loads the dll through COM.
nich
Posts: 33
Joined: Sat Feb 08, 2003 12:38 am

Post by nich »

Well... i thought that installing IE6 could solve that problem....

Well... it solved a few... I could get to see the "warning this is beta" stuff window and the user name/pass word screen. The splash screen wouldn't go away, thought... :/

The error I got (right after lines similar to those on my first post here) were those:

Code: Select all

Unhandled exception: 0eedfade in 32-bit code (0x00000000).
In 32-bit mode.
Register dump:
 CS:0000 SS:0000 DS:0000 ES:0000 FS:0000 GS:0000
 EIP:00000000 ESP:00000000 EBP:00000000 EFLAGS:00000000(   - 00      - - - )
 EAX:00000000 EBX:00000000 ECX:00000000 EDX:00000000
 ESI:00000000 EDI:00000000
Stack dump:
Invalid expression

Backtrace:
=>0 0x00000000 (ebp=00000000)
  1 0x00000000 (ebp=00000000, null call assumed)

0x00000000: addb        %al,0x0(%eax)
Modules:
Address                 Module  Name
0x00400000-00725000     (PE)    D:\aom\AOM.exe
0x40200000-40255000     (PE)    C:\WINDOWS\SYSTEM\NTDLL.DLL
0x404d0000-405c4000     (PE)    C:\WINDOWS\SYSTEM\KERNEL32.DLL
0x40700000-40836000     (PE)    C:\WINDOWS\SYSTEM\USER32.DLL
0x40850000-408c1000     (PE)    C:\WINDOWS\SYSTEM\GDI32.DLL
0x408d0000-408f5000     (PE)    C:\WINDOWS\SYSTEM\ADVAPI32.DLL
0x40910000-40988000     (PE)    C:\WINDOWS\SYSTEM\OLEAUT32.DLL
0x40ac0000-40b1f000     (PE)    C:\WINDOWS\SYSTEM\OLE32.DLL
0x40b40000-40b6c000     (PE)    C:\WINDOWS\SYSTEM\RPCRT4.DLL
0x40b70000-40b86000     (PE)    C:\WINDOWS\SYSTEM\VERSION.DLL
0x40b90000-40b9c000     (PE)    C:\WINDOWS\SYSTEM\LZ32.DLL
0x40bb0000-40c54000     (PE)    C:\WINDOWS\SYSTEM\COMCTL32.DLL
0x40c60000-40c71000     (PE)    C:\WINDOWS\SYSTEM\IMM32.DLL
0x40c80000-40c98000     (PE)    C:\WINDOWS\SYSTEM\WINSPOOL.DRV
0x40cc0000-40d29000     (PE)    C:\WINDOWS\SYSTEM\SHELL32.DLL
0x40d40000-40d87000     (PE)    C:\WINDOWS\SYSTEM\SHLWAPI.DLL
0x40da0000-40dd1000     (PE)    C:\WINDOWS\SYSTEM\MSVCRT.DLL
0x40de0000-40e5a000     (PE)    C:\WINDOWS\SYSTEM\COMDLG32.DLL
0x40e70000-40ecd000     (PE)    C:\WINDOWS\SYSTEM\WINMM.DLL
0x40ecd000-40ed7200     (PE)    D:\AOM\AOMSHARE.DLL
0x40fd0000-4103c000     (PE)    C:\WINDOWS\SYSTEM\X11DRV.DLL
0x417f0000-41823000     (PE)    C:\WINDOWS\SYSTEM\WINEOSS.DRV
0x41830000-4183b000     (PE)    C:\WINDOWS\SYSTEM\MSACM.DRV
0x41840000-4185e000     (PE)    C:\WINDOWS\SYSTEM\MSACM32.DLL
0x41980000-41985000     (PE)    C:\WINDOWS\SYSTEM\MIDIMAP.DRV
0x41ab0000-41ab5000     (PE)    C:\WINDOWS\SYSTEM\MSIMG32.DLL

0x41ca0000-41cc5000     (PE)    C:\WINDOWS\SYSTEM\UXTHEME.DLL
0x41cf0000-41d08000     (PE)    C:\WINDOWS\SYSTEM\WS2_32.DLL
0x41d10000-41d28000     (PE)    C:\WINDOWS\SYSTEM\IPHLPAPI.DLL
0x5e380000-5e3a4800     (PE)    C:\WINDOWS\SYSTEM\MSOSS.DLL
0x69b10000-69c24600     (PE)    C:\WINDOWS\SYSTEM\MSXML3.DLL
0x70200000-70294a00     (PE)    C:\WINDOWS\SYSTEM\WININET.DLL
0x71450000-714ae000     (PE)    C:\WINDOWS\SYSTEM\CRYPT32.DLL
Threads:
process  tid      prio
00000008 (D) D:\aom\AOM.exe
        0000000a    0
        00000009    0 <==
WineDbg terminated on pid 8
PetriW gave me a debug version and it was possible to confirm that msxml4.dll is the cause of the problems (though there are three other dlls that were also being run natively and might also cause problems latter).

Point now is to make msxml4.dll to run on wine. :roll:

[Edit]Screenshots removed, so I could have more free space in my webhost.[/edit]
Locked