DAX Studio 2.1.1 fail to start

Apr 14, 2015 at 6:45 AM
Hi,

DAX Studio 2.1.1 failed to launch after I installed , The daxstudio icon flash on screen then disappear, Daxstudio can not start.
I installed previous version 2.1 and 2.0 , still can not launch the program.

Environment:
Win server 2008 R2
SQL SERVER 2012 enterprise
.Net framework 4.5.5
16 G ram

Thanks for any advice.
Coordinator
Apr 14, 2015 at 7:43 AM
Sorry to hear that. Instant crashes like that are usually a result of missing dependencies.

The dependencies listed here https://daxstudio.codeplex.com/wikipage?title=Single%20Installer should be installed by the installer, but if you have the SQL 2012 client tools installed those files should be there already.

Can you try switching on the logging settings outlined in the documentation here: http://daxstudio.codeplex.com/wikipage?title=logging%20settings and either paste the contents back here or if the file gets a bit big you can create an issue and attach the file to that.
Apr 14, 2015 at 11:24 AM
hi,
Thanks for your reply. I did some work as your suggested, but the instant still crash during start up.
What i did was :
  1. re-installed ADOMD
  2. re-installed AMO
  3. Upgrade SQL SERVER 2012 to sp2
  4. Set up Fusion Log as instructed , but it doesn't generate any log file.
  5. installed DaxStudio 2.0, it provides some log info when crashed happened .
Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: daxstudio.exe
Problem Signature 02: 2.0.0.15
Problem Signature 03: 5486011c
Problem Signature 04: PresentationCore
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa7c83
Problem Signature 07: 464a
Problem Signature 08: 47
Problem Signature 09: System.IO.FileFormatException
OS Version: 6.0.6002.2.2.0.274.10
Locale ID: 3081
Coordinator
Apr 14, 2015 at 12:40 PM
That does not really give me any more information to be able to diagnose a possible issue. I can't reproduce your issue on any of my test machines so I really need either the fusion logs or the application log. I really only need the fusion logs if the application log fails to turn up anything or if the application crashes before it logging can start up, but if you see the splash screen start up then the application logging has possibly initialized.

So if you can follow the instructions on the logging page as to how to turn on application logging that might give me enough information to diagnose this issue.

Otherwise I'll need the fusion logs. When you configured the fusion logging did you change the path to one that exists on your system? If you point it at a drive or folder which does not exist it will not log anything.
Apr 14, 2015 at 12:56 PM
Ok, finally I got the application log.

2015-04-14 05:49:17.487 -07:00 [Information] ============ DaxStudio Startup =============
2015-04-14 05:49:17.722 -07:00 [Debug] "DaxStudioHost" "ctor" "constructing ProxyStandalone"
2015-04-14 05:49:17.768 -07:00 [Debug] "DocumentTabViewModel" "ActiveDocument:Set" "" {Document}
2015-04-14 05:49:19.230 -07:00 [Verbose] "DaxFormatter" "PrimeConnectionAsync" "Start"
2015-04-14 05:49:19.275 -07:00 [Verbose] Proxy: "/api/daxformatter/DaxFormat"
2015-04-14 05:49:20.447 -07:00 [Verbose] ============ Shell Started =============
2015-04-14 05:49:20.728 -07:00 [Debug] "RibbonViewModel" "Handle:ApplicationActivatedEvent:Start" ApplicationActivatedEvent { }
2015-04-14 05:49:20.732 -07:00 [Debug] "RibbonViewModel" "Handle:ApplicationActivatedEvent:End" ApplicationActivatedEvent { }
2015-04-14 05:49:20.733 -07:00 [Debug] "DocumentViewModel" "OnActivate" "Query1.dax"
2015-04-14 05:49:20.734 -07:00 [Verbose] "RibbonViewModel" "SelectedTarget:Set" "Grid"
2015-04-14 05:49:20.738 -07:00 [Debug] "RibbonViewModel" "Handle:ActivateDocumentEvent" "Query1.dax"
2015-04-14 05:49:20.738 -07:00 [Verbose] "RibbonViewModel" "SelectedTarget:Set" "Grid"
2015-04-14 05:49:20.752 -07:00 [Error] "AppBootstrapper" "OnUnhandledException" "System.IO.FileFormatException: The image format is unrecognized. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x88982F07
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapFrameDecode.EnsureThumbnail()
at System.Windows.Media.Imaging.BitmapFrameDecode.get_Thumbnail()
at MS.Internal.AppModel.IconHelper.GetBestMatch(ReadOnlyCollection1 frames, Size size)
at MS.Internal.AppModel.IconHelper.CreateIconHandleFromImageSource(ImageSource image, Size size)
at MS.Internal.AppModel.IconHelper.GetIconHandlesFromImageSource(ImageSource image, IconHandle& largeIconHandle, IconHandle& smallIconHandle)
at System.Windows.Window.UpdateIcon()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at Caliburn.Micro.WindowManager.ShowWindow(Object rootModel, Object context, IDictionary
2 settings)
at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary2 settings)
at DaxStudio.UI.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.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)"
2015-04-14 05:49:20.754 -07:00 [Error] "AppBootstrapper" "OnUnhandledException-InnerException" "System.Runtime.InteropServices.COMException (0x88982F07): Exception from HRESULT: 0x88982F07"
2015-04-14 05:49:20.755 -07:00 [Error] Class: "EnryPoint" Method: "Main" Error: "The image format is unrecognized." Stack: " at System.Windows.Media.Imaging.BitmapFrameDecode.EnsureThumbnail()
at System.Windows.Media.Imaging.BitmapFrameDecode.get_Thumbnail()
at MS.Internal.AppModel.IconHelper.GetBestMatch(ReadOnlyCollection
1 frames, Size size)
at MS.Internal.AppModel.IconHelper.CreateIconHandleFromImageSource(ImageSource image, Size size)
at MS.Internal.AppModel.IconHelper.GetIconHandlesFromImageSource(ImageSource image, IconHandle& largeIconHandle, IconHandle& smallIconHandle)
at System.Windows.Window.UpdateIcon()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at Caliburn.Micro.WindowManager.ShowWindow(Object rootModel, Object context, IDictionary2 settings)
at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary
2 settings)
at DaxStudio.UI.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.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.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
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.LegacyInvokeImpl(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.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at DaxStudio.Standalone.EntryPoint.Main()"
2015-04-14 05:49:20.756 -07:00 [Information] ============ DaxStudio Shutdown =============
Apr 14, 2015 at 1:41 PM
Edited Apr 14, 2015 at 2:41 PM
I found out why the fusion log doesn't work on my machine. After I add a value "ForceLog" and set to 1 to the registry and re-run the Daxstudio, the logging file appears.

FusionLogon.txt :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"LogFailures"=dword:00000001
"LogPath"="c:\\Fusion\\"
"ForceLog"=dword:00000001

FusionLogoff.txt :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"LogFailures"=dword:00000000
"ForceLog"=dword:00000000
Coordinator
Apr 14, 2015 at 9:07 PM
The fusion log not producing anything makes sense because there are no exceptions being thrown by fusion (which is the part of the .Net runtime responsible for loading dependencies). Normally it will only write out a log if there is an exception, ForceLog just forces it to log all the success messages.

The application log tells me that the issue is loading images for the ribbon buttons, but I can't think why that would happen. All the images use the same file format and they are all compiled as resources into DaxStudio.UI.dll. My only guess at the moment is that maybe there was an issue during download or install and that file got corrupted somehow, but it seems like a long shot as I can't see how that could happen for 2.0, 2,1 and 2,1,1.

The only other thing that is different is that I've done all my testing on client OS's like Windows 7 and Windows 8.1. Are you able to install this on a client machine and see if that works? Do you know if you have the desktop experience feature (I think that's what's called) installed on this server? I have access to some Server 2008 R2 machines at work. I'll test on our dev server and see if the same thing happens..
Apr 15, 2015 at 1:07 AM
Thanks for the time you spent on following this issue. Your suggestions is really helpful.
I installed DAXStudio on client OS (WIN 7), instant successfully launch and also add-in for excel works fine too.
It seems there was a compatible issue over my Sever 2008 R2, I will test if the instant is able to launch after I install desktop experience feature on dev server.
Lets see if the instant can run on your dev server with Server 2008 R2.
Coordinator
Apr 15, 2015 at 3:25 AM
Edited Apr 15, 2015 at 3:42 AM
hmm, so it works fine on my dev server at work and that does not have the desktop experience feature installed.

I know we have a few others running in server environments. We always planned for Dax Studio to be fairly "light touch" so that it could be installed on a server if needed. It's just not one of the scenarios I've gotten around to testing since we released v2.

If I get a chance on the weekend I'll try to run up some fresh server VMs and see how they behave.

All the images used in Dax Studio are in PNG format. Are you able to view PNG files from this server? The Dax Studio logo on this site is a PNG file if you need a sample to test with.
Apr 15, 2015 at 4:59 AM
Edited Apr 15, 2015 at 7:58 AM
PNG format files can be viewed on my Server 2008 R2. I notice the image name "DaxStudio2.ico" can't be viewed by using either Paint or IE, Warning Message indicates that "Paint cannot read this file. This is not a valid bitmap file, or its format is not currently supported". but I am able to edit this ico file via VS2010 .

Is "DaxStudio2.ico" image possible the cause of the following error regards on application log:

2015-04-14 05:49:20.755 -07:00 [Error] Class: "EnryPoint" Method: "Main" Error: "The image format is unrecognized." Stack: " at System.Windows.Media.Imaging.BitmapFrameDecode.EnsureThumbnail()

I copy it to client machine running WIN7, there are no problems to view and open "DaxStudio2.ico" via multiple tools.
Coordinator
Apr 15, 2015 at 12:43 PM
hart02 wrote:
Is "DaxStudio2.ico" image possible the cause of the following error regards on application log:
No, it's not, the application does not load the ico file at all. The ico file is linked to the application as a resource - it's what you see in the start menu or if you put a short cut on the desktop. The application log you posted indicates that the application was at the point of constructing the Ribbon when it crashed with the error loading one of the images. At that point it's only loading PNG resources.

I've test on some 2008 R2 servers and some 2012 servers and the application loaded fine on all of them (without requiring the desktop experience feature). So it seems to be possibly indicating either some corruption during install or download or some sort of issue on that specific server of yours.

If you haven't tried already I think it's worth a full uninstall, re-download and re-install to see if that makes a difference.
Apr 15, 2015 at 1:33 PM
I have re-download and re-installed all V2.0 versions DAXstudio multiple times, but unfortunately there was no luck to launch the instant on my server 2008 R2.

I will try install it on other 2012 server later. Currently I am coding with DAXstudio on WIN7 client machine, so far so good.

Thanks again for your profession and patient to help me resolve this issue.