[Bug 38088] APB Reloaded Launcher (.NET 2.0 app) crashes on startup (some CIM data type to OLE variant (VT) mappings are incorrect)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Feb 15 09:17:18 CST 2015


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

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|-unknown                    |wmi&wbemprox
            Summary|APB Reloaded Launcher       |APB Reloaded Launcher (.NET
                   |crashes on startup          |2.0 app) crashes on startup
                   |                            |(some CIM data type to OLE
                   |                            |variant (VT) mappings are
                   |                            |incorrect)
     Ever confirmed|0                           |1

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

confirming.

@tiago When creating a bug you *must* state *all* modifications beforehand
otherwise investigation/reproducing of issues becomes difficult. Fortunately
it's not relevant in this case, can be reproduced with vanilla Wine though.

Continuation of bug 37001 ("some CIM data type to OLE variant (VT) mappings are
incorrect"), now with another class.

Managed backtrace:

--- snip ---
System.TypeInitializationException: The type initializer for 'Hosting.cLog'
threw an exception. ---> System.InvalidCastException: Specified cast is not
valid.
   at System.Management.PropertyData.MapWmiValueToValue(Object wmiValue,
CimType type, Boolean isArray)
   at System.Management.PropertyData.get_Value()
   at Hosting.cOSInfoWMI.IWin32.Print(PrintDelegate Print)
   at Hosting.cLog.StartDiagnoseMessages()
   at Hosting.cLog.WriteDiagnoseMessages()
   at Hosting.cLog..cctor()
   --- End of inner exception stack trace ---
   at Hosting.cLog.Warning(String sMessage)
   at Hosting.Program.CurrentDomain_UnhandledException(Object sender,
UnhandledExceptionEventArgs
--- snip --- 

Relevant part of trace log:

--- snip ---
...
002a:trace:wbemprox:enum_class_object_Next 0x2bd91f0, -1, 1, 0x1629d0, 0x9204f8
002a:trace:wbemprox:create_class_object L"Win32_SoundDevice", 0x1629d0
...
002a:trace:wbemprox:create_class_object returning iface 0x2bde8b8 
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"__GENUS", 00000000, 0x33e3cc,
0x33e490, 0x33e48c
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"__PATH", 00000000, 0x33e3b4,
0x33e47c, 0x33e478
...
002a:trace:wbemprox:class_object_GetNames 0x2bde8b8, (null), 00000040, 0x33e3e4
{VT_EMPTY}, 0x33e3b0
002a:fixme:wbemprox:class_object_GetNames qualifier not supported 
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"Name", 00000000, 0x33e3dc,
0x9209ac, 0x9209b0
002a:Call oleaut32.SysAllocString(7df2f140 L"Wine Audio Device") ret=7df22590
002a:Ret  oleaut32.SysAllocString() retval=02bda584 ret=7df22590
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"ProductName", 00000000,
0x33e3dc, 0x920a28, 0x920a2c
002a:Call oleaut32.SysAllocString(7df2f140 L"Wine Audio Device") ret=7df22590
002a:Ret  oleaut32.SysAllocString() retval=02be07b4 ret=7df22590 
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"StatusInfo", 00000000,
0x33e3dc, 0x920a84, 0x920a88 
...
002a:trace:wbemprox:enum_class_object_Next 0x2bd91f0, -1, 1, 0x1629d0, 0x9204f8 
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"Name", 00000000, 0x33e438,
0x9209ac, 0x9209b0
002a:Call oleaut32.SysAllocString(7df2f140 L"Wine Audio Device") ret=7df22590
002a:Ret  oleaut32.SysAllocString() retval=02bda584 ret=7df22590 
...
002a:trace:wbemprox:class_object_Get 0x2bde8b8, L"StatusInfo", 00000000,
0x33e438, 0x920a84, 0x920a88
002a:Call oleaut32.VariantClear(0033e438) ret=79f28046
002a:Ret  oleaut32.VariantClear() retval=00000000 ret=79f28046
...
002a:Call msvcr80._CxxThrowException(0033e3cc,7a35d54c) ret=7a05ad4a
002a:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0033e344)
ret=7e908ac1
002a:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b83b54f
ip=7b83b54f tid=002a
002a:trace:seh:raise_exception  info[0]=19930520
002a:trace:seh:raise_exception  info[1]=0033e3cc
002a:trace:seh:raise_exception  info[2]=7a35d54c
002a:trace:seh:raise_exception  eax=7b8271d5 ebx=7b8c1000 ecx=19930520
edx=0033e294 esi=0033e340 edi=0033e300
002a:trace:seh:raise_exception  ebp=0033e2d8 esp=0033e274 cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00000283 
...
002a:Call msvcr80._CxxThrowException(0033e3cc,7a35d54c) ret=7a05ad4a
002a:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0033e344)
ret=7e908ac1
002a:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b83b54f
ip=7b83b54f tid=002a
002a:trace:seh:raise_exception  info[0]=19930520
002a:trace:seh:raise_exception  info[1]=0033e3cc
002a:trace:seh:raise_exception  info[2]=7a35d54c
002a:trace:seh:raise_exception  eax=7b8271d5 ebx=7b8c1000 ecx=19930520
edx=0033e294 esi=0033e340 edi=0033e300
...
--- snip ---

Managed code from launcher ('Win32_SoundDevice' wrapper):

--- snip ---
using Hosting;
using System;
public class Win32_SoundDevice : cOSInfoWMI.IWin32
{
    internal new enum Property : ushort
    {
        Availability,
        ConfigManagerErrorCode,
        Description,
        DMABufferSize,
        ErrorDescription,
        LastErrorCode,
        Manufacturer,
        MPU401Address,
        Name,
        ProductName,
        Status,
        StatusInfo
    }
    internal new enum SpecialDate : ushort
    {

    }
    internal new enum SpecialByte : ushort
    {

    }
    internal new enum SpecialKiloByte : ushort
    {
        DMABufferSize
    }
    private enum Availability : ushort
    {
        Other = 1,
        Unknown,
        Running_or_Full_Power,
        Warning,
        In_Test,
        Not_Applicable,
        Power_Off,
        Off_Line,
        Off_Duty,
        Degraded,
        Not_Installed,
        Install_Error,
        Power_Save__Unknown,
        Power_Save__Low_Power_Mode,
        Power_Save__Standby,
        Power_Cycle,
        Power_Save__Warning
    }
}
--- snip ---

Source:
http://source.winehq.org/git/wine.git/blob/91c7a84af5b52c2b507cb5559a97362a79c7fa61:/dlls/wbemprox/builtin.c#l542

--- snip ---
542 static const struct column col_sounddevice[] =
543 {
544     { prop_nameW, CIM_STRING },
545     { prop_productnameW, CIM_STRING },
546     { prop_statusinfoW, CIM_UINT16 }
547 };
--- snip ---

$ sha1sum GamersFirst_LIVE\!_Setup_EN.exe 
904bd380bba06cc32288646fddd5e4b9287ca71b  GamersFirst_LIVE!_Setup_EN.exe

$ du -sh GamersFirst_LIVE\!_Setup_EN.exe 
13M    GamersFirst_LIVE!_Setup_EN.exe

$ wine --version
wine-1.7.36-83-gf75d1b0

Regards

-- 
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