Changing Widget Settings

Jun 26, 2011 at 12:06 AM
Edited Jun 26, 2011 at 12:11 AM

Changing the Weather widget setting to Fahrenheit instantly crashes Mosaic. Same when changing the clock to 12 hour format.

Running on Windows 8 build 7989 x64, running it in Windows 7 compatibility mode does the same.

Coordinator
Jun 26, 2011 at 6:13 AM

Is there any log file in logs folder?

Jun 26, 2011 at 6:23 AM

Sorry, didn't notice the log file.  Thanks

<?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  <variable name="logDir" value="./log/${date:format=yyyy-MM-dd}"/>  <variable name="shortLayout" value="${date:format=HH\:mm\:ss} (${level:uppercase=true}): ${logger} ${message}"/>  <variable name="commonLayout" value="${date:format=dd.MM.yyyy HH\:mm\:ss} (${level:uppercase=true}): ${logger} ${message}"/>  <variable name="detailedLayout" value="${date:format=dd.MM.yyyy HH\:mm\:ss} (${level:uppercase=true}): ${logger} ${message}. ${exception:format=ToString}"/>
  <targets>    <target name="consoleLog" xsi:type="ColoredConsole" layout="${shortLayout}" />    <target name="shortLog" xsi:type="File" fileName="${logDir}/short.log" layout="${commonLayout}" />    <target name="fullLog" xsi:type="File" fileName="${logDir}/full.log" layout="${detailedLayout}" />    <target name="systemLog" xsi:type="EventLog" layout="${detailedLayout}" />  </targets>
  <rules>
    <!-- Основные log -->
    <logger name="*" minlevel="Trace" writeTo="fullLog" />  </rules></nlog>

Coordinator
Jun 26, 2011 at 6:25 AM
Edited Jun 26, 2011 at 6:28 AM

no, it is a config for NLog. Log file should be located in logs directory and should be a text file.

Jun 26, 2011 at 6:30 AM

Sorry, nope no log file nor log folder created.  I just ran it on a second rig, with Win 7 SP1 Premium x64 and I couldn't recreate the problem there.

My fault for assuming it would run fine on Win 8 pre-beta.

Thanks for your help. I really like the project.

Coordinator
Jun 26, 2011 at 6:37 AM
Edited Jun 26, 2011 at 6:44 AM

ok, if you will have this problem in future, copy and paste here error message which you can find under "Show more details" button in error window.

Jun 26, 2011 at 6:49 AM

I was going to try to make it crash again on my Win 8 rig but this time it let me change both settings, no problem.  I am perplexed.. 

But I decided to dig around in Event Viewer and came across these logs from the crashes:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2011-06-25T23:01:25.000000000Z" />
<EventRecordID>3168</EventRecordID>
<Channel>Application</Channel>
<Computer>8DGE</Computer>
<Security />
</System>
- <EventData>
<Data>Mosaic.exe</Data>
<Data>1.0.252.0</Data>
<Data>4e061ccc</Data>
<Data>KERNELBASE.dll</Data>
<Data>6.2.7989.0</Data>
<Data>4db11499</Data>
<Data>e0434352</Data>
<Data>0000000000007d4b</Data>
<Data>c3c</Data>
<Data>01cc338b6ddfc965</Data>
<Data>C:\Program Files (x86)\Mosaic Build 252 alpha\Mosaic.exe</Data>
<Data>C:\Windows\system32\KERNELBASE.dll</Data>
<Data>0cf4ff82-9f7f-11e0-a4ca-60eb695d4246</Data>
</EventData>
</Event>

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2011-06-25T23:01:24.000000000Z" />
<EventRecordID>3167</EventRecordID>
<Channel>Application</Channel>
<Computer>8DGE</Computer>
<Security />
</System>
- <EventData>
<Data>Application: Mosaic.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.UnauthorizedAccessException Stack: at System.Windows.Window.ShowDialog() at Weather.WeatherWidget.OptionsItemClick(System.Object, System.Windows.RoutedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.runTryCode(System.Object) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunInternal(System.Windows.Window) at System.Windows.Application.Run() at Mosaic.App.Main()</Data>
</EventData>
</Event>
I hope that helps and let me know if there is anything else you need
Thanks 

Coordinator
Jun 26, 2011 at 7:10 AM
Edited Jun 26, 2011 at 7:11 AM

It seems that you placed Mosaic in Program Files directory. All apps from this directory needs administrative rights to create files even in the same directory with app. So you just need to run Mosaic as administrator or move it somewhere.

Jun 26, 2011 at 7:16 AM

See, that's what I thought too, but I am running it from that folder right now and it works fine now LOL