Sketchup 7 and proxy settings.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
RedRedWine
Newbie
Newbie
Posts: 3
Joined: Tue Feb 23, 2010 9:04 pm

Sketchup 7 and proxy settings.

Post by RedRedWine »

Hi everyone,

I've got stuck trying to get Sketchup 7 ( Version 7.1.6860 ) to connect to the 3D warehouse via a proxy using Wine 1.1.38 (same problem with older version 1.1.35) on a linux machine ( Gentoo, Kernel 2.6.32.3 )

I have followed the instructions for setting up a proxy for Wine from:

http://wiki.winehq.org/FAQ#head-d582e2a ... 5621eb220f

######
My ~/.wine/user.reg contains the following entries after editing the file:

[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings] 1266741039
@=""
"ProxyEnable"=dword:00000001
"ProxyServer"="proxy.A.B.C:8080"
"User Agent"="Mozilla/4.0 (compatible; MSIE 8.0; Win32)"

######
Using the proxycfg.exe command to set the winhttp proxy I get the following;

> wine proxycfg -u

> wine proxycfg
Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.

Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :

Proxy Server(s) : proxy.A.B.C:8080
Bypass List :

######

I start sketchup in a terminal using;

> env http_proxy="proxy.A.B.C:8080" env ftp_proxy="proxy.A.B.C:8080" env WINEPREFIX="/home/fred/.wine" wine "C:\Program Files\Google\Google SketchUp 7\SketchUp.exe"


which yields the following errors in the xterm:

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.MFCLOC" (8.0.50608.0)
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW INTERNET_OPTION_CONNECT_RETRIES 0


After sketchup starts, I select File -> 3D Warehouse -> Get Models and after a few seconds a window pops up with the error.

"Could not connect to the 3D Warehouse. 2250"

And the errors in the x terminal are:

fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW INTERNET_OPTION_CONNECT_RETRIES 0
fixme:wininet:InternetCheckConnectionW
fixme:wininet:InternetCheckConnectionW
fixme:wininet:InternetCheckConnectionW


So now I'm out of ideas, :roll: any suggestions would be most appreciated. Thank you for your help.

Cheers,
RRW
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Sketchup 7 and proxy settings.

Post by vitamin »

RedRedWine wrote:[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings]
@=""
"ProxyEnable"=dword:00000001
"ProxyServer"="proxy.A.B.C:8080"
"User Agent"="Mozilla/4.0 (compatible; MSIE 8.0; Win32)"

> env http_proxy="proxy.A.B.C:8080" env ftp_proxy="proxy.A.B.C:8080" env WINEPREFIX="/home/fred/.wine" wine "C:\Program Files\Google\Google SketchUp 7\SketchUp.exe"
You need only one or the other (registry or command line). However in both cases you doing it wrong.

For registry ProxyServer should be in a form of "http=proxy.A.B.C:8080". For command line:
- You use "env" only once specifying all variables you need to set
- Wine looks for http_proxy proxy only (no need for ftp_proxy).

If still not sure if Wine uses proxy or not - enable "wininet" debug channel (WINEDEBUG=+wininet wine ...).
RedRedWine
Newbie
Newbie
Posts: 3
Joined: Tue Feb 23, 2010 9:04 pm

Re: Sketchup 7 and proxy settings.

Post by RedRedWine »

vitamin wrote: You need only one or the other (registry or command line). However in both cases you doing it wrong.

For registry ProxyServer should be in a form of "http=proxy.A.B.C:8080".

Thanks Vitamin for the correction, I've updated user.reg via regedit so it now looks like;

[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings] 1266984168
@=""
"ProxyEnable"=dword:00000001
"ProxyServer"="http=proxy.A.B.C:8080"
"User Agent"="Mozilla/4.0 (compatible; MSIE 8.0; Win32)"

I've also updated winhttp by specifying the proxies explicitly as per the instructions in http://msdn.microsoft.com/en-us/library ... 85%29.aspx.

> wine proxycfg -p "http=http://proxy.A.B.C:8080 https=http://proxy.A.B.C:8080"

Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.

Updated proxy settings
Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :

Proxy Server(s) : http=http://proxy.A.B.C:8080 https=http://proxy.A.B.C:8080
Bypass List

After doing the above changes I open a new xterm (http_proxy is not present) and run the command:

> WINEPREFIX="/home/fred/.wine" wine "C:\Program Files\Google\Google SketchUp 7\SketchUp.exe"

Again, if I select File -> 3D Warehouse -> Get Models and after a few seconds a window pops up with the error.

"Could not connect to the 3D Warehouse. 2250"
vitamin wrote: For command line:
- You use "env" only once specifying all variables you need to set
- Wine looks for http_proxy proxy only (no need for ftp_proxy).

If still not sure if Wine uses proxy or not - enable "wininet" debug channel (WINEDEBUG=+wininet wine ...).
For good measure;
> export http_proxy="proxy.A.B.C:8080"

Drum roll....
> WINEPREFIX="/home/fred/.wine" WINEDEBUG=+wininet wine "C:\Program Files\Google\Google SketchUp 7\SketchUp.exe" &> /tmp/output.txt

Again, same problem, cannot connect.

In "output.txt" there is no reference to any proxy, please see below for a filtered version (cat output.txt | grep wininet > sketchup_debug.txt
).

trace:wininet:DllMain 0x7e930000,1,0x1
trace:wininet:InternetSetOptionW ((nil) 2 0x32fdc4 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
trace:wininet:InternetSetOptionW ((nil) 5 0x32fdc4 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
trace:wininet:InternetSetOptionW ((nil) 6 0x32fdc4 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
trace:wininet:InternetSetOptionW ((nil) 3 0x32fdc4 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_CONNECT_RETRIES 0
trace:wininet:InternetSetOptionW ((nil) 2 0x32fc08 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
trace:wininet:InternetSetOptionW ((nil) 5 0x32fc08 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
trace:wininet:InternetSetOptionW ((nil) 6 0x32fc08 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
trace:wininet:InternetSetOptionW ((nil) 3 0x32fc08 4)
trace:wininet:WININET_GetObject handle 0 -> (nil)
fixme:wininet:InternetSetOptionW INTERNET_OPTION_CONNECT_RETRIES 0
trace:wininet:DllMain 0x7e930000,2,(nil)
fixme:wininet:InternetCheckConnectionW
trace:wininet:InternetCrackUrlW (L"http://www.google.com" 0 0 0x2ebcfe4)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:GetInternetSchemeW L"http" 4
trace:wininet:SetUrlComponentValueW L"http" (4)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW L"www.google.com" (14)
trace:wininet:InternetCrackUrlW L"http://www.google.com": scheme((null)) host(L"www.google.com") path((null)) extra((null))
trace:wininet:InternetCheckConnectionW host name : L"www.google.com"
trace:wininet:InternetCheckConnectionW port: 80
trace:wininet:GetAddress L"www.google.com"
fixme:wininet:InternetCheckConnectionW
trace:wininet:InternetCrackUrlW (L"http://www.google.com" 0 0 0x32f7b4)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:GetInternetSchemeW L"http" 4
trace:wininet:SetUrlComponentValueW L"http" (4)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW L"www.google.com" (14)
trace:wininet:InternetCrackUrlW L"http://www.google.com": scheme((null)) host(L"www.google.com") path((null)) extra((null))
trace:wininet:InternetCheckConnectionW host name : L"www.google.com"
trace:wininet:InternetCheckConnectionW port: 80
trace:wininet:GetAddress L"www.google.com"
fixme:wininet:InternetCheckConnectionW
trace:wininet:InternetCrackUrlW (L"http://www.google.com" 0 0 0x2ebcffc)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:GetInternetSchemeW L"http" 4
trace:wininet:SetUrlComponentValueW L"http" (4)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW (null) (0)
trace:wininet:SetUrlComponentValueW L"www.google.com" (14)
trace:wininet:InternetCrackUrlW L"http://www.google.com": scheme((null)) host(L"www.google.com") path((null)) extra((null))
trace:wininet:InternetCheckConnectionW host name : L"www.google.com"
trace:wininet:InternetCheckConnectionW port: 80
trace:wininet:GetAddress L"www.google.com"
trace:wininet:DllMain 0x7e930000,0,0x1



Thanks again for the help.
RRW
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Sketchup 7 and proxy settings.

Post by vitamin »

RedRedWine wrote:In "output.txt" there is no reference to any proxy, please see below for a filtered version (cat output.txt | grep wininet > sketchup_debug.txt).
Then it's not using wininet to connect to the network. Which means Wine is not using proxy for other things.
RedRedWine
Newbie
Newbie
Posts: 3
Joined: Tue Feb 23, 2010 9:04 pm

Re: Sketchup 7 and proxy settings.

Post by RedRedWine »

vitamin wrote: Then it's not using wininet to connect to the network. Which means Wine is not using proxy for other things.
Ok, I've searched on WineHQ and the internet, but could not find any info on enabling proxy support.

Does it mean I have stuffed something else up in the user.reg or another configuration file somewhere so wine is not aware of proxy settings? :oops:

What other settings/files should I check or double check?

Thanks Vitamin for the help. :)

Cheers,
RRW
Locked