Skip to content

[BUG] 🔥 LogMonitor crashes wrapped process on log line > 4000 characters. This is happening in production ATM #212

@buckleyGI

Description

@buckleyGI

Describe the bug
When a wrapped process outputs a log line longer than ~4000 characters, LogMonitor crashes the wrapped process instead of handling the line gracefully.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Windows container and install LogMonitor

  2. Wrap a process using:

    SHELL ["C:\\LogMonitor\\LogMonitor.exe", "cmd", "/S", "/C"]
    
  3. Inside the process, output a long line (e.g.):

    Write-Output ("A" * 5000)
  4. Observe: LogMonitor crashes and the container exits

Expected behavior
LogMonitor should handle long log lines safely — either truncating, splitting, or forwarding them — without crashing the wrapped process.

Screenshots
N/A — reproducible via script

Configuration

  • Tool: LogMonitor

  • Version: Latest Log Monitor Version 2.1.1 commit d36c314

  • Environment:

    • Windows Server Core base image
    • Kubernetes on Windows

Additional context
No visible error or stack trace. Likely caused by buffer/encoding limits when forwarding stdout. High impact for any apps producing verbose or dynamic logs.
This line is my prime suspect and if you know cpp maybe it is obvious.


Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions