http://bugs.winehq.org/show_bug.cgi?id=30856
Bug #: 30856 Summary: Atmel Studio 6 fails to start - Component missing Product: Wine Version: 1.5.5 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: onny@project-insanity.org Classification: Unclassified
Created attachment 40414 --> http://bugs.winehq.org/attachment.cgi?id=40414 Debug logs of error message
I've downloaded Atmel Studio 6 from here: http://www.mikrocontroller.net/articles/AVR-Studio and Microsoft Visual Studio 2010 Shell (Isolated) from here: https://www.microsoft.com/en-us/download/details.aspx?id=1366
After that, I ran: WINEARCH=win32 winetricks -q dotnet20 dotnet40
Because the setup of the IsolatedShell fails to extract, I manually extracted it using 7zip (alternatively WinRAR) and then ran the setup.exe.
To avoid some error messages of the MS VSISOS setup, I copied some files: $ mkdir -p ~/.wine/drive_c/windows/Microsoft.NET/Framework/v2.0.50727/CONFIG $ cp /etc/mono/2.0/machine.config ~/.wine/drive_c/windows/Microsoft.NET/Framework/v2.0.50727/CONFIG/ $ mkdir ~/.wine/drive_c/windows/Microsoft.NET/Framework/v4.0.30319/config $ cp /etc/mono/4.0/machine.config ~/.wine/drive_c/windows/Microsoft.NET/Framework/v4.0.30319/config
Now starting the Atmel Studio 6 setup works but still has some installation errors of single components, but nevertheless the installation succeeds.
Starting the program fails with following error message: 0009:Call user32.MessageBoxW(00000000,0032d0c4 L"Cannot find one or more components. Please reinstall the application.",0032cea4 L"Microsoft Visual Studio Shell Isolated",00000010) ret=1001b67d
Here is the complete +relay-Log (100mb+): http://onny.project-insanity.org/files/wine155-atmelstudio6-relay.txt In the attachment is a shorter log with only the MessageBox part and the errors before that.
Hope that helps somehow, thanks!
http://bugs.winehq.org/show_bug.cgi?id=30856
Jonas Heinrich onny@project-insanity.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |onny@project-insanity.org
http://bugs.winehq.org/show_bug.cgi?id=30856
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://www.mikrocontroller. | |net/articles/AVR-Studio
--- Comment #1 from Austin English austinenglish@gmail.com 2012-06-06 13:23:02 CDT --- Why are you using mono's machine.config with native .NET?
http://bugs.winehq.org/show_bug.cgi?id=30856
--- Comment #2 from Jonas Heinrich onny@project-insanity.org 2012-06-06 17:53:28 CDT --- The program requests such a file, indicating the full path to it in an error message.
http://bugs.winehq.org/show_bug.cgi?id=30856
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=30856
--- Comment #3 from Jonas Heinrich onny@project-insanity.org 2012-06-25 21:54:38 CDT --- Here're debug logs for Wine 1.5.7 with wine-mono installed:
Installing the program: http://onny.project-insanity.org/files/wine157-atmelstudio6-setup.txt Starting atmelstudio.exe +relay: http://onny.project-insanity.org/files/wine157-atmelstudio6-relay.txt
http://bugs.winehq.org/show_bug.cgi?id=30856
Jonas Heinrich onny@project-insanity.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.5.5 |1.5.7
http://bugs.winehq.org/show_bug.cgi?id=30856
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.5.7 |1.5.5
http://bugs.winehq.org/show_bug.cgi?id=30856
Morten Engelhardt Olsen meolsen@atmel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |meolsen@atmel.com
http://bugs.winehq.org/show_bug.cgi?id=30856
--- Comment #4 from Jonas Heinrich onny@project-insanity.org 2012-10-14 17:33:29 CDT --- Bug is still present in version 1.5.15. Installing Ms Visual Studio Shell (Isolated) and then AvrStudio6 without any hacks works well. But still the error message: Cannot find one or more components. Please reinstall the application.
https://bugs.winehq.org/show_bug.cgi?id=30856
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=30856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|Abandoned? | Status|UNCONFIRMED |NEW CC| |focht@gmx.net Summary|Atmel Studio 6 fails to |Atmel Studio 6 fails to |start - Component missing |start with Visual Studio | |2010 Isolated Shell, | |reporting 'Cannot find one | |or more components. Please | |reinstall the application.' Ever confirmed|0 |1
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming, still present.
Download: http://www.atmel.com/Images/as6installer-6.0.1843.exe
Prerequisite: 'winetricks -q dotnet40' (if Wine-Mono is present prior)
The other prerequisites and workarounds mentioned in the initial bug report are not needed for now. Those might be the result of a broken WINEPREFIX or old Wine bugs.
Additionally, this is not about Wine-Mono - avoid mixing this in here.
The installer runs fine along with the sub-installers (.NET Framework 4.0, VS 2010 Isolated Shell, USB driver sub-installer).
The error message appears first when the installer executes some post-install steps.
--- snip --- C:\Program Files\Atmel\Atmel Studio 6.0\atmelstudio.exe /setup /log
C:\Program Files\Atmel\Atmel Studio 6.0\atmelstudio.exe /InstallVSTemplates /log --- snip ---
Trace log:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Atmel/Atmel Studio 6.0
$ WINEDEBUG=+tid,+seh,+relay wine ./atmelstudio.exe /InstallVSTemplates /log
log.txt 2>&1
... 002d:Call advapi32.RegOpenKeyExW(80000002,0040215c L"Software\Microsoft\AppEnv\10.0",00000000,00020019,0032e3ec) ret=0040112f 002d:Ret advapi32.RegOpenKeyExW() retval=00000000 ret=0040112f 002d:Call advapi32.RegQueryValueExW(00000048,0040219c L"AppenvStubDLLInstallPath",00000000,0032e3e0,0032fb90,0032e3e8) ret=00401166 002d:Ret advapi32.RegQueryValueExW() retval=00000000 ret=00401166 002d:Call advapi32.RegCloseKey(00000048) ret=00401173 002d:Ret advapi32.RegCloseKey() retval=00000000 ret=00401173 002d:Call KERNEL32.GetFileAttributesW(0032fb90 L"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ShellExtensions\Platform\AppenvStub.dll") ret=00401182 002d:Ret KERNEL32.GetFileAttributesW() retval=00000020 ret=00401182 002d:Call KERNEL32.LoadLibraryW(0032fb90 L"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ShellExtensions\Platform\AppenvStub.dll") ret=004011db ... 002d:Ret PE DLL (proc=0x1002c956,module=0x10000000 L"AppenvStub.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1 002d:Ret KERNEL32.LoadLibraryW() retval=10000000 ret=004011db 002d:Call KERNEL32.GetProcAddress(10000000,004021f0 "Start") ret=00401243 002d:Ret KERNEL32.GetProcAddress() retval=100145c2 ret=00401243 002d:Call msvcr100._wputenv(004021f8 L"AVR_STUDIOS_SHOW_MODAL_DIALOGS=1") ret=00401258 ... 002d:Call KERNEL32.GetCommandLineW() ret=1001c208 002d:Ret KERNEL32.GetCommandLineW() retval=001154d0 ret=1001c208 002d:Call msvcr100.wcspbrk(001154d0 L""C:\Program Files\Atmel\Atmel Studio 6.0\atmelstudio.exe" /InstallVSTemplates /log",1000d20c L"" ") ret=1001c21b 002d:Ret msvcr100.wcspbrk() retval=001154d0 ret=1001c21b ... 002d:Ret ole32.OleInitialize() retval=00000000 ret=1001b91b ... 002d:Call ole32.CoInitializeSecurity(00000000,ffffffff,00000000,00000000,00000000,00000002,00000000,00000000,00000000) ret=1001ba52 002d:fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,2,(nil),0,(nil)) - stub! 002d:Ret ole32.CoInitializeSecurity() retval=00000000 ret=1001ba52 002d:Call ole32.CoCreateInstance(100047ec,00000000,00000001,1000d398,0032de60) ret=1001ba72 ... 002d:Call ole32.CoCreateInstance(100047ec,00000000,00000001,1000d398,0032de60) ret=1001ba72 ... 002d:Call KERNEL32.FindActCtxSectionGuid(00000001,00000000,00000004,0032dd58,0032dc3c) ret=7e643af3 002d:Ret KERNEL32.FindActCtxSectionGuid() retval=00000000 ret=7e643af3 002d:Call ntdll.RtlInitUnicodeString(0032db50,0032dba2 L"CLSID\{0000034B-0000-0000-C000-000000000046}") ret=7e63e0a1 002d:Ret ntdll.RtlInitUnicodeString() retval=0032db50 ret=7e63e0a1 002d:Call ntdll.NtOpenKey(0032db9c,00020019,0032db58) ret=7e63e0bd 002d:Ret ntdll.NtOpenKey() retval=c0000034 ret=7e63e0bd 002d:Call ntdll.RtlNtStatusToDosError(c0000034) ret=7e63e0c8 002d:Ret ntdll.RtlNtStatusToDosError() retval=00000002 ret=7e63e0c8 002d:err:ole:CoGetClassObject class {0000034b-0000-0000-c000-000000000046} not registered 002d:err:ole:CoGetClassObject no class object {0000034b-0000-0000-c000-000000000046} could be created for context 0x1 002d:Ret ole32.CoCreateInstance() retval=80040154 ret=1001ba72 ... 002d:Call advapi32.RegOpenKeyExW(80000001,0032da88 L"Software\Microsoft\VisualStudio\ZeroSetupRoot\atmelstudio.exe_44_Config\Packages\{647F920C-4230-4C5B-830D-B65F79620AE8}\SatelliteDll",00000000,00020019,0032dec0) ret=100207f3 002d:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=100207f3 ... 002d:Call user32.MessageBoxW(00000000,0032d084 L"Cannot find one or more components. Please reinstall the application.",0032ce64 L"Microsoft Visual Studio Shell Isolated",00000010) ret=1001b67d ... --- snip ---
The VS isolated shell hookup seems to be done via 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ShellExtensions\Platform\AppenvStub.dll' and 'Start' entry point.
MSDN:
https://msdn.microsoft.com/en-us/library/bb685692%28v=vs.90%29.aspx (" Isolated Shell Extensibility Points")
https://msdn.microsoft.com/en-us/library/cc138530%28v=vs.90%29.aspx (" Isolated Shell Entry Point Parameters (C++)")
Not sure if the failing 'CoGetClassObject' class '{0000034b-0000-0000-c000-000000000046}' (CLSID_GlobalOptions) is relevant, hard to tell.
http://www.geoffchappell.com/studies/windows/win32/com/interfaces/iglobalopt...
$ sha1sum as6installer-6.0.1843.exe 3633a8e5445290e6b7a9ccaa29fe008cfd3ac669 as6installer-6.0.1843.exe
$ du -sh as6installer-6.0.1843.exe 743M as6installer-6.0.1843.exe
$ wine --version wine-1.7.45
Regards
https://bugs.winehq.org/show_bug.cgi?id=30856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Component|-unknown |ole32
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
this was fixed by commit https://source.winehq.org/git/wine.git/commitdiff/c7e6fe6cdfacd64407d2c01f7e... ("ole32: Added GlobalOptions object stub implementation.")
Thanks Jacek
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Atmel/Atmel Studio 6.0
$ WINEDEBUG=+tid,+seh,+relay,+ole wine ./atmelstudio.exe /InstallVSTemplates /log >>log.txt 2>&1 ... 0042:Call ole32.CoInitializeSecurity(0033dee8,ffffffff,00000000,00000000,00000000,00000000,00000000,00000008,00000000) ret=1001ba52 0042:fixme:ole:CoInitializeSecurity (0x33dee8,-1,(nil),(nil),0,0,(nil),8,(nil)) - stub! 0042:Ret ole32.CoInitializeSecurity() retval=00000000 ret=1001ba52 0042:Call ole32.CoCreateInstance(100047ec,00000000,00000001,1000d398,0033dee0) ret=1001ba72 0042:trace:ole:CoCreateInstance (rclsid={0000034b-0000-0000-c000-000000000046}, pUnkOuter=(nil), dwClsContext=00000001, riid={0000015b-0000-0000-c000-000000000046}, ppv=0x33dee0) 0042:trace:ole:CoCreateInstanceEx ({0000034b-0000-0000-c000-000000000046} (nil) 1 (nil) 1 0x33de28) 0042:trace:ole:CoGetTreatAsClass ({0000034b-0000-0000-c000-000000000046},0x33dd68) 0042:Call ntdll.RtlInitUnicodeString(0033db54,7e1f31e0 L"\Registry\Machine\Software\Classes") ret=7e126c71 0042:Ret ntdll.RtlInitUnicodeString() retval=0033db54 ret=7e126c71 0042:Call ntdll.NtCreateKey(0033db74,02000000,0033db5c,00000000,00000000,00000000,00000000) ret=7e126a70 0042:Ret ntdll.NtCreateKey() retval=00000000 ret=7e126a70 0042:trace:ole:create_classes_root_hkey L"\Registry\Machine\Software\Classes" -> 0x74 0042:Call ntdll.RtlInitUnicodeString(0033dbf0,0033dc42 L"CLSID\{0000034B-0000-0000-C000-000000000046}") ret=7e126f02 0042:Ret ntdll.RtlInitUnicodeString() retval=0033dbf0 ret=7e126f02 0042:Call ntdll.NtOpenKey(0033dc3c,00020019,0033dbf8) ret=7e126f17 0042:Ret ntdll.NtOpenKey() retval=c0000034 ret=7e126f17 0042:Call ntdll.RtlNtStatusToDosError(c0000034) ret=7e126f23 0042:Ret ntdll.RtlNtStatusToDosError() retval=00000002 ret=7e126f23 0042:trace:ole:apartment_addref 4100000042: before = 1 0042:trace:ole:apartment_release 4100000042: after = 1 0042:trace:ole:CoGetClassObject CLSID: {0000034b-0000-0000-c000-000000000046},IID: {00000001-0000-0000-c000-000000000046} 0042:trace:ole:apartment_addref 4100000042: before = 1 0042:trace:ole:ClassFactory_QueryInterface (0x7e2634d0)->({00000001-0000-0000-c000-000000000046} 0x33dd78) 0042:trace:ole:GlobalOptions_CreateInstance ((nil) {0000015b-0000-0000-c000-000000000046} 0x33dd7c) 0042:Call ntdll.RtlAllocateHeap(00110000,00000000,00000008) ret=7e1265a0 0042:Ret ntdll.RtlAllocateHeap() retval=001a3af0 ret=7e1265a0 0042:trace:ole:GlobalOptions_QueryInterface (0x1a3af0)->({0000015b-0000-0000-c000-000000000046} 0x33dd7c) 0042:trace:ole:GlobalOptions_AddRef (0x1a3af0) ref=2 0042:trace:ole:GlobalOptions_Release (0x1a3af0) ref=1 0042:Ret ole32.CoCreateInstance() retval=00000000 ret=1001ba72 0042:fixme:ole:GlobalOptions_Set (0x1a3af0)->(1 1) 0042:trace:ole:GlobalOptions_Release (0x1a3af0) ref=0 ... --- snip ---
$ wine --version wine-3.15
Regards
https://bugs.winehq.org/show_bug.cgi?id=30856
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c7e6fe6cdfacd64407d2c01f7ed | |ee5f396f7ea47
https://bugs.winehq.org/show_bug.cgi?id=30856
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.16.