goneovim: not able to use goneovim

I am facing some weird issue in running goneovim on Pop-os 20.04. I am trying to run goneovim after installing the Linux asset from the repo and then run the executable from the command line. I am getting this error in my terminal and it crashes right away.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xde7f6c]

goroutine 1 [running, locked to thread]:
github.com/akiyosi/goneovim/editor.(*Screen).toolTipPos(0xc0000bedc0, 0x10, 0xc0003e2668, 0x0, 0x7ffd158e2aa0)
        github.com/akiyosi/goneovim/editor/screen.go:520 +0x4c
github.com/akiyosi/goneovim/editor.(*Workspace).InputMethodQuery(0xc000391880, 0x2, 0x41fb1f0)
        github.com/akiyosi/goneovim/editor/workspace.go:2375 +0x42
github.com/therecipe/qt/widgets.callbackQWidget_InputMethodQuery(0x41fb1f0, 0x2, 0x45cc840)
        github.com/therecipe/qt/widgets/widgets-minimal.go:25145 +0x6b
github.com/therecipe/qt/widgets._cgoexpwrap_4ee128feccc4_callbackQWidget_InputMethodQuery(0x41fb1f0, 0x2, 0x0)
        _cgo_gotypes.go:27983 +0x72
github.com/therecipe/qt/widgets._Cfunc_QWidget_EventDefault(0x41fb1f0, 0x7ffd158e2170, 0x0)
        _cgo_gotypes.go:19808 +0x4a
github.com/therecipe/qt/widgets.(*QWidget).EventDefault.func1(0xc000550f50, 0x13542e0, 0xc0004e8598, 0xc0004e8598)
        github.com/therecipe/qt/widgets/widgets-minimal.go:24653 +0xb6
github.com/therecipe/qt/widgets.(*QWidget).EventDefault(0xc000550f50, 0x13542e0, 0xc0004e8598, 0x5)
        github.com/therecipe/qt/widgets/widgets-minimal.go:24653 +0x4d
github.com/therecipe/qt/widgets.callbackQWidget_Event(0x41fb1f0, 0x7ffd158e2170, 0x7ffd158e2780)
        github.com/therecipe/qt/widgets/widgets-minimal.go:24619 +0x120
github.com/therecipe/qt/widgets._cgoexpwrap_4ee128feccc4_callbackQWidget_Event(0x41fb1f0, 0x7ffd158e2170, 0x0)
        _cgo_gotypes.go:27850 +0x35
github.com/therecipe/qt/gui._Cfunc_QInputMethod_Update(0x40c8be0, 0x2)
        _cgo_gotypes.go:6058 +0x45
github.com/therecipe/qt/gui.(*QInputMethod).Update.func1(0xc0004e8580, 0x2)
        github.com/therecipe/qt/gui/gui-minimal.go:6099 +0x6e
github.com/therecipe/qt/gui.(*QInputMethod).Update(0xc0004e8580, 0x2)
        github.com/therecipe/qt/gui/gui-minimal.go:6099 +0x4d
github.com/akiyosi/goneovim/editor.(*Cursor).move(0xc0001f58c0)
        github.com/akiyosi/goneovim/editor/cursor.go:248 +0x69
github.com/akiyosi/goneovim/editor.(*Cursor).update(0xc0001f58c0)
        github.com/akiyosi/goneovim/editor/cursor.go:413 +0x245
github.com/akiyosi/goneovim/editor.(*Workspace).handleRedraw(0xc000391880, 0xc0004d2000, 0x74, 0x74)
        github.com/akiyosi/goneovim/editor/workspace.go:1209 +0x170d
github.com/akiyosi/goneovim/editor.(*Workspace).registerSignal.func1()
        github.com/akiyosi/goneovim/editor/workspace.go:361 +0x7d
github.com/akiyosi/goneovim/editor.callbackworkspaceSignal28652a_RedrawSignal(0x4138cc0)
        github.com/akiyosi/goneovim/editor/moc.go:617 +0x68
github.com/akiyosi/goneovim/editor._cgoexpwrap_a7ecf0d2f817_callbackworkspaceSignal28652a_RedrawSignal(0x4138cc0)
        _cgo_gotypes.go:4631 +0x2b
github.com/akiyosi/goneovim/editor._Cfunc_workspaceSignal28652a_EventDefault(0x4138cc0, 0x7faae4002020, 0x0)
        _cgo_gotypes.go:4029 +0x4a
github.com/akiyosi/goneovim/editor.(*workspaceSignal).EventDefault.func1(0xc0003a40a0, 0x13542e0, 0xc00049ac80, 0xc00049ac80)
        github.com/akiyosi/goneovim/editor/moc.go:1233 +0xb6
github.com/akiyosi/goneovim/editor.(*workspaceSignal).EventDefault(0xc0003a40a0, 0x13542e0, 0xc00049ac80, 0x5)
        github.com/akiyosi/goneovim/editor/moc.go:1233 +0x4d
github.com/akiyosi/goneovim/editor.callbackworkspaceSignal28652a_Event(0x4138cc0, 0x7faae4002020, 0x11bcab0)
        github.com/akiyosi/goneovim/editor/moc.go:1228 +0x11e
github.com/akiyosi/goneovim/editor._cgoexpwrap_a7ecf0d2f817_callbackworkspaceSignal28652a_Event(0x4138cc0, 0x7faae4002020, 0x1)
        _cgo_gotypes.go:4826 +0x35
github.com/therecipe/qt/widgets._Cfunc_QApplication_QApplication_Exec(0xc000000000)
        _cgo_gotypes.go:2600 +0x49
github.com/therecipe/qt/widgets.QApplication_Exec(...)
        github.com/therecipe/qt/widgets/widgets-minimal.go:2983
github.com/akiyosi/goneovim/editor.InitEditor(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        github.com/akiyosi/goneovim/editor/editor.go:341 +0xe5e
main.main()
        github.com/akiyosi/goneovim/cmd/goneovim/main.go:30 +0xa3

Yesterday, there was a release so I thought it may be fixed but no it’s the same thing still. So now I am guessing that it may be something with my configuration of the system.

Can someone please help me? 😢
I love goneovim and Golang 😇 . I just wanna use this.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@lalitmee I’m sorry I haven’t responded in a long time. I am trying to fix the last report you reported. Does the bug still occur with the latest binary?

https://github.com/akiyosi/goneovim/actions/runs/629716693

@lalitmee I think it’s possible. If there are any problems, please report them 😃

@akiyosi ,

Yeah, now I can use it. I am very happy after seeing this working. Thank you so much for this awesome GUI Nvim and for helping me. 👍

I will see if I can contribute to it in the future in the process of learning Go. 😇

EDIT:

Question: How can I check if goneovim is running right now in my neovim config file? For example:

if exists('gnvim')
   " do this here
endif

Is there something like this available to use for doing some specific things when running goenovim like keybindings for some commands of gonvim-fuzzy?

Hmm, this is a strange issue. I haven’t tested it on Pop OS, but it may be that there is something deeper going on that makes the order of object creation different from the major order. I’ll start working on a fix related to this issue now.