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
Several crashes while typing text #1832
Comments
Seconds crash just now. This time also, the dump file has size 0. But I could not start the debugger. I just had Updated Visual Studio version to 15.2 and this should be related. I had just pressed the Could be related to my other package https://github.com/evandrocoan/SublimeOpenAutoCompletion mentioned on the issue:
Perhaps now we may start to think about steps on how to reproduce the problem. This seems to be caused the the continuous and extensive calls to import sublime
import sublime_plugin
class OpenAutoCompletionCommand(sublime_plugin.TextCommand):
def run(self, edit, **kargs):
view = self.view
view.run_command("insert", {"characters": kargs["keystroke"]})
if not view.settings().get('is_widget'):
window = view.window()
window.run_command("auto_complete", {'disable_auto_insert': True, 'next_completion_if_showing': False}) Just is missing the the keybindings to make this work, which follows:
[
// Run command on space
// https://forum.sublimetext.com/t/run-command-on-space/28198
{ "keys": ["a"], "command": "open_auto_completion", "args": {"keystroke": "a" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["b"], "command": "open_auto_completion", "args": {"keystroke": "b" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["c"], "command": "open_auto_completion", "args": {"keystroke": "c" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["d"], "command": "open_auto_completion", "args": {"keystroke": "d" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["e"], "command": "open_auto_completion", "args": {"keystroke": "e" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["f"], "command": "open_auto_completion", "args": {"keystroke": "f" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["g"], "command": "open_auto_completion", "args": {"keystroke": "g" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["h"], "command": "open_auto_completion", "args": {"keystroke": "h" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["i"], "command": "open_auto_completion", "args": {"keystroke": "i" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["j"], "command": "open_auto_completion", "args": {"keystroke": "j" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["k"], "command": "open_auto_completion", "args": {"keystroke": "k" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["l"], "command": "open_auto_completion", "args": {"keystroke": "l" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["m"], "command": "open_auto_completion", "args": {"keystroke": "m" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["n"], "command": "open_auto_completion", "args": {"keystroke": "n" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["o"], "command": "open_auto_completion", "args": {"keystroke": "o" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["p"], "command": "open_auto_completion", "args": {"keystroke": "p" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["q"], "command": "open_auto_completion", "args": {"keystroke": "q" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["r"], "command": "open_auto_completion", "args": {"keystroke": "r" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["s"], "command": "open_auto_completion", "args": {"keystroke": "s" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["t"], "command": "open_auto_completion", "args": {"keystroke": "t" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["u"], "command": "open_auto_completion", "args": {"keystroke": "u" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["v"], "command": "open_auto_completion", "args": {"keystroke": "v" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["w"], "command": "open_auto_completion", "args": {"keystroke": "w" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["x"], "command": "open_auto_completion", "args": {"keystroke": "x" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["y"], "command": "open_auto_completion", "args": {"keystroke": "y" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["z"], "command": "open_auto_completion", "args": {"keystroke": "z" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["A"], "command": "open_auto_completion", "args": {"keystroke": "A" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["B"], "command": "open_auto_completion", "args": {"keystroke": "B" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["C"], "command": "open_auto_completion", "args": {"keystroke": "C" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["D"], "command": "open_auto_completion", "args": {"keystroke": "D" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["E"], "command": "open_auto_completion", "args": {"keystroke": "E" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["F"], "command": "open_auto_completion", "args": {"keystroke": "F" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["G"], "command": "open_auto_completion", "args": {"keystroke": "G" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["H"], "command": "open_auto_completion", "args": {"keystroke": "H" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["I"], "command": "open_auto_completion", "args": {"keystroke": "I" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["J"], "command": "open_auto_completion", "args": {"keystroke": "J" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["K"], "command": "open_auto_completion", "args": {"keystroke": "K" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["L"], "command": "open_auto_completion", "args": {"keystroke": "L" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["M"], "command": "open_auto_completion", "args": {"keystroke": "M" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["N"], "command": "open_auto_completion", "args": {"keystroke": "N" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["O"], "command": "open_auto_completion", "args": {"keystroke": "O" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["P"], "command": "open_auto_completion", "args": {"keystroke": "P" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["Q"], "command": "open_auto_completion", "args": {"keystroke": "Q" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["R"], "command": "open_auto_completion", "args": {"keystroke": "R" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["S"], "command": "open_auto_completion", "args": {"keystroke": "S" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["T"], "command": "open_auto_completion", "args": {"keystroke": "T" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["U"], "command": "open_auto_completion", "args": {"keystroke": "U" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["V"], "command": "open_auto_completion", "args": {"keystroke": "V" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["W"], "command": "open_auto_completion", "args": {"keystroke": "W" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["X"], "command": "open_auto_completion", "args": {"keystroke": "X" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["Y"], "command": "open_auto_completion", "args": {"keystroke": "Y" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
{ "keys": ["Z"], "command": "open_auto_completion", "args": {"keystroke": "Z" }, "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] },
] |
@evandrocoan Can you list all the packages you installed? |
I use several of my forks, so they are not same as you can install from package control, for example BufferScroll is had several changes. You can see, and install them all on my toolset: https://github.com/evandrocoan/SublimeTextStudio Anyway I run a new command I added to package control to list the packages. This is the output:
Not all the 155 are enabled, these packages are disabled, until I need them and/or have time to fix some which are not working right as are breaking some other package functionality:
"ignored_packages":
[
"All Autocomplete",
"Anaconda",
"ApplySyntax",
"Boxy Theme",
"BracketHighlighter",
"C++ Completions",
"C++ Snippets",
"C++ Starting Kit",
"ColorHelper",
"DictionaryAutoComplete",
"FileManager",
"Find++",
"Gist",
"Git",
"GitGutter",
"Javatar",
"Local History",
"Matlab Completions",
"MatlabFilenameAutoComplete",
"MySQL Snippets",
"Project Specific Syntax Settings",
"Qt Completions for C++",
"ScopeAlways",
"Select All Spelling Errors",
"SQL Keyword Uppercase",
"SQLExec",
"SQLTools",
"Sublime Tutor",
"sublime-text-2-buildview",
"SublimeCodeIntel",
"SyncedSideBar",
"SyntaxManager",
"Vintage",
"WordHighlight"
], |
So, you have over 150 packages installed and something that calls autocomplete after every keystroke, and sublime crashes, and you’ve got nothing to start reproducing this? I’m not sure what your expectation is here. It’s not impossible to crash sublime with a plugin or combination of plugins, it’s the nature of the architecture, which provides benefits as much as it has downsides or risks. What happens with a clean install and just your autocomplete-everywhere-all-the-time setup? |
I am trying to reproduce this using the typer program:
I am adding the same text I was typing the other day and got 3 crashes: text used
Link to a gist within it: ## Developing your Editor
On that time, it was eating about 1.7GB of ram: After adding the first time Sublime Text hanged like this for a half-hour, until I forced kill it: |
crashing and memory leak.Issue: sublimehq/sublime_text#1832
This crashes are cause by the package:
Removing that package fixes this issue. On build 3142, the crashes seems to be fixed, however it created another similar issue:
Which stills present on the new build of the package shagabutdinov/sublime-goto-last-edit-enhanced#4 |
Summary
When the crash occurred, I could copy some info from
Visual Studio
:It crashed from yesterday, to today twice while was typing text. On this screen shot points to the exactly moment when it crashed. I was typing
Bu
, then the autocomplete pops up. But suddenly Sublime Text stopped, and the windowsCrash Dialog/Report
showed up:Then it asked to open with my debugger
Visual Studio 2017
, and when it opened it asked for the debug symbols. But I forgot to copy the whole call stack from theVisual Studio
, but I have a picture:But I do not have them. Anyway, I cannot post here the dump file, because all the times Sublime Text is crashing now, the dump file has size 0. The dump file generated this time had the name
1c3144ee-5221-46fc-8d66-5ae3bac633fa.dmp
, but as the others, it hadsize 0
, i.e., the file is completely empty:Dump file view from inside it:
Expected behavior
Not crash while I am using the program.
Actual behavior
The program crashes when I am typing simple long texts.
Steps to reproduce
I which I knew steps to reproduce it. For now the crashes are completely random. But they all seem to have one thing in common. I am typing text. May be related to the auto complete?
I use this auto complete for words auto complete form all views:
Environment
dpi_scale
used in ST 1.0The text was updated successfully, but these errors were encountered: