Open mlipovaca opened 1 year ago
@mlipovaca , can you provide more details? Can you try to reproduce the error in test?
@zjklee it’s not reproducable directly on calling Handlebars func, it was giving error on Startup.cs in C#. We restarted the API and then it worked itself. Also we’re on version v2.1.2. Is the version on v2.1.3 this type of issue fixed as I saw it was released two days ago ?
@mlipovaca , in v2.1.3 another issue is fixed - it happened in parser when template was invalid. This error seams to happen in runtime. Hard to tell what is the cause, it might be a legit OutOfMemoryException
if you run out of memory as it happened during dictionary resizing: HandlebarsDotNet.Collections.DictionarySlim'3.Resize
. If you have a lot of compiled templates, you may want to have a look at SharedEnvironment
feature.
Describe the bug
Currently we're having issue with HandlebarsDotNet Package having exception on API running (without refreshing whole API) with System.OutOfMemory Exception.
Other related info