http://bugs.winehq.org/show_bug.cgi?id=30351
Bug #: 30351 Summary: Firefox + Selenium hangs on startup Product: Wine Version: 1.5.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com Classification: Unclassified
1. Download and install python26 from http://www.python.org/ftp/python/2.6/python-2.6.msi
2. Download and install easyinstall from http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2...
3. start wine cmd, install Selenium with easyinstall : easyinstall selenium
4. start the sample python-selenium script as attachment selenium-firefox.py : $ wine 'c:\python26\python.exe' selenium-firefox.py
Firefox doesn't start as expect, it hangs with the following messages:
fixme:system:SetProcessDPIAware stub! fixme:process:SetProcessDEPPolicy (1): stub fixme:iphlpapi:NotifyAddrChange (Handle 0x28fe9a4, overlapped 0x28fe988): stub fixme:winsock:WSCGetProviderPath ({e70f1aa0-ab8b-11cf-8ca3-00805f48a192} 0x2afe7a0 0x2afe760 0x2afe78c) Stub! fixme:winsock:WSCGetProviderPath ({e70f1aa0-ab8b-11cf-8ca3-00805f48a192} 0x2afe7a0 0x2afe760 0x2afe78c) Stub! fixme:winsock:WSCGetProviderPath ({11058240-be47-11cf-95c8-00805f48a192} 0x2afe7a0 0x2afe760 0x2afe78c) Stub! fixme:winsock:WSCGetProviderPath ({11058241-be47-11cf-95c8-00805f48a192} 0x2afe7a0 0x2afe760 0x2afe78c) Stub! fixme:winsock:WSCGetProviderPath ({11058241-be47-11cf-95c8-00805f48a192} 0x2afe7a0 0x2afe760 0x2afe78c) Stub! fixme:ntdll:NtLockFile I/O completion on lock not implemented yet fixme:advapi:FileEncryptionStatusW (L"c:\users\fracting\temp\tmpdvfiar\prefs-1.js" 0x33cc84): stub fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
http://bugs.winehq.org/show_bug.cgi?id=30351
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |http://pypi.python.org/pypi | |/selenium
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #1 from Qian Hong fracting@gmail.com 2012-04-04 00:59:02 CDT --- Created attachment 39672 --> http://bugs.winehq.org/attachment.cgi?id=39672 Script: start firefox with selenium
http://bugs.winehq.org/show_bug.cgi?id=30351
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
--- Comment #2 from Qian Hong fracting@gmail.com 2012-04-04 01:04:00 CDT --- Winedbg attach to firefox.exe and run bt show me: --- snip --- Wine-dbg>bt Backtrace: =>0 0xb7772422 __kernel_vsyscall+0xe() in [vdso].so (0x0033cd30) 1 0xb75e4a0b write+0x4a() in libpthread.so.0 (0x0033cd30) 2 0x7bc417a6 NtWriteFile+0x382(hFile=0x20, hEvent=0x0(nil), apc=(nil), apc_user=0x0(nil), io_status=0x33cd70, buffer=0x33ce47, length=0x1, offset=(nil), key=0x0(nil)) [/home/fracting/wine-git/dlls/ntdll/file.c:977] in ntdll (0x0033cd30) 3 0x7b83e0d8 WriteFile+0x16c(hFile=0x20, buffer=0x33ce47, bytesToWrite=0x1, bytesWritten=0x33cdd4, overlapped=(nil)) [/home/fracting/wine-git/dlls/kernel32/file.c:547] in kernel32 (0x0033cda0) 4 0x7e846b73 MSVCRT__write+0x293(fd=0x1, buf=0x33ce47, count=0x1) [/home/fracting/wine-git/dlls/msvcrt/file.c:2586] in msvcrt (0x0033ce20) 5 0x7e847e89 MSVCRT__flsbuf+0x10c(c=0x67, file=0x7e8ad1e0) [/home/fracting/wine-git/dlls/msvcrt/file.c:3124] in msvcrt (0x0033ce50) 6 0x7e847f56 MSVCRT_fputc+0x9d(c=0x67, file=0x7e8ad1e0) [/home/fracting/wine-git/dlls/msvcrt/file.c:3154] in msvcrt (0x0033ce80) 7 0x7e848b79 MSVCRT_fputs+0xc0(s="*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile ", file=0x7e8ad1e0) [/home/fracting/wine-git/dlls/msvcrt/file.c:3467] in msvcrt (0x0033cec0) 8 0x010f46c2 in xul (+0x6946c1) (0x0033cf2c) 9 0x008cad8b in mozjs (+0x4ad8a) (0x0033d540) 10 0x008cac48 in mozjs (+0x4ac47) (0x02e004e0) 11 0x032a96f0 (0x00184802) --- snip ---
winetricks vcrun2005 workaround for the hanging. Set component to msvcrt
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #3 from Qian Hong fracting@gmail.com 2012-06-23 16:45:39 CDT --- Hello, still present in wine-1.5.7.
Forgot to say in comment0: should install firefox first. (I tested with winetricks --no-isolate firefox, which will install firefox 10.0 )
http://bugs.winehq.org/show_bug.cgi?id=30351
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #4 from Piotr Caban piotr.caban@gmail.com 2012-12-11 09:52:38 CST --- It works for me. Please retest (I've installed firefox-11 and selenium-2.27.0.tar.gz).
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #5 from Piotr Caban piotr.caban@gmail.com 2012-12-11 09:54:45 CST --- I've tested it incorrectly. It's still not working.
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #6 from Piotr Caban piotr.caban@gmail.com 2012-12-12 04:33:32 CST --- I've tested it a little more. The hang is occasional here. It happens both with native and builtin msvcr80/msvcp80.
I was not able to reproduce it inside a debugger or with relay debugging chanell.
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #7 from Qian Hong fracting@gmail.com 2012-12-12 05:07:44 CST --- (In reply to comment #6)
I've tested it a little more. The hang is occasional here. It happens both with native and builtin msvcr80/msvcp80.
I was not able to reproduce it inside a debugger or with relay debugging chanell.
Hello, thanks for investigation.
I still can reproduce the hang with builtin msvcr80/msvcp80, but I can't reproduce with `winetricks -q vcrun2005` in a 10-times testing.
(To my surprise, winetricks -q vcrun2005 set 'n,b' for at180, msvcm80, __msvcp90__, msvcr80, vcomp, is there a typo in winetricks? Shouldn't that be __msvcp80__ instead ?)
I also can reproduce the hang with builtin msvcr80/msvcp80 with WINEDEBUG=+relay,+tid,+msvcrt, the compressed log is 2.2 MB, would you like me sent to you?
Regards.
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #8 from Qian Hong fracting@gmail.com 2012-12-12 05:10:49 CST --- BTW, I'm using wine-1.5.19-74-g4bb92e1, Firefox 11 from `winetricks --isolate -q firefox`, my winetricks version is 20120912, my selenium version is selenium-2.20.0.tar.gz, I'm using the old wineprefix from 2012-04-04 which is backup from the original tested version.
I can install firefox/selenium/python into a new wineprefix if needed.
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #9 from Austin English austinenglish@gmail.com 2012-12-12 12:09:30 CST --- (In reply to comment #7)
(To my surprise, winetricks -q vcrun2005 set 'n,b' for at180, msvcm80, __msvcp90__, msvcr80, vcomp, is there a typo in winetricks? Shouldn't that be __msvcp80__ instead ?)
Yes, it should. It's fixed in svn: https://code.google.com/p/winetricks/source/detail?r=928
http://bugs.winehq.org/show_bug.cgi?id=30351
--- Comment #10 from Piotr Caban piotr.caban@gmail.com 2012-12-13 15:52:38 CST --- It should be fixed by commit bc33d39e23d7c87b4ab520a771b17a091c217ced. Please retest.
http://bugs.winehq.org/show_bug.cgi?id=30351
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #11 from Qian Hong fracting@gmail.com 2012-12-13 23:21:15 CST --- Fixed, thanks Piotr!
http://bugs.winehq.org/show_bug.cgi?id=30351
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bc33d39e23d7c87b4ab520a771b | |17a091c217ced
http://bugs.winehq.org/show_bug.cgi?id=30351
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2012-12-21 13:29:20 CST --- Closing bugs fixed in 1.5.20.