cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Questions about Wine on Linux
Locked
sponsor61
Level 3
Level 3
Posts: 65
Joined: Tue Apr 07, 2020 10:05 pm

cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Post by sponsor61 »

wbridge5 is a winner of the world computer bridge championship, is freeware, has rudimentary 2D graphics, and has an .exe only 3.3 Meg in size. This is the sort of program that usually runs perfectly under wine with no tweaking.

It does run ALMOST perfectly, but when you try to load or save a file no dialog pops up; instead the error message

0009:err:ole:CoCreateInstanceEx apartment not initialised

is sent to the console under Ubuntu 19.10/wine 4.0.2 and fedora 30/wine 5.0

The help menu also is blank except for the index, otherwise everything works including print to file.

I'm guessing that the problem is that there's a registry path variable that's not getting set correctly, thus wbridge5 doesn't know where to read from or write to. What should I do to solve this problem?

Thanks
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Post by spoon0042 »

That line itself probably doesn't mean anything, can you post a full log using 5.0? https://wiki.winehq.org/FAQ#How_can_I_g ... tput.29.3F

Code: Select all

(and please use code tags)
sponsor61
Level 3
Level 3
Posts: 65
Joined: Tue Apr 07, 2020 10:05 pm

Re: cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Post by sponsor61 »

Thanks for your reply. The log file, created on fedora 30 linux, is included below. After that I included the install log and the text of the desktop launcher file created during install.

To create the first log file below, all I did was start Wbridge5 via "wine Wbridge5.exe", choose File/Open File from the drop down menu, then choose File/Quit. When I click on File/Open File only a single line is output to the log file (the line with the "apartment not initialized" message.) The path to download wbridge5 is here: http://www.wbridge5.com/Wbridge5_setup.exe

----- contents of log file when starting Wbridge5, selecting File/Open File and then exiting --------
000b:fixme:winediag:__wine_start_process Wine Staging 5.0 is a testing version containing experimental patches.
000b:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
0009:fixme:dwmapi:DwmIsCompositionEnabled 0032EE90
0009:fixme:event:wait_for_withdrawn_state window 0x100b0/2000005 wait timed out
0009:fixme:event:wait_for_withdrawn_state window 0x10088/2000003 wait timed out
0009:err:ole:CoCreateInstanceEx apartment not initialised
0009:fixme:event:wait_for_withdrawn_state window 0x10092/2000004 wait timed out
0009:fixme:event:wait_for_withdrawn_state window 0x10088/2000003 wait timed out

--- output to terminal when initially installing Wbridge5 with wine --------

$ wine Wbridge5_setup.exe
wine: created the configuration directory '/home/user/.wine'
000b:fixme:winediag:__wine_start_process Wine Staging 5.0 is a testing version containing experimental patches.
000b:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
0010:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0010:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:err:mscoree:LoadLibraryShim error reading registry key for installroot
0010:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0010:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
001b:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0010:fixme:dwmapi:DwmIsCompositionEnabled 00000000068535D4
001d:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x2b0fcc5, context 0x734a270, init_notify 0, handle 0x764f9f0): stub
0038:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0038:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0038:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0038:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0036:fixme:dwmapi:DwmIsCompositionEnabled 05AAFD14
003a:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x2570593, context 0x2d6348, init_notify 0, handle 0x68cfce8): stub
0036:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
000b:fixme:event:wait_for_withdrawn_state window 0x20048/1800001 wait timed out
wine: configuration in L"/home/user/.wine" has been updated.
0054:fixme:win:DisableProcessWindowsGhosting : stub
0054:fixme:graphics:ShutdownBlockReasonDestroy (0x10082): stub
0054:fixme:graphics:ShutdownBlockReasonCreate (0x10082, L"Installing"): stub
0054:fixme:msg:ChangeWindowMessageFilterEx 0x10090 c056 1 (nil)
0054:fixme:event:wait_for_withdrawn_state window 0x10090/2200003 wait timed out
0054:fixme:rstrtmgr:RmStartSession 0049C3F0, 0, 0049C3F4 stub!
0054:fixme:graphics:ShutdownBlockReasonDestroy (0x10082): stub
0054:fixme:graphics:ShutdownBlockReasonCreate (0x10082, L"Installing Wbridge5."): stub
0054:fixme:msg:ChangeWindowMessageFilterEx 0x20090 c056 1 (nil)
0054:fixme:msg:ChangeWindowMessageFilterEx 0x2009c c056 1 (nil)
0054:fixme:msg:ChangeWindowMessageFilterEx 0x3009c c056 1 (nil)
0054:fixme:shell:SHAutoComplete stub
0054:fixme:rstrtmgr:RmRegisterResources -559038737, 5, 008C835C, 0, 00000000, 0, 00000000 stub!
0054:fixme:rstrtmgr:RmGetList -559038737, 0032EDC4, 0032EDC8, 008C835C, 0032EDC0 stub!
0054:fixme:explorerframe:taskbar_list_SetProgressValue iface 006DE668, hwnd 00010082, ullCompleted 0, ullTotal 48d stub!
0054:fixme:sfc:SfcIsFileProtected (00000000, L"c:\\wbridge5\\unins000.exe") stub
0054:fixme:explorerframe:taskbar_list_SetProgressState iface 006DE668, hwnd 00010082, flags 0 stub!
0054:fixme:event:wait_for_withdrawn_state window 0x3009c/2200007 wait timed out
0054:fixme:exec:SHELL_execute flags ignored: 0x00000100
0054:fixme:ntdll:FILE_GetNtStatus Converting errno 8 to STATUS_UNSUCCESSFUL
0054:fixme:rstrtmgr:RmEndSession 3735928559 stub!
0054:fixme:graphics:ShutdownBlockReasonDestroy (0x10082): stub
0054:fixme:event:wait_for_withdrawn_state window 0x10082/2200001 wait timed out
$ 0060:fixme:event:wait_for_withdrawn_state window 0x10108/2600001 wait timed out

--------- text of desktop link created during installation of Wbridge5 --------
[Desktop Entry]
Name=Wbridge5
Exec=env WINEPREFIX="/home/user/.wine" /usr/bin/wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/user/.wine/dosdevices/c:/users/Public/Desktop/Wbridge5.lnk
Type=Application
StartupNotify=true
Path=/home/user/.wine/dosdevices/c:/wbridge5
Icon=6AE3_Wbridge5.0
StartupWMClass=wbridge5.exe
sponsor61
Level 3
Level 3
Posts: 65
Joined: Tue Apr 07, 2020 10:05 pm

Re: cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Post by sponsor61 »

To reproduce bug:

1. Download the 1.3 Meg install file Wbridge5_setup.exe at this link: http://www.wbridge5.com/Wbridge5_setup.exe

2. wine Wbridge5_setup.exe

3. cd to .wine/drive_c/wbridge5

4. wine ./Wbridge5.exe

5. select File/Open... There is no dialog box, just a one-line "009:err:ole:CoCreateInstanceEx ..." error message printed out to the console

6. select File/Save... same behavior as with File/Open...

It's not everyday that you find free software that won a world championship, and that runs on linux. Thanks for your help recommending a workaround/bug fix for wbridge5.
sponsor61
Level 3
Level 3
Posts: 65
Joined: Tue Apr 07, 2020 10:05 pm

Re: cant find path? 0009:err:ole:CoCreateInstanceEx apartment not initialised

Post by sponsor61 »

Problem solved - After I set winecfg to Windows XP, File/Open and File/Save worked correctly.
Locked