Using a fake picture as a banner throws an error in LB 12.16

Issue #7332 new
Zkyo63 created an issue

Starting with Launchbox 12.16, my library throws an error message whenever I switch between platform categories, but then continues to work as expected. I think the reason for this is because of a workaround I am using with my custom theme. I want a video or a banner image to be displayed in the same location depending on which is available. If I use a fully transparent image, it still displays a drop shadow behind the image. I worked around this by creating a blank text file, changing it to a .png file, then using that corrupt .png as a banner image on all platform categories with a video. If I don’t use an image file at all, Launchbox automatically downloads a banner that covers the video. This forum thread is where I learned of this workaround. This works fine in BigBox, but now displays this error in Launchbox:

(Inner Exception)

The component cannot be found. (0x88982F50)

App: LaunchBox
Version: 12.16-beta-2
Type: System.Runtime.InteropServices.COMException
Site:
Source:

(Outer Exception)

No imaging component suitable to complete this operation was found.

App: LaunchBox
Version: 12.16-beta-2
Type: System.NotSupportedException
Site: System.Windows.Media.SafeMILHandle SetupDecoderFromUriOrStream(System.Uri, System.IO.Stream, System.Windows.Media.Imaging.BitmapCacheOption, System.Guid ByRef, Boolean ByRef, System.IO.Stream ByRef, System.IO.UnmanagedMemoryStream ByRef, Microsoft.Win32.SafeHandles.SafeFileHandle ByRef)
Source: PresentationCore

at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage.EndInit()
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.CarouselItem.LogoutNotificationFactory(Object )
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.CarouselItem.get_FullSizePreview()
at ContextInstance.ConnectSessionResolver(Object , ContextInstance )
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.RegisterSimpleWorker()
at StructItem.ConnectSessionResolver(Object , StructItem )
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.set_SelectedItem(CarouselItem value)
at ItemClient.ConnectSessionResolver(Object , CarouselItem value, ItemClient )
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.SortSimpleWorker(Platform setup)
at AdapterClient.ConnectSessionResolver(Object , Platform setup, AdapterClient )
at Unbroken.LaunchBox.Windows.Desktop.Controls.Carousel.InitSimpleWorker(Object spec, DependencyPropertyChangedEventArgs token)
at System.Windows.FrameworkElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.FrameworkElement.OnDataContextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
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.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Recent Log:

4:23:16 PM Exception

Comments (1)

  1. Zkyo63 reporter

    I just wanted to add that this is definitely the corrupt banner image causing it. If I uncheck “Show Banner Images” under Options/Visuals/Boxes/Platform Details, the error no longer occurs.

  2. Log in to comment