Hi Michal,
One of your colleagues gave me the same code in a support ticket and it has been in place of our site since then. The site has not crashed recently but the generator.log file shows the following (examples from today), so far I have only seen it log for asset files e.g images or css.
10/31/2017 1:23:24 PM
URL: https://[domain]/App_Themes/[site theme]/css/gulp_default.min.css
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at LogFactory.LogIfCalledPriorAppInit()
at LogFactory.CreateNewObject()
at CMS.Base.ObjectGenerator`1.TryFactory(IObjectFactory factory, Object parameter)
at CMS.Base.ObjectGenerator`1.CreateNewObject(Object parameter)
at CMS.DocumentEngine.DocumentGenerator.NewInstance[NodeType](String className)
at CMS.DocumentEngine.TreeNode.NewInstance[NodeType](String className)
at CMS.DocumentEngine.TreeNode.New[NodeType](String className, DataRow dataRow, TreeProvider treeProvider)
at CMS.DocumentEngine.TreeNodeProvider.CreateInfo(DataRow dr, Boolean useGenerator)
at CMS.DataEngine.AbstractInfoProvider`3.get_InfoObject()
at CMS.DataEngine.AbstractInfoProvider`3..ctor(Boolean initialize)
at CMS.DocumentEngine.TreeNodeProvider..ctor()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CMS.Core.ObjectFactory`1.CreateInstance(ConstructorInfo ctor)
at CMS.Core.ObjectFactory`1.CreateInstance()
at CMS.Core.ObjectFactory`1.CreateNewObject()
at CMS.Core.ObjectFactory`1.New()
at CMS.DataEngine.AbstractInfoProvider`1.get_ProviderObject()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at CMS.DataEngine.AbstractProvider.GetProviderInternal(String objectType, Boolean exceptionIfNotFound)
at CMS.DataEngine.AbstractProvider.GetProvider(String objectType, Boolean exceptionIfNotFound)
at CMS.DocumentEngine.TreeNodeProvider.GetProviderObject(String className)
at CMS.DocumentEngine.TreeNodeProvider.GetDocuments()
at CMS.DocumentEngine.TreeProvider.SelectNodes()
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.RegisterDocumentRoutes(String where, String siteName, List`1 routes)
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.RegisterRoutes(String siteName)
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.EnsureRoutes(String siteName)
at CMS.URLRewritingEngine.URLRewritingHandlers.AuthorizeRequest(Object sender, EventArgs e)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler`1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List`1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
10/31/2017 1:23:26 PM
URL: https://[domain]/[media library folder]/media/Site-Media/tmp/Generic_SV_STicky.jpg?ext=.jpg
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at LogFactory.LogIfCalledPriorAppInit()
at LogFactory.CreateNewObject()
at CMS.Base.ObjectGenerator`1.TryFactory(IObjectFactory factory, Object parameter)
at CMS.Base.ObjectGenerator`1.CreateNewObject(Object parameter)
at CMS.DocumentEngine.DocumentGenerator.NewInstance[NodeType](String className)
at CMS.DocumentEngine.TreeNode.NewInstance[NodeType](String className)
at CMS.DocumentEngine.TreeNode.New[NodeType](String className, DataRow dataRow, TreeProvider treeProvider)
at CMS.DocumentEngine.TreeNodeProvider.CreateInfo(DataRow dr, Boolean useGenerator)
at CMS.DataEngine.AbstractInfoProvider`3.get_InfoObject()
at CMS.DataEngine.AbstractInfoProvider`3..ctor(Boolean initialize)
at CMS.DocumentEngine.TreeNodeProvider..ctor()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CMS.Core.ObjectFactory`1.CreateInstance(ConstructorInfo ctor)
at CMS.Core.ObjectFactory`1.CreateInstance()
at CMS.Core.ObjectFactory`1.CreateNewObject()
at CMS.Core.ObjectFactory`1.New()
at CMS.DataEngine.AbstractInfoProvider`1.get_ProviderObject()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at CMS.DataEngine.AbstractProvider.GetProviderInternal(String objectType, Boolean exceptionIfNotFound)
at CMS.DataEngine.AbstractProvider.GetProvider(String objectType, Boolean exceptionIfNotFound)
at CMS.DocumentEngine.TreeNodeProvider.GetProviderObject(String className)
at CMS.DocumentEngine.TreeNodeProvider.GetDocuments()
at CMS.DocumentEngine.TreeProvider.SelectNodes()
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.RegisterDocumentRoutes(String where, String siteName, List`1 routes)
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.RegisterRoutes(String siteName)
at CMS.URLRewritingEngine.CMSDocumentRouteHelper.EnsureRoutes(String siteName)
at CMS.URLRewritingEngine.URLRewritingHandlers.AuthorizeRequest(Object sender, EventArgs e)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler`1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List`1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
Does that seem like the same issue you were referring to?