Occasionally player crash: WritableBitmapRenderHandler

Player Version

v3 R310

Issue

The player sometimes crahes (and restarts via Watchdog) with these log entries:

Stack Trace: bei System.Windows.Media.Imaging.WriteableBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat, BitmapPalette palette) 
bei CefSharp.Wpf.Rendering.WritableBitmapRenderHandler.<>c__DisplayClass8_0.<CreateOrUpdateBitmap>b__0() in C:\projects\cefsharp\CefSharp.Wpf\Rendering\WritableBitmapRenderHandler.cs:Zeile 145. 
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) 
bei MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 
bei System.Windows.Threading.DispatcherOperation.Invoke() 
bei System.Windows.Threading.Dispatcher.ProcessQueue() 
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 
bei System.Windows.Window.ShowHelper(Object booleanBox) 
bei System.Windows.Window.Show() bei System.Windows.Window.ShowDialog()
 bei XiboClient.App.RunClient(Boolean screenSaver) in C:\Users\User\Documents\Source\xibo-dotnetclient\App.xaml.cs:Zeile 114. 
bei XiboClient.App.OnStartup(StartupEventArgs e) in C:\Users\User\Documents\Source\xibo-dotnetclient\App.xaml.cs:Zeile 79.

and: Unhandled Exception: UnhandledException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. (The object reference was not set to an object instance).

Anything I can do? The layouts just displaying media objects and website contents.

We use CefSharp to display web contents; it looks like the exception originates on this line: CefSharp/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs at master · cefsharp/CefSharp · GitHub

It is probably a memory issue and the application does the right thing my binning and restarting.

If you remove your web contents (or some of it), does it go away?

If suitable for your use case you could set FallbackToEdge as true in your config.xml file.

Is this setable via display config in the webGUI or in the xml only?

It’s an experimental and destructive setting, so XML only.

We’re tracking some improvements in WebView2 so that CEF might be something we can drop in the future: Windows Client - Option to use WebView2 (Edge) as the primary rendering engine

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.