-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime Error: Invalid Memory Address or Nil Pointer Dereference #2968
Comments
The crash was at this line:
Probably Might be fixed by #2967. |
Yep, that's what I assumed too. Unfortunately...
...didn't really fit into that story. |
Perhaps some non-trivial things were happening when opening the file (some Lua code or whatever). And I can't see any other places in the code where Update: actually I do see one more such place now, also in
If |
I've just reproduced this crash: set Fix: #2971 |
Issue Description
Summary
Micro encountered a runtime error related to an invalid memory address or nil pointer dereference.
Environment Information
Micro version: 2.0.12
Commit hash: c2cebaa
Compiled on: September 09, 2023
Operating System: Linux 6.5.7-arch1-1
Steps to Reproduce
Literally just opened a file.
Expected Behavior
I expected the file to open without any issues.
Actual Behavior
Micro crashed and provided the following stack trace:
Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:261 (0x55bd011e9818)
runtime/panic.go:260 (0x55bd011e97e6)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:403 (0x55bd0168b5cc)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:394 (0x55bd0168b3cc)
runtime/internal/atomic/types.go:194 (0x55bd011d50f2)
runtime/asm_amd64.s:1650 (0x55bd01206621)
The text was updated successfully, but these errors were encountered: