question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custome patterns cause memory overflow

See original GitHub issue

I have a custome .log file for which I wanna create highlight patterns. I played around and experience a memory overflow and extension manager crash, every time I use quantifiers in the regex pattern.

    "logFileHighlighter.customPatterns": [
        {
            "pattern": "test",
            "foreground": "#f0ff00",
            "background": "#000000"
            
        },
        {
            "pattern": "A*",
            "foreground": "#f0ff00",
            "background": "#000000"
            
        }
    ],

I use a small logfile with 50 lines for debug.

The extension manager gives me that: image

I can see in the ressource manager that my RAM is growing until the extension manager crashes.

Am I using wrong Regex syntax or do I have too little RAM?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
winfijcommented, Oct 12, 2021

Thanks, I upgraded to 2.13.0 and can confirm it works as expected.

Btw, thanks for the extension, it makes reading my app’s log files so much easier with all my custom patterns.

1reaction
emilastcommented, Oct 12, 2021

@winfij, I decided to temporarily revert the package updates and republish the extension. Upgrading to 2.13.0 should make it work again. I don’t understand this problem so I’ll be careful when upgrading again and will test your pattern. It doesn’t seem to be a problem purely related to quantifiers either, some regex expressions work perfectly and others don’t. Very strange.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FNV] Possible Cause for Memory Leak? : r/FalloutMods - Reddit
"0020","+","Female Drifter Armor for New Vegas Bounties III and other Tweaks and ... "0038","+","On the Saddle Already - No Sunny Tutorial".
Read more >
c# - Deleting project/pages/usercontrols from memory
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on...
Read more >
Flipping Bits in Memory Without Accessing Them
First, the two mov instructions read from. DRAM at address X and Y and install the data into a register and also the...
Read more >
How to fix: Svchost.exe (netsvcs) memory leak or high CPU ...
This guide contains detailed instructions on how to fix svchost.exe memory leak or high CPU usage problems.
Read more >
Compile-Time Defenses: Language Extension, Safe Libraries
must identify a buffer overflow vulnerability in some program ... understand how buffer is stored in memory and determine potential for corruption.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found