wordgrinder icon indicating copy to clipboard operation
wordgrinder copied to clipboard

Wordgrinder crashes suddenly when highlighting while deleting

Open alecstein opened this issue 5 years ago • 2 comments

A few times I've found myself highlighting backwards, "Cursor Left", and then cutting or deleting the text -- then at the moment of deletion wordgrinder crashes without saving.

Both times it left this traceback:

Lua error: [string "src/lua/redraw.lua"]:180: word 82 not in para 29 of len 81 stack traceback: [C]: in function 'error' [string "src/lua/redraw.lua"]:180: in function 'redraw' [string "src/lua/forms.lua"]:528: in function 'redraw_dialogue' [string "src/lua/forms.lua"]:613: in function 'Run' [string "src/lua/ui.lua"]:99: in function 'ModalMessage' [string "src/lua/main.lua"]:228: in function 'WordProcessor' [string "src/lua/main.lua"]:373: in function <[string "src/lua/main.lua"]:239>

I'm not sure what it means, but it has happened twice now (same traceback), and I am posting it here because I figure such sudden crashes are probably not good for data integrity.

I can't reliably reproduce the error, it seems to involve something subtle about highlighting and deleting at the same time.

alecstein avatar Jan 01 '21 08:01 alecstein

Okay, that's bad. Could you tell me what version you're using? Also, are you using shift+cursor keys selection or ctrl+space mark selection?

In addition, if this is crashing completely rather than putting up a stack trace in a dialogue box, that's really weird. It's supposed to catch this kind of error and attempt to continue.

davidgiven avatar Jan 03 '21 11:01 davidgiven

wordgrinder 0.8. I use generally use both ways for selection, and can't remember what I did. I wish I could tell you. I tried to reproduce the error. All I can clearly remember is that I was highlighting and deleting stuff pretty fast.

Yes, I just want to confirm it was a total crash. The stack trace was left somehow in the terminal both times the app crashed, but only the second time was I able to read it. The first time the lines had gotten corrupted somehow.

alecstein avatar Jan 03 '21 21:01 alecstein