Swatch UI: Tattoos do not have a swatch and error out upon loading

Issue #35 closed
Stacey Haffner created an issue

System.DivideByZeroException: Attempted to divide by zero. at S4Studio.MainWindow.swatchThumbnailRectangle(List`1 colors, UInt64 name) in c:\workspace\thes4studio\TheS4Studio\S4Studio\MainWindow.xaml.cs:line 1919 at S4Studio.MainWindow.LoadSwatchThumbnails() in c:\workspace\thes4studio\TheS4Studio\S4Studio\MainWindow.xaml.cs:line 1878 at S4Studio.MainWindow.EditCASItemPage_OnLoaded(Object sender, RoutedEventArgs e) in c:\workspace\thes4studio\TheS4Studio\S4Studio\MainWindow.xaml.cs:line 1031 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)

Trying to re color a male back Tattoo, loads in S4S and then get that error.

Read more: http://sims-studio.proboards.com/thread/123/sims-4-studio-preview-build?page=1#ixzz3GkSjR9yv

Comments (3)

  1. Log in to comment