rainmeter icon indicating copy to clipboard operation
rainmeter copied to clipboard

[Possible Memory Leak] Lua Error: `Could not increase the stack size` in ModernGadgets DisksMeter after prolonged use

Open roj234 opened this issue 7 months ago • 0 comments

Description: After running the ModernGadgets skin suite (specifically the DisksMeter) for more than 6 hours, the following Lua error occurs in the debug log:

ModernGadgets\DisksMeter\DisksMeter.ini - [MeasureSettingsScript]: Lua: Could not increase the stack size

This error eventually leads to a Rainmeter crash several hours later.

Steps to Reproduce:

  1. Install and run the ModernGadgets skin suite.
  2. Ensure the DisksMeter.ini skin is active.
  3. Leave Rainmeter running for over 5 hours.
  4. Observe the Debug Log for the Lua stack size error.
  5. Rainmeter will crash after several more hours of operation.

Expected Behavior: Rainmeter and the ModernGadgets DisksMeter should run stably indefinitely without Lua stack errors or crashes.

Affected Versions:

  • Reproducible on: Latest stable release (4.5.23.3836 at time of writing) and the latest GitHub Actions build.
  • Not reproducible on: v4.5.13.3632

System Info: Rainmeter 0.0.0.0 (64-bit) Language: Chinese (Simplified) (2052) Build time: 2025-06-04 5:52:47 Windows 10 Pro for Workstations 21H2 (build 19044.1741) 64-bit - Chinese (Simplified) (2052) IniFile:

[Rainmeter] Language=2052 Logging=1 DisableAutoUpdate=1 DisableVersionCheck=1 HardwareAcceleration=0 DisableDragging=1 Debug=1 ConfigEditor=C:\Windows\system32\NOTEPAD.EXE

[ModernGadgets\DisksMeter] Active=1 WindowX=2400 WindowY=614 ClickThrough=0 Draggable=1 SnapEdges=1 KeepOnScreen=1 AlwaysOnTop=0

roj234 avatar Jun 10 '25 23:06 roj234