xibosignage / xibo-dotnetclient

Xibo for Windows .NET Player
GNU Affero General Public License v3.0
63 stars 91 forks source link

Schedule: protect against 0 duration default layouts (Exception in Run: Exception of type 'System.OutOfMemoryException' was thrown.) #278

Closed dasgarner closed 1 year ago

dasgarner commented 1 year ago

If only the default layout is scheduled and interrupt layouts are used the follow error message is logged over and over and the player is stuck on the splash screen (or ultimately crashes).

Exception in Run: Exception of type 'System.OutOfMemoryException' was thrown.

This is partly due to https://github.com/xibosignage/xibo/issues/2946, but also a sensible default fallback duration should be used.