[Bug 45867] Adobe Digital Editions 4.5 (.NET 4.0 app) crashes on startup with WinVer set to 'Windows 8' (kernel32.GetLogicalProcessorInformationEx is a stub)

WineHQ Bugzilla wine-bugs at winehq.org
Sun Feb 21 16:27:04 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=45867

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |dotnet, download
          Component|-unknown                    |kernel32
            Summary|I tried to start Adobe      |Adobe Digital Editions 4.5
                   |Digital Editions 4.5 and an |(.NET 4.0 app) crashes on
                   |error came out.             |startup with WinVer set to
                   |                            |'Windows 8'
                   |                            |(kernel32.GetLogicalProcess
                   |                            |orInformationEx is a stub)
                 CC|                            |focht at gmx.net
             Status|NEEDINFO                    |RESOLVED
                URL|                            |https://web.archive.org/web
                   |                            |/20181104163913/https://ade
                   |                            |download.adobe.com/pub/adob
                   |                            |e/digitaleditions/ADE_4.5_I
                   |                            |nstaller.exe
         Resolution|---                         |DUPLICATE
            Version|1.7.54                      |1.7.53

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming. OP had WINEPREFIX WinVer set to 'Windows 8' for whatever reasons.
Please don't change the default Windows version if you have no idea what it
actually means.

Also *always* attach the console output. The crash reporter backtrace is mostly
useless in case of exceptions thrown from managed code (.NET).

Prerequisite: 'winetricks -q dotnet40'

--- snip ---
$ wine --version
wine-1.7.53

$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/Adobe/Adobe Digital Editions 4.5

$ WINEDEBUG=+seh,+relay wine ./DigitalEditions.exe >>log.txt 2>&1
...
0032:Call KERNEL32.LoadLibraryExW(0033afc0
L"rmsdk_wrapper.dll",00000000,00000000) ret=791de69a
...
0032:Call PE DLL (proc=0x105bb710,module=0x10000000
L"rmsdk_wrapper.dll",reason=PROCESS_ATTACH,res=(nil))
...
0032:Call KERNEL32.GetVersionExW(0033a780) ret=105e530f
0032:Ret  KERNEL32.GetVersionExW() retval=00000001 ret=105e530f
0032:Call KERNEL32.GetModuleHandleW(10737468 L"kernel32.dll") ret=105c9dd9
0032:Ret  KERNEL32.GetModuleHandleW() retval=7b810000 ret=105c9dd9
0032:Call KERNEL32.GetProcAddress(7b810000,1084c950 "SetThreadGroupAffinity")
ret=105c9de9
0032:Ret  KERNEL32.GetProcAddress() retval=7b8269c4 ret=105c9de9
0032:Call KERNEL32.GetProcAddress(7b810000,1084c968 "GetThreadGroupAffinity")
ret=105c9df4
0032:Ret  KERNEL32.GetProcAddress() retval=7b824984 ret=105c9df4
0032:Call KERNEL32.GetModuleHandleW(10737468 L"kernel32.dll") ret=105c9e29
0032:Ret  KERNEL32.GetModuleHandleW() retval=7b810000 ret=105c9e29
0032:Call KERNEL32.GetProcAddress(7b810000,1084c980
"GetCurrentProcessorNumberEx") ret=105c9e2c
0032:Ret  KERNEL32.GetProcAddress() retval=7bc24928 ret=105c9e2c 
...
0032:Call KERNEL32.GetProcessAffinityMask(ffffffff,10b90fbc,10b90fc0)
ret=105e2039
0032:Ret  KERNEL32.GetProcessAffinityMask() retval=00000001 ret=105e2039
0032:Call KERNEL32.GetModuleHandleW(10737468 L"kernel32.dll") ret=105ca023
0032:Ret  KERNEL32.GetModuleHandleW() retval=7b810000 ret=105ca023
0032:Call KERNEL32.GetProcAddress(7b810000,1084c99c
"GetLogicalProcessorInformationEx") ret=105ca02a
0032:Ret  KERNEL32.GetProcAddress() retval=7b82406c ret=105ca02a
0032:Call KERNEL32.GetLogicalProcessorInformationEx(0000ffff,00000000,10b90fe0)
ret=105ca047
fixme:process:GetLogicalProcessorInformationEx (65535,(nil),0x10b90fe0): stub
0032:Ret  KERNEL32.GetLogicalProcessorInformationEx() retval=00000000
ret=105ca047
0032:Call KERNEL32.GetLastError() ret=105ca04f
0032:Ret  KERNEL32.GetLastError() retval=00000078 ret=105ca04f
...
0032:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0033a0f0)
ret=105bf82d
trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b83926e ip=7b83926e
tid=0032
trace:seh:raise_exception  info[0]=19930520
trace:seh:raise_exception  info[1]=00000000
trace:seh:raise_exception  info[2]=00000000
trace:seh:raise_exception  eax=7b828101 ebx=00000008 ecx=0033a024 edx=0033a0f0
esi=00000000 edi=e06d7363
trace:seh:raise_exception  ebp=0033a078 esp=0033a004 cs=0023 ds=002b es=002b
fs=0063 gs=006b flags=00200212
trace:seh:call_vectored_handlers calling handler at 0x791f5a7c code=e06d7363
flags=1 
...
0032:exception in PE entry point
(proc=0x105bb710,module=0x10000000,reason=PROCESS_ATTACH,res=(nil))
0032:Ret  PE DLL (proc=0x105bb710,module=0x10000000
L"rmsdk_wrapper.dll",reason=PROCESS_ATTACH,res=(nil)) retval=0
0032:Call PE DLL (proc=0x105bb710,module=0x10000000
L"rmsdk_wrapper.dll",reason=PROCESS_DETACH,res=(nil))
0032:Ret  PE DLL (proc=0x105bb710,module=0x10000000
L"rmsdk_wrapper.dll",reason=PROCESS_DETACH,res=(nil)) retval=0
...
err:eventlog:ReportEventW L"Application: DigitalEditions.exe\nFramework
Version: v4.0.30319\nDescription: The process was terminated due to an
unhandled exception.\nException Info:
System.Windows.Markup.XamlParseException\nStack:\n   at
System.Windows.Markup.XamlReader.RewrapException(System.Exception,
System.Xaml.IXamlLineInfo"...
...
Unhandled Exception: System.Windows.Markup.XamlParseException: The invocation
of the constructor on type 'DE.View.Devices' that matches the specified binding
constraints threw an exception. ---> System.TypeInitializationException: The
type initializer for 'DE.Model.MainDataProxy' threw an exception. --->
System.DllNotFoundException: Unable to load DLL 'rmsdk_wrapper.dll': Exception
from HRESULT: 0xE06D7363
   at DE.Model.Utils.RMSDK_API.rmsdk_init(Byte[] resPath)
   at DE.Model.MainDataProxy..ctor()
   at DE.Model.MainDataProxy..cctor()
   --- End of inner exception stack trace ---
   at DE.Model.MainDataProxy.get_Instance()
   at DE.ViewModel.DeviceViewModel.Init()
   at DE.View.Devices..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e,
IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader,
IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object
rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader,
Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel
accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext
parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri
resourceLocator)
   at DE.MainWindow.InitializeComponent()
   at DE.MainWindow..ctor()
   at DE.App.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source,
Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback,
Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source,
Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback,
Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at DE.App.Main()
wine: Unhandled exception 0xe0434352 in thread 9 at address 0x7b83926e (thread
0009), starting debugger...
--- snip ---

https://source.winehq.org/git/wine.git/blob/65d699eb5f7fc151197f3dc9f36499ee3e43f8e7:/dlls/kernel32/process.c#l3833

--- snip ---
3833 /***********************************************************************
3834  *           GetLogicalProcessorInformationEx   (KERNEL32.@)
3835  */
3836 BOOL WINAPI
GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP relationship,
PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX buffer, PDWORD pBufLen)
3837 {
3838     FIXME("(%u,%p,%p): stub\n", relationship, buffer, pBufLen);
3839     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
3840     return FALSE;
3841 }
--- snip ---

Dupe of bug 25086 ("Multiple games and applications need
kernel32.GetLogicalProcessorInformationEx implementation (CPU-Z 1.72, Splinter
Cell: Blacklist, Adobe CC 2015, Kontakt 5)")

$ sha1sum ADE_4.5_Installer.exe 
cf271d4f749bdf0b6cfc6114f5536dfb6381fe70  ADE_4.5_Installer.exe

$ du -sh ADE_4.5_Installer.exe 
8.5M    ADE_4.5_Installer.exe

Regards

*** This bug has been marked as a duplicate of bug 25086 ***

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list