Sublime Forum

Crash while opening invalid JSON

#1

I’m using latest ST2 beta, build 2181 on Ubuntu 11.10 x64. I tried to open a malformed JSON file and ST2 brought my system to its knees by allocating all 12 GB of memory I have, crashing afterwards and taking X11 with it. Next time I tried it only crashed the Flash Pandora Radio player =)

The problem is very easy to reproduce:

$ ruby -e "100000.times { puts '{\"test\":' }" > bug.json
$ subl bug.json

or just open the file I attached.

Thanks!
bug.json.gz (1.76 KB)

0 Likes