micro icon indicating copy to clipboard operation
micro copied to clipboard

> raw crashes micro - v2.0.13

Open octoshrimpy opened this issue 1 year ago • 2 comments

Description of the problem or steps to reproduce

open a new micro instance launch commandbar type raw and hit enter

after roughly one second, micro crashes with the below message

╭ octoshrimpy in ~/projects/
└❱ m
Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:261 (0x55a999a7a898)
runtime/panic.go:260 (0x55a999a7a866)
github.com/zyedidia/micro/v2/internal/action/rawpane.go:37 (0x55a999ee4737)
github.com/zyedidia/micro/v2/internal/action/tab.go:269 (0x55a999ee5e9e)
github.com/zyedidia/micro/v2/internal/action/tab.go:139 (0x55a999ee5448)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:476 (0x55a999f1d1e5)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:394 (0x55a999f1ca8c)
runtime/internal/atomic/types.go:194 (0x55a999a66172)
runtime/asm_amd64.s:1650 (0x55a999a976e1)

If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

Specifications

╭ octoshrimpy in ~/projects/
└❱ m --version
Version: 2.0.13
Commit hash: 68d88b57
Compiled on October 22, 2023

OS: endeavourOS (arch), inside and outside tmux Terminal: alacritty, kitty, konsole, xterm, wezterm (all have same result)

octoshrimpy avatar Nov 06 '23 18:11 octoshrimpy

#2991 is related, however I have a single tab, and my buffer is empty

octoshrimpy avatar Nov 06 '23 18:11 octoshrimpy

It is very likely that it's the same issue as #2991, just triggered in a different way. So you may try compiling micro with the PR #2992 and see if it fixes the problem.

FWIW, I've just compiled v2.0.13 but couldn't reproduce the crash the way you described (i.e. just run the raw command). I'm not very surprised, an issue like #2991 may occur in various unexpected cases, and also may be highly dependent on the user environment, configuration etc.

dmaluka avatar Nov 07 '23 00:11 dmaluka

Closed with #2992. In case it is still reproducible afterwards we can simply re-open it. :)

JoeKar avatar Mar 12 '24 17:03 JoeKar