Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-byte entry crashes code #12329

Closed
seanmcbreen opened this issue Sep 20, 2016 · 5 comments
Closed

Multi-byte entry crashes code #12329

seanmcbreen opened this issue Sep 20, 2016 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded

Comments

@seanmcbreen
Copy link

  • VSCode Version: ?
  • OS Version: OS X

Steps to Reproduce:
See this tweet...
https://twitter.com/matt_porter_/status/778019210806951936

@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues labels Sep 20, 2016
@Tyriar Tyriar assigned alexdima and unassigned Tyriar Sep 20, 2016
@M-Porter
Copy link

M-Porter commented Sep 20, 2016

@seanmcbreen oh hey.

VSCode Version: 1.5.2 (66f37fd)
OS Version: 10.11.5 (15F34)

EDIT
There's also this http://i.imgur.com/cXi3fdK.gifv

@alexdima alexdima added this to the September 2016 milestone Sep 20, 2016
@alexdima
Copy link
Member

alexdima commented Sep 20, 2016

@M-Porter Sorry about the crash, it occurs because we end up splitting a high surrogate - low surrogate pair, thus having on our hands an invalid UTF16 string, which we then pass to oniguruma, which also contains a bug that I introduced in the cached UTF16 - UTF8 conversion where I ignore high surrogates that are lacking a low surrogate, whereas v8's handling of the conversion interprets it as a code point.

Ref: atom/node-oniguruma#56 . A PR is already send (atom/node-oniguruma#57), I'm looking forward to getting it reviewed, otherwise we might proceed to fork the node-oniguruma project.

@M-Porter
Copy link

Awesome. Thanks for the explanation. Looking forward to being able to use vscode again.

@alexdima
Copy link
Member

@M-Porter the PR just got accepted, as soon as there will be a new npm package, we will pick it up and the following day's insiders build will contain the fix.

@roblourens
Copy link
Member

I verified that it's not crashing, although there are other issues like #12950

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants