locked
Modern app crashes Error code: 0x80040150

    Question

  • Hi *

    I have an app published in the App Store (Windows 8 / 8.1). I took the crash reports available in the developer's portal and tried to understand where is crashes by using Windows Debugger. When I check the managed stack (my app is in C#) I see that my app crashes in the Main method. And if I see the error message .. this is what I see:

    Error code: (HRESULT) 0x80040150 (2147746128) - Could not read key from registry

    I know that my app runs fine in a lot of computers. And based on the description of the error. It doesn't look like it's a problem in my app because I understand that Modern apps don't have access to Registry. 

    Any idea what is the cause of this error in the context of modern app?


    Steven Alexander

    Friday, October 17, 2014 9:51 PM

All replies

  • Can you share the dump file via OneDrive? What does the managed callstack look like in Windbg? You can use the "!clrstack" command in Windbg to print the managed callstack.

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Saturday, October 18, 2014 1:34 AM
    Moderator
  • I have to check if I can share the crash dump. First . But I ran the command you suggested (plus others) and this is what I see. Anything else that I can explore?

    0:000> !pe
    ----------------------------------------------------------------------------
    The user dump currently examined is a minidump. Consequently, only a subset
    of sos.dll functionality will be available. If needed, attaching to the live
    process or debugging a full dump will allow access to sos.dll's full feature
    set.
    To create a full user dump use the command: .dump /ma <filename>
    ----------------------------------------------------------------------------
    Exception object: 0000009580002188
    Exception type:   System.Exception
    Message:          <Invalid Object>
    InnerException:   <none>
    StackTrace (generated):
        SP               IP               Function
        00000095E96FE9C0 0000000000000000 Windows_UI_Xaml!UNKNOWN+0x1
        00000095E96FEAD0 00007FF96E9500F5 <MYAPPID>!<MYAPPID>.Program.Main(System.String[])+0x65

    StackTraceString: <none>
    HResult: 80040150
    0:000> !error 80040150
    Error code: (HRESULT) 0x80040150 (2147746128) - Could not read key from registry
    0:000> !clrstack
    OS Thread Id: 0x1288 (0)
            Child SP               IP Call Site
    GetFrameContext failed: 1
    0000000000000000 0000000000000000 <unknown>


    Steven Alexander

    Monday, October 20, 2014 11:09 PM
  • Did you ever get this figured out? The dump file is not a full dump, so unfortunately the managed stack won't be able to show you anything as such, what does the native callstack look like? Use the "k" command.

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Saturday, November 08, 2014 2:22 AM
    Moderator