[SOLVED] VIP MIXED IN KEY 7.5 COR_E_FAILFAST (Debug Log)

Status
Not open for further replies.

maki

Member
Joined
Jul 5, 2015
Posts
271
VIP MIXED IN KEY 7.5 COR_E_FAILFAST (Debug Log)

Windows 7 x64

[X] EXIT (Close Mixed In Key = error message)

Note:Original English-Polish message:


App: MixedInKey.exe
Wersja architektury: v4.0.30319
Opis: aplikacja zażądała przerwania procesu za pomocą metody System.Environment.FailFast(ciąg komunikatu).
Komunikat: Fatal error: System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.

w MixedInKey.Services.SystemEventsListener.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Stack:
w System.Environment.FailFast(System.String)
w MixedInKey.App.PromptUserAboutUnhandledException(System.Exception)
w MixedInKey.App.ReportUnhandledException(System.Exception)
w MixedInKey.App.Current_DispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
w System.Windows.Threading.Dispatcher.CatchException(System.Exception)
w System.Windows.Threading.Dispatcher.CatchExceptionStatic(System.Object, System.Exception)
w System.Windows.Threading.ExceptionWrapper.CatchException(System.Object, System.Exception, System.Delegate)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
w System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
w MS.Win32.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
w MS.Win32.HwndWrapper.DestroyWindow(System.Object)
w MS.Win32.HwndWrapper.Dispose(Boolean, Boolean)
w MS.Win32.HwndWrapper.Dispose()
w System.Windows.Interop.HwndSource.Dispose(Boolean)
w System.Windows.Interop.HwndSource+WeakEventDispatcherShutdown.OnShutdownFinished(System.Object, System.EventArgs)
w System.EventHandler.Invoke(System.Object, System.EventArgs)
w System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
w System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
w System.Windows.Threading.Dispatcher.ShutdownImpl()
w System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
w System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
w System.Windows.Threading.Dispatcher.Run()
w System.Windows.Application.RunDispatcher(System.Object)
w System.Windows.Application.RunInternal(System.Windows.Window)
w System.Windows.Application.Run(System.Windows.Window)
w MixedInKey.App.Main()


Screen_Shot_06_06_16_at_07_02_PM.jpg
 
Unfortunately, the developers "Mixed In Key" can not help me (!)
I reported many times the bug (!)
workaround
how to run the application without UAC Prompts ?
IsUacOs = True, IsElevated = False, UacBypassEnabled = True

but how to do it? You know?
 
Does Right Click on the program > Properties > Compatibility > "Run this program as an administrator" help?
 
"Run this program as an administrator" help?

Never run the application as administrator! (Recommendation from the developer)

Disable UAC = No Error
Enable UAC = Error

how to disable UAC only for this application
Of course, possible, but I do not know exactly how.
 
Hello again.

Please navigate to the file using 7-zip, right click > Open as Archive > \.rsrc\MANIFEST\1 > right click > Edit, copy and paste here.

Does this exist?
 
Code:
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <!-- UAC Manifest Options
            If you want to change the Windows User Account Control level replace the 
            requestedExecutionLevel node with one of the following.

        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

            Specifying requestedExecutionLevel node will disable file and registry virtualization.
            If you want to utilize File and Registry Virtualization for backward 
            compatibility then delete the requestedExecutionLevel node.
        -->
        <requestedExecutionLevel level="asInvoker" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>
  
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!-- A list of all Windows versions that this application is designed to work with. Windows will automatically select the most compatible environment.-->

      <!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
      
    </application>
  </compatibility>


  <dependency>
    <!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
    <dependentAssembly>
      <assemblyIdentity
          type="win32"
          name="Microsoft.Windows.Common-Controls"
          version="6.0.0.0"
          processorArchitecture="*"
          publicKeyToken="6595b64144ccf1df"
          language="*"
        />
    </dependentAssembly>
  </dependency>
  
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
          type="win32"
          name="MP3Source.sxs"
          version="1.0.0.0" />
    </dependentAssembly>
  </dependency>

  <dependency>
  <dependentAssembly>
    <assemblyIdentity
        type="win32"
        name="MagellanAnalysisFilter.sxs"
        version="1.0.0.0" />
  </dependentAssembly>
  </dependency>

  <dependency>
    <dependentAssembly>
      <assemblyIdentity
          type="win32"
          name="dsfNativeFLACSource.sxs"
          version="1.0.0.0" />
    </dependentAssembly>
  </dependency>

  <dependency>
    <dependentAssembly>
      <assemblyIdentity
          type="win32"
          name="EnergyAnalysis.sxs"
          version="1.0.0.0" />
    </dependentAssembly>
  </dependency>
  
</asmv1:assembly>
 
The application manifest looks okay.

Code:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />

Means that the application won't automatically elevate. As a test, create a new user account - a standard, non-administrator account, and see if the application works from there.
 
Awesome :)

May I ask what the solution was so we can learn for next time?

Thanks!
 
Create a shortcut for example:

Target:
C:\Windows\system32\schtasks.exe /run /tn elevated_MixedInKey_7_yeK_ni_dexiMyeK_nI_dexiMsmargorPlacoLataDppAAJOMsresUC

Start in: "C:\Users\ . . .\AppData\Local\Programs\Mixed In Key\Mixed in Key 7"
 
niemiro - Oooopppsss. Very Bad Workaround.
"Run this program as an administrator" help?
Never run the application as administrator! (Recommendation from the developer)
The thing is that we don't require elevation of privileges anywhere in code, and the app should never run as admin (except if the user explicitly runs it as admin, which would be a mistake).

Here is the config we use in the manifest file:

requestedExecutionLevel level="asInvoker" uiAccess="false"

This configuration will honor the UAC settings and will not run as Admin implicitly. The only app that requires elevation to admin rights is the installer, which is pretty much common behavior for all installers, but the app itself shouldn't elevate to admin automatically, ever.

Run as Administrator = Drag & Drop Broken :banghead:

I will not disable UAC only because the application does not work properly with UAC.
This is a very stupid solution.
I'm looking for the best way, and I searched the entire internet , I will find a good solution. Believe.

Code:
[COLOR=#ff0000]System.NullReferenceException: Object reference not set to an instance of an object.[/COLOR]
   at MixedInKey.Services.SystemEventsListener.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)
 
Update:

PLEASE Find me an option that will not run the program with administrator privileges (because it does not work Drag and Drop)
1f642.png


End Program "CICERO UI Wnd Frame" ERROR
Screen_Shot_06_06_16_at_07_02_PM.jpg


Screen_Shot_06_08_16_at_10_03_AM.jpg
 
Please follow my instructions from earlier - they are very important for me to determine if the solution I have in mind will work.

As a test, create a new user account - a standard, non-administrator account [with UAC enabled], and see if the application works from there.
 
Application Mixed In Key
It should not be run as Administrator

so I do not run as administrator.

Drag and Drop - working, working, working,

but it show up the most annoying (!!!) "Application Popup"

How to Disable "Application Popup message: ......"




Screen_Shot_06_08_16_at_12_12_PM.jpg
 
Do you have a Debug Log for that?

MixedInKeyErrorLog
Code:
<</DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>2</EventID><Type>3</Type><SubType Name="Critical">0</SubType><Level>1</Level><TimeCreated SystemTime="2016-06-08T10:10:40.6763995Z" /><Source Name="MixedInKey" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="MixedInKey" ProcessID="5460" ThreadID="1" /><Channel/><Computer>ASUS</Computer></System><ApplicationData><TraceData><DataItem>Version: 7.5.224.0</DataItem><DataItem>System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
   w MixedInKey.Services.SystemEventsListener.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   w System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</DataItem></TraceData></ApplicationData></E2ETraceEvent>

Screen_Shot_06_08_16_at_01_16_PM.jpg
 
If the program won't run split, it won't run elevated and it won't run unelevated & unsplit then you're in a mess unless you disable UAC. We cannot fix those NullReferenceExceptions - they're essentially bugs in the software only the developer can fix. I suggest you take the latest debug log back to the developer and see if they'll fix that bug instead. If you can get it running under a standard account with UAC enabled we can try to running the program in the context of that account from your admin account (the asInvoker manifest should allow that). But at least one of these bugs needs to be fixed by the developer before we have any chance at all.
 
Status
Not open for further replies.

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top