Git Product home page Git Product logo

Comments (10)

FabijanZulj avatar FabijanZulj commented on June 19, 2024 1

I believe this is it:

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x103386150
]
goroutine 12 [running]:
github.com/neovim/go-client/msgpack.handleAbort(0x14000aade90)
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/msgpack.go:58 +0x80
panic({0x104eb78c0?, 0x105b6ecd0?})
	/Users/runner/hostedtoolcache/go/1.21.5/x64/src/runtime/panic.go:914 +0x218
github.com/kndndrj/nvim-dbee/dbee/core.(*Connection).GetID(...)
	/Users/runner/work/nvim-dbee/nvim-dbee/dbee/core/connection.go:82
github.com/kndndrj/nvim-dbee/dbee/handler.(*connectionWrap).MarshalMsgPack(0x104e8c700?, 0x14000aa0068?
)
	/Users/runner/work/nvim-dbee/nvim-dbee/dbee/handler/marshal.go:78 +0x20
github.com/neovim/go-client/msgpack.marshalEncoder(0x0?, {0x104e8c700?, 0x14000aa0068?, 0x0?})
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/encode.go:299 +0x60
github.com/neovim/go-client/msgpack.marshalPtrEncoder(0x1050bf688?, {0x104e8c700?, 0x14000aa0068?, 0x0?})
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/encode.go:293 +0x98
github.com/neovim/go-client/msgpack.(*Encoder).Encode(0x14000b30000, {0x104e8c700?, 0x14000aa0068?})
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/encode.go:67 +0x104
github.com/neovim/go-client/msgpack/rpc.(*Endpoint).reply(0x14000a549c0, 0x104e8d0c0?, {0x10509e058?, 0x14000a96130?}, {0x104e8c700, 0x14000aa0068})
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/rpc/rpc.go:506 +0x224
github.com/neovim/go-client/msgpack/rpc.(*Endpoint).handleRequest.func1()
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/rpc/rpc.go:560 +0x184
created by github.com/neovim/go-client/msgpack/rpc.(*Endpoint).handleRequest in goroutine 1
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/rpc/rpc.go:549 +0x2f8

from nvim-dbee.

walkabout21 avatar walkabout21 commented on June 19, 2024

Health check shows the following error even after clean plugin install

DBee report ~
- ERROR Binary version "eff37431d0a7c4808d7def9013e1edcde6ab4582" doesn't match either:
    - current hash: "6d074e5472b44f1b8e6e647b1e177996f442e0d2" or
    - hash of latest tag "6d074e5472b44f1b8e6e647b1e177996f442e0d2".

from nvim-dbee.

kndndrj avatar kndndrj commented on June 19, 2024

Hey, healthcheck is not working properly (#57 ), but i see that your binary is the current latest one.

Are you aware of the recent refactor? and the breaking changes (see #19)

from nvim-dbee.

walkabout21 avatar walkabout21 commented on June 19, 2024

I looked over the breaking changes but I don't see anything that would affect me since I'm using a very simple base config. Maybe I'm missing something?

return {
	"kndndrj/nvim-dbee",
	dependencies = {
		"MunifTanjim/nui.nvim",
	},
	build = function()
		require("dbee").install()
	end,
	config = function()
		require("dbee").setup(		--[[optional config]]
)
	end,
}

from nvim-dbee.

kndndrj avatar kndndrj commented on June 19, 2024

hmm thats strange.

can you try opening a fresh nvim session and running
:lua require("dbee.entry.__register")()

and after that
:lua= vim.fn.DbeeGetCurrentConnection()
and see if that results in an error.

oh, and maybe chek the contents of
$HOME/.cache/nvim/dbee/dbee.log (or something like that) - there might be something insightful.

from nvim-dbee.

FabijanZulj avatar FabijanZulj commented on June 19, 2024

I am getting similar error after a clean install.
running .open() :

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1019de150
]
goroutine 11 [running]:
github.com/neovim/go-client/msgpack.handleAbort(0x14000aa7e90)
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/msgpack.go:58 +0x80
panic({0x10350f8c0?, 0x1041c6cd0?})
	/Users/runner/hostedtoolcache/go/1.21.5/x64/src/runtime/panic.go:914 +0x218
github.com/kndndrj/nvim-dbee/dbee/core.(*Connection).GetID(...)
	/Users/runner/work/nvim-dbee/nvim-dbee/dbee/core/connection.go:82
E5108: Error executing lua function DbeeGetCurrentConnection[1]..remote#define#request, line 2: Vim(let):Error invoking 
'0:function:DbeeGetCurrentConnection' on channel 13:
ch 13 was closed by the client
stack traceback:
	[C]: in function 'DbeeGetCurrentConnection'
	...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:156: in function 'get_current_connection'
	...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:62: in function 'new'
	....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:88: in function 'setup_ui'
	....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:130: in function 'open_ui'
	...rs/f/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:29: in function 'open'

Subsequently running .open() again getting :

E5108: Error executing lua function DbeeGetCurrentConnection[1]..remote#define#request, line 2: Vim(let):Error invoking '0:function:DbeeGetCurrentConnection' on channel 15:
Invalid channel: 15
stack traceback:

	[C]: in function 'DbeeGetCurrentConnection'
	...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:156: in function 'get_current_connection'
	...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:62: in function 'new'
	....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:88: in function 'setup_ui'
	....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:130: in function 'open_ui'
	...rs/f/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:29: in function 'open'
	[string ":lua"]:1: in main chunk

from nvim-dbee.

kndndrj avatar kndndrj commented on June 19, 2024

I tkink i might know what the problem is. I'm not able to fix it rn, but do you have any connections specified? If not, please try specifying them and try again.

The backend is working, because the function You tried to call is not the first one to be called. These seems to just be an unhandled nil somewhere in there.

I'll get back to you once i look further into this.

from nvim-dbee.

walkabout21 avatar walkabout21 commented on June 19, 2024

I have a connection setup using env vars. same error

from nvim-dbee.

kndndrj avatar kndndrj commented on June 19, 2024

Can you paste the whole panic message please? e.g. the rest of this:

	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1019de150
]
goroutine 11 [running]:
github.com/neovim/go-client/msgpack.handleAbort(0x14000aa7e90)
	/Users/runner/go/pkg/mod/github.com/neovim/[email protected]/msgpack/msgpack.go:58 +0x80
panic({0x10350f8c0?, 0x1041c6cd0?})
	/Users/runner/hostedtoolcache/go/1.21.5/x64/src/runtime/panic.go:914 +0x218
github.com/kndndrj/nvim-dbee/dbee/core.(*Connection).GetID(...)
	/Users/runner/work/nvim-dbee/nvim-dbee/dbee/core/connection.go:82```

from nvim-dbee.

walkabout21 avatar walkabout21 commented on June 19, 2024

This fixed it for me

from nvim-dbee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.