添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
奔跑的煎饼果子  ·  Problem with Windows ...·  4 天前    · 
爱听歌的炒饭  ·  initializer element ...·  1 年前    · 
彷徨的哑铃  ·  Global object - MDN ...·  1 年前    · 
鬼畜的冲锋衣  ·  Jrcode帮助中心 · ...·  1 年前    · 

Problem with Windows app accessing internet

Open forum for end-user questions about Wine . Before asking questions, check out the Wiki as a first step.
Forum Rules
I have been using MCC Pilotlog with some success in Wine recently, but have run into a vexatious issue.
One of the features of the application is that it can log into a company crew information system and retrieve flight information into the log. I have tested this on a windows VM, and it works fine.
However, under Wine, we get error 445 and then a crash. I am a bit surprised, as I thought that the IE-mimicking facilities in Wine would be able to cope.
I've contacted the MCC developers about the issue, and they cannot throw too much light on the subject, but suggest that this is a code chink that may be causing the problem:

Code: Select all

For Each HTMLi In WebBr.Document.getElementsByName("Id")
    HTMLi.Value = TxtLoginName
For Each HTMLi In WebBr.Document.getElementsByName("Pass")
    HTMLi.Value = TxtPassword
For Each HTMLi In WebBr.Document.getElementsByName("B1")
    HTMLi.Click
    Exit For
Here's some terminal output copied at the relevant time:

Code: Select all

fixme:ole:OleIconToCursor (0x400000,0x60072), partially implemented.
fixme:shdocvw:navigate_url Unsupported args (Flags 0x111b4d30:10; TargetFrameName 0x111b4d40:10)
fixme:urlmon:URLMoniker_BindToObject use running object table
fixme:shdocvw:BindStatusCallback_OnProgress status code 1
fixme:shdocvw:BindStatusCallback_OnProgress status code 2
fixme:shdocvw:BindStatusCallback_OnProgress status code 11
fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT")
fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT")
fixme:shdocvw:BindStatusCallback_OnProgress status code 14
fixme:system:SetProcessDPIAware stub!
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:iphlpapi:NotifyAddrChange (Handle 0x884e914, overlapped 0x884e918): stub
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x111b17b0)->((null) 1 0x33d3c0 (nil))
fixme:shdocvw:ClOleCommandTarget_QueryStatus command_0: 27, 0x0
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 0033d36c
fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_USERAGENT
fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_PALETTE
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}
fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag
fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x1166b190)->()
fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33d390)
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_IsNoCacheResponse (0x1166b190)->(0x33c634)
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29
fixme:shdocvw:DocHostUIHandler_GetDropTarget (0x111b17b0)
fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x116c10e8)->()
fixme:mshtml:nsChannel_SetResponseHeader (0x1166b190)->("content-type" "text/html; CHARSET=iso-8859-1" 1)
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:mshtml:nsURI_SetUserPass default action not implemented
fixme:advapi:FileEncryptionStatusW (L"C:\\users\\charlie\\Application Data\\wine_gecko\\Cache" 0x33cb78): stub
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW L"C:\\users\\charlie\\Application Data\\wine_gecko\\Cache.Trash\\Trash\\Cache" 1 536870916 (nil) (nil) 0x116cf19c (nil)
fixme:mshtml:nsURI_SetUserPass default action not implemented
fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33dd30)
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116b9b00)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116ba1a0)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x1167fab8)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116aeb70)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x11685dd0)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116b8418)->(0x33d850 0x33d828 0)
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116c17b0)->(0x33d850 0x33d828 0)
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 28
fixme:wininet:InternetLockRequestFile STUB
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_GetContentLength (0x11685c50)->(0x33cf7c)
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_IsNoCacheResponse (0x116c10e8)->(0x33ce4c)
fixme:resource:GetGuiResources (0xffffffff,0): stub
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_GetContentLength (0x116b8358)->(0x33cf7c)
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_GetContentLength (0x11685d28)->(0x33cc1c)
fixme:wininet:InternetLockRequestFile STUB
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:nsChannel_GetContentLength (0x116997b0)->(0x33cf7c)
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do!
fixme:mshtml:nsURI_SetUserPass default action not implemented
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046}
fixme:shdocvw:PropertyNotifySink_OnChanged unimplemented dispid 1005
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046}
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {de4ba900-59ca-11cf-9592-444553540000}
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 35
fixme:mshtml:nsChannel_IsNoCacheResponse (0x1166b190)->(0x33d814)
fixme:mshtml:HTMLDocument3_getElementsByName (0x111e8b18)->(L"Id" 0x33e390)
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393}
I have been able to use the target website with the Wine IE browser, after changing the user-agent string.
All input gratefully received!
Charlie
One more thing:
I have had to set Windows version as Win 7 in winecfg, as the XP and Vista options did not work!
Charlie
I have been using MCC Pilotlog with some success in Wine recently, but have run into a vexatious issue.
One of the features of the application is that it can log into a company crew information system and retrieve flight information into the log. I have tested this on a windows VM, and it works fine.
However, under Wine, we get error 445 and then a crash. I am a bit surprised, as I thought that the IE-mimicking facilities in Wine would be able to cope.
I've contacted the MCC developers about the issue, and they cannot throw too much light on the subject, but suggest that this is a code chink that may be causing the problem:
Code:
For Each HTMLi In WebBr.Document.getElementsByName("Id")
HTMLi.Value = TxtLoginName
For Each HTMLi In WebBr.Document.getElementsByName("Pass")
HTMLi.Value = TxtPassword
For Each HTMLi In WebBr.Document.getElementsByName("B1")
HTMLi.Click
Exit For
Here's some terminal output copied at the relevant time:
Code:
fixme:ole:OleIconToCursor (0x400000,0x60072), partially implemented.
fixme:shdocvw:navigate_url Unsupported args (Flags 0x111b4d30:10; TargetFrameName 0x111b4d40:10)
fixme:urlmon:URLMoniker_BindToObject use running object table
fixme:shdocvw:BindStatusCallback_OnProgress status code 1
fixme:shdocvw:BindStatusCallback_OnProgress status code 2
fixme:shdocvw:BindStatusCallback_OnProgress status code 11
fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT")
fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT")
fixme:shdocvw:BindStatusCallback_OnProgress status code 14
fixme:system:SetProcessDPIAware stub!
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300))
fixme:iphlpapi:NotifyAddrChange (Handle 0x884e914, overlapped 0x884e918): stub
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x111b17b0)->((null) 1 0x33d3c0 (nil))
fixme:shdocvw:ClOleCommandTarget_QueryStatus command_0: 27, 0x0
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 0033d36c
fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_USERAGENT
fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_PALETTE
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}
fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag
fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x1166b190)->()
fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33d390)
fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}
There are many bug reports with this exact GUID in them. Time to file
an additional report.
BTW, this is used for to show a possible certificate to site mismatch
dialog box.
James McKenzie
Thanks, James
Can you tell me how to see the GUID from the information I have posted above? I'd like to take a look at other bugs (I have already filed a new one:
http://bugs.winehq.org/show_bug.cgi?id=25771
Charlie
Thanks, James
Can you tell me how to see the GUID from the information I have posted above? I'd like to take a look at other bugs (I have already filed a new one:
http://bugs.winehq.org/show_bug.cgi?id=25771
The key here was that the code kept coming back with 'not implemented'
and this may or may not affect the ability to run your program, but the
crash occurred immediately after one of the 'fixmes' that addressed this
issue. I tried to look up information on how to use/implement this
feature, but MSDN had none and I was unable to find any other
information on this other than 'this is deprecated, use the call that
replaced it'.
James McKenzie Many thanks for this- installing ie7 worked. I am very sorry not to have seen and replied to your post earlier- don't know how I missed it.
I will update the AppDB entry now.
Cheeeers!
Charlie
OK, we still seem to have a bit of an issue here:
After installing ie7, initially everything worked, but after rebooting, it seemed that the same problem reoccurred.
So, I installed ie8, and all was well... until a reboot. Of course, winetricks doesn't easily re-install ie, not that that would be a great solution, anyway.
So what's going on here? How can we fix this?
Cheers
Charlie
Bug already created- 25771.
However, I'm really curious as to why the workaround stops working after a reboot!
Charlie
Go on- can anyone shed any light on this? Very strange that it works until I reboot my laptop. I don't see any processes that are not running that were before...
Pleeese!
Charlie
On Tue, Jul 19, 2011 at 4:51 AM, Charlie-the-exile
< [email protected] > wrote:
Go on- can anyone shed any light on this?  Very strange that it works until I reboot my laptop.  I don't see any processes
that are not running that were before...
Sounds like something that is happening with a configuration file that
is reset when you reboot. Either that or a file that loads when you
run through the fix process.
You may also be dropping an environment configuration, something that
Wine cannot control.
Try the following:
env > environment.before.reboot.txt
reboot
env > envirornment.after.reboot.txt
diff -u environment.before.reboot.txt environment.after.reboot.txt
If there are no differences, I'm out of ideas.
James
OK, here's the diff file:

Code: Select all

--- environment.before.reboot.txt	2011-07-19 17:43:58.200205228 +0100
+++ environment.after.reboot.txt	2011-07-19 17:53:07.549616184 +0100
@@ -1,16 +1,16 @@
 ORBIT_SOCKETDIR=/tmp/orbit-charlie
-SSH_AGENT_PID=2912
+SSH_AGENT_PID=2337
 TERM=xterm
 SHELL=/bin/bash
-XDG_SESSION_COOKIE=2dd5655fe15f1c42f474dd204c45c6b6-1311075950.779608-828425652
+XDG_SESSION_COOKIE=2dd5655fe15f1c42f474dd204c45c6b6-1311094181.613213-1540232224
 WINDOW_MANAGER=/usr/bin/compiz
-WINDOWID=75497510
-GNOME_KEYRING_CONTROL=/tmp/keyring-zWw2pV
+WINDOWID=67108902
+GNOME_KEYRING_CONTROL=/tmp/keyring-fm8dqK
 GTK_MODULES=canberra-gtk-module:canberra-gtk-module
 USER=charlie
 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
-SSH_AUTH_SOCK=/tmp/keyring-zWw2pV/ssh
-SESSION_MANAGER=local/charlie-A660:@/tmp/.ICE-unix/2868,unix/charlie-A660:/tmp/.ICE-unix/2868
+SSH_AUTH_SOCK=/tmp/keyring-fm8dqK/ssh
+SESSION_MANAGER=local/charlie-A660:@/tmp/.ICE-unix/2293,unix/charlie-A660:/tmp/.ICE-unix/2293
 USERNAME=charlie
 DEFAULTS_PATH=/usr/share/gconf/gnome.default.path
 XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
@@ -18,7 +18,7 @@
 DESKTOP_SESSION=gnome
 PWD=/home/charlie
 GDM_KEYBOARD_LAYOUT=gb
-GNOME_KEYRING_PID=2849
+GNOME_KEYRING_PID=2274
 LANG=en_GB.UTF-8
 GDM_LANG=en_GB.utf8
 MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path
@@ -32,12 +32,12 @@
 GNOME_DESKTOP_SESSION_ID=this-is-deprecated
 LOGNAME=charlie
 XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
-DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XWV3BIQ520,guid=cb7e0e36fd059345b4c7005a00000472
+DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-p05rsvoFMy,guid=3b7771b5b4fb2bf0802e79bb000000ae
 LESSOPEN=| /usr/bin/lesspipe %s
-WINDOWPATH=7
-DISPLAY=:0
+WINDOWPATH=8
+DISPLAY=:1
 LESSCLOSE=/usr/bin/lesspipe %s %s
 COLORTERM=gnome-terminal
-XAUTHORITY=/var/run/gdm/auth-for-charlie-x9Rfi8/database
+XAUTHORITY=/var/run/gdm/auth-for-charlie-l84s9K/database
 _=/usr/bin/env
 WINEPREFIX=/home/charlie/.wine-mcclog
Nothing leaps out at me there: any ideas?
Thanks in advance.
Charlie
Nothing leaps out at me there: any ideas? Dunno the significance to this problem, if any, but I don't
ordinarily expect to see DISPLAY=:1 unless to signify the
second head of a two-headed setup. Does your system in fact
have two monitors (or two video cards, even if only one is
in use)? If so, were the two env dumps taken while using
different monitors or cards?
Hi Perry
No, nothing going on like that- one monitor, using nVidia card on my laptop. It's a good spot, though, I really don't know why that crops up.
Charlie
I'm not sure of the relevance of the above. Is it spam?
Anyway, all assistance appreciated.
Charlie
OK- here's something else that I have found:
I uninstalled, then reinstalled IE, so that this feature was working. Then, I made a copy of the whole wine environment, and tested again. Then I logged-out and logged in again.
The feature was still working.
so, I ran wineboot, and the feature remained functional.
So, I rebooted my laptop, then tried again, and I found that the problem reoccurred. So, I reverted to the copied environment (from when the internet-accessing feature was working) back to the original location, and found that I still had the problem.
Hope that makes sense.
Anyway, it seems to mean that the change that happens to cause this issue to recur after rebooting isn't in the Wine environment, but somewhere else. That's wierd. Any ideas?
Charlie
Right, I have tracked this down and fixed it.
Winetricks inserts a bunch of DLL overrides, that were getting forgotten after a reboot. I think that this might have been down to a corrupt user.reg file. Don't know how that came to be, maybe winetricks, but not sure.
Now that the overrides are fixed in place, all is well.
Thanks to all for your pointers.
Charlie
Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By