Skip to content

bug: Neovim 0.12.1 crash - redraw_ruler: Assertion 'attr == HL_ATTR(HLF_MSG)' failed when rendering UI/messages #1205

@theSprog

Description

@theSprog

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.12.1

Operating system/version

Linux (WSL2), x86_64

Describe the bug

After upgrading to Neovim 0.12.1, Neovim hard crashes (aborts instantly) when trying to open certain UI elements like the :Lazy window or when specific messages are triggered. The crash logs indicate a C-level assertion failure in statusline.c related to message highlight attributes, which seems to conflict with how noice.nvim handles ext_messages.

Steps To Reproduce

  1. Use Neovim 0.12.1.
  2. Setup noice.nvim with default message handling (or routing msg_show events).
  3. Open Neovim and run :Lazy (or trigger an event that heavily updates the message area/ruler).
  4. Neovim instantly crashes and drops to the terminal.
  5. the following crash log is captured:nvim: /usr/src/debug/neovim/neovim/src/nvim/statusline.c:543: redraw_ruler: Assertion `attr == HL_ATTR(HLF_MSG)' failed.
  6. Disabling the message routing in Noice prevents the crash and allows Neovim to run normally:
require("noice").setup({
    messages = {
        enabled = false, -- Disabling this avoids the assertion failure
    },
})

Expected Behavior

The UI/message should render smoothly without causing a fatal C-level assertion failure in Neovim's redraw loop.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/noice.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions