Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception renderer IndexOutOfRangeException #21

Closed
daningalla opened this issue Feb 14, 2022 · 1 comment
Closed

Exception renderer IndexOutOfRangeException #21

daningalla opened this issue Feb 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@daningalla
Copy link
Contributor

Index was outside the bounds of the array.
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.PrintParameters(IWriteBuffer buffer, LogLevelProfile profile, Group signatureGroup, Options options) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\ExceptionRenderer.cs:line 210
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.<>c__DisplayClass5_0.<PrintStackFrame>b__0(String method) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\ExceptionRenderer.cs:line 166
   at Vertical.SpectreLogger.Output.WriteBufferExtensions.WriteLogValue[T](IWriteBuffer buffer, LogLevelProfile profile, TemplateSegment templateSegment, T value, Action`1 writer) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Output\WriteBufferExtensions.cs:line 112
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.PrintStackFrame(IWriteBuffer buffer, LogLevelProfile profile, String frame, Options options) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\ExceptionRenderer.cs:line 157
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.PrintStackTrace(IWriteBuffer buffer, LogLevelProfile profile, Exception exception, Options options) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\ExceptionRenderer.cs:line 124
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.Render(IWriteBuffer buffer, LogEventContext& context) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\ExceptionRenderer.cs:line 72
   at Vertical.SpectreLogger.Rendering.ExceptionRenderer.Vertical.SpectreLogger.Core.ITemplateRenderer.Render(IWriteBuffer buffer, LogEventContext& context)
   at Vertical.SpectreLogger.Rendering.RendererPipeline.Render(LogEventContext& logEventContext) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\Rendering\RendererPipeline.cs:line 54
   at Vertical.SpectreLogger.Rendering.RendererPipeline.Vertical.SpectreLogger.Core.IRendererPipeline.Render(LogEventContext& logEventContext)
   at Vertical.SpectreLogger.SpectreLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in C:\Users\dan\Dev\vertical\vertical-spectreconsolelogger\src\SpectreLogger.cs:line 61
   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)

Parameters not being parsed correctly

@daningalla daningalla added the bug Something isn't working label Feb 14, 2022
@daningalla
Copy link
Contributor Author

Parser is not handling signatures that don't have parameter names, e.g.:

   at MessagePack.Resolvers.DynamicObjectResolverAllowPrivate.GetFormatter[T]()
   at MessagePack.Resolvers.ContractlessStandardResolverAllowPrivate.FormatterCache`1..cctor()
--- End of stack trace from previous location ---
   at MessagePack.FormatterResolverExtensions.Throw(TypeInitializationException ex)
   >> at MessagePack.Formatters.SharpGraphDb_Client_Messages_RequestFormatter1.Serialize(MessagePackWriter& , Request , MessagePackSerializerOptions )
   >> at MessagePack.MessagePackSerializer.Serialize[T](MessagePackWriter& writer, T value, MessagePackSerializerOptions options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant