luozhiya/xi-qt

Clicking at any point in xi-qt gives SIGSEGV

i1qwert opened this issue · 3 comments

after debugging i saw that when i click at any point in editor window, it calls ContentView::getLineColumn(const QPoint &pos) and then inside of that function calls lineCache->get(line)->utf8Length() that gives SIGSEGV;

qt creator stops at this line of code:

Q_REQUIRED_RESULT QByteArray toUtf8() const &
-> { return toUtf8_helper(*this); }

also when i open file, totalLines is always zero

and wherever i click
line = 0 (which later becomes -1 after totalLines - 1)
column = -1

oops i guess i didn't notice Windows 10 requirement

oof i didn't mention that i get only black screen (and nothing else) in the editor
well but still can see tabs and their titles