hecomi / uREPL

In-game powerful REPL environment for Unity3D.
http://tips.hecomi.com/entry/2015/12/05/003000
MIT License
551 stars 54 forks source link

Random crashes and loss of autocomplete #5

Closed Polyrhythm closed 7 years ago

Polyrhythm commented 7 years ago

On Unity 5.4.x and Windows I get random crashes with uREPL while using it. I know a crash is imminent because the repl loses all autocomplete functionality and whatever command I evaluate next will usually crash Unity completely.

I haven't been able to find any particular patterns as to why it crashes yet.

hecomi commented 7 years ago

Thanks for the report. I guess this is caused by something broken in the autocompletion thread. I'll check it soon.

hecomi commented 7 years ago

What OS are you using?

Polyrhythm commented 7 years ago

I'm on Windows 10

hecomi commented 7 years ago

I found Mono.CSharp.Evaluator.GetCompletions() causes blocking when a certain code like for ( is given to it. I commented out the whole code evaluation to avoid this case. Could you try the latest package?

Polyrhythm commented 7 years ago

Looks like you fixed it. 👍

hecomi commented 7 years ago

Sorry for my late reply..., I released v0.3.1 including the above fix. https://github.com/hecomi/uREPL/releases/tag/v0.3.1