rohit-px2/nvui

Core dump: Assertion `editor_area' failed

the-glu opened this issue · 5 comments

Hello,

I tried to build the package on Archlinux.

Build is fine (with the fix 56c4577 ), but at start up there is a crash:

./nvui
nvui: nvui/src/cursor.cpp:37: Cursor::Cursor(EditorArea*): Assertion `editor_area' failed.
zsh: abort (core dumped) ./nvui

I can provide versions of libraries if needed :)

Thanks a lot and have a nice day!

I can confirm it, I'm also ArchLinux. I'm using wayland (swayvm).

assert(editor_area);

nvui starts if I remove the assertation and works without any obvious problem. My guess is that the assert was intended for the method argument ea, not for editor_area.

Yeah, I just saw it. I was intending to assert ea.

@tom-kuca @the-glu I've fixed the assertion on the latest commit.

I can confirm it's working now, thanks for the quick fix :)

Good to hear! I'll close this issue then.