Skip to content

Notepad loads large file on startup, causing multi-gigabyte memory usage #3574

Description

@jetskipenguin

Compositor

Niri

Distribution

Ubuntu

If Other, please specify

No response

Select your Installation Method

Distro Packaging

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC

Click to expand ## DMS Doctor Report

System

  • [ok] Operating System: Ubuntu 26.04.1 LTS
    • ID: ubuntu, Version: 26.04, Arch: amd64
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms v1.6.2
    • /usr/bin/dms
  • [ok] Quickshell: Quickshell 0.3.1 (revision , distributed by Unset)
    • /usr/bin/qs
  • [ok] DMS Shell: v1.6.2
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8

Installation

  • [ok] DMS Configuration: Found
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8
  • [ok] shell.qml: Present
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8/shell.qml
  • [info] Install Type: Unknown
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8

Compositor

  • [ok] niri: 26.04
    • /usr/bin/niri
  • [info] Active: niri
  • [ok] Background Blur: Supported
    • Compositor supports ext-background-effect-v1

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri, Aqueous)
  • [ok] BackgroundBlur: Available
    • Background blur API support in Quickshell

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [ok] power-profiles-daemon: Available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [ok] cups-pk-helper: Available
    • Printer management
  • [info] I2C/DDC: No monitors detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (1 formats)
    • Formats: GIF (/usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats)
  • [warn] kimageformats: Not installed
    • AVIF, HEIF, JXL support
  • [ok] Terminal: kitty
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [ok] matugen: Installed
    • Dynamic theming
  • [ok] cava: Installed
    • Audio visualizer
  • [info] khal: Not installed
    • Calendar events
  • [ok] danksearch: Installed
    • File search
  • [info] dankcalendar: Not installed
    • Calendar app
  • [ok] fprintd: Installed
    • Fingerprint auth
  • [info] adw-gtk3: Not installed
    • GTK3 dynamic theming; without it the global CSS override applies

Config Files

  • [ok] settings.json: Present
    • /home/collin/.config/DankMaterialShell/settings.json
  • [ok] clsettings.json: Present
    • /home/collin/.config/DankMaterialShell/clsettings.json
  • [info] plugin_settings.json: Not yet created
    • /home/collin/.config/DankMaterialShell/plugin_settings.json
  • [ok] session.json: Present
    • /home/collin/.local/state/DankMaterialShell/session.json
  • [ok] dms-colors.json: Present
    • /home/collin/.cache/DankMaterialShell/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [ok] greetd: enabled

Environment

  • [info] QT_QPA_PLATFORMTHEME: Not set
  • [info] QT_QPA_PLATFORMTHEME_QT6: Not set
  • [info] QS_ICON_THEME: Not set
  • [info] XDG_MENU_PREFIX: Not set

Fonts

  • [ok] Normal Font: Inter Variable
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8/DankCommon/assets/fonts/inter/InterVariable.ttf
  • [ok] Monospace Font: Fira Code
    • /run/user/1000/danklinux-shell/fc3c244a314d77c8/DankCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf

Summary: 0 error(s), 1 warning(s), 34 ok

Description

DMS's built in notepad was reopening a 202 MB .run file as a text document every time DMS started.

I noticed high memory usage on DMS, roughly ~7GB of reserved memory on startup. This occurred whether I used dms restart or rebooted my computer. Upon digging into it I found that this large file was still open in notepad. This was a file I accidentally opened once and then closed out of the notepad app without closing out of the tab.

Expected Behavior

I'd expect DMS to not eagerly load massive text files into the notepad app on startup.

Steps to Reproduce

I can't attach my exact file since it's not a supported file type.

To reproduce:

  • Open a ~200 MB text file
  • dms restart or sudo reboot now
  • Check memory usage on start

Error Messages/Logs

/home/collin/.local/state/DankMaterialShell/notepad-session.json file is attached which has the .run file.

{
  "version": 1,
  "currentTabIndex": 0,
  "tabs": [
    {
      "id": 1787754349655,
      "title": "expressvpn-linux-universal-14.2.1.13658_release.run",
      "filePath": "/home/collin/Downloads/expressvpn-linux-universal-14.2.1.13658_release.run",
      "isTemporary": false,
      "lastModified": "2026-08-26T14:25:49.655Z",
      "cursorPosition": 0,
      "scrollPosition": 0
    }
  ]
}

Screenshots/Recordings

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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