emmetio / livestyle-sublime-old

Live bi-directional CSS edit of new generation
http://livestyle.emmet.io
260 stars 23 forks source link

Chrome tab crashes always when editing in ST #59

Closed cvuorinen closed 11 years ago

cvuorinen commented 11 years ago

Chrome tab crashes always as soon as I edit anything in Sublime Text. Works the other way around, i.e. when I edit in chrome the changes are coming to ST. I have ST3 and I'm on Ubuntu. Tried both official Chrome and also Chromium. Same problem with both.

Here's the console log:

DPI scale: 1
startup, version: 3047 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /home/cvuorinen
packages path: /home/cvuorinen/.config/sublime-text-3/Packages
state path: /home/cvuorinen/.config/sublime-text-3/Local
hardware concurrency: 4
zip path: /opt/sublime_text/Packages
zip path: /home/cvuorinen/.config/sublime-text-3/Installed Packages
found 6 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 5 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Soda Dark 3.sublime-theme
theme loaded
app ready
startup cache, total files: 282 cache hits: 282
pre session restore time: 0.13474
using gamma: 1 (err: 0)
startup time: 0.353808
first paint time: 0.362151
launching: /opt/sublime_text/plugin_host
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
loaded 839 snippets
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin DocBlockr.jsdocs
reloading plugin GitGutter.git_gutter
reloading plugin GitGutter.git_gutter_change
reloading plugin GitGutter.git_gutter_events
reloading plugin GitGutter.git_gutter_handler
reloading plugin GitGutter.git_helper
reloading plugin GitGutter.view_collection
reloading plugin LiveStyle.livestyle
reloading plugin Package Control.Package Control
plugins loaded
Emmet LiveStyle: client connected
Emmet LiveStyle: message received:
'{"action":"handshake","data":{"id":"chrome","supports":["css"]}}'
Emmet LiveStyle: Sending ws message '{"data": {"id": "st3", "title": "Sublime Text 3", "files": ["<untitled:15>", "/home/cvuorinen/Downloads/temp/style.css", "<untitled:18>"], "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABu0lEQVR42q2STWsTURhG3WvdCyq4CEVBAgYCM23JjEwy+cJC41gRdTIEGyELU7BNNMJQhUBBTUjSRdRI3GThR
Package Control: Skipping automatic upgrade, last run at 2013-08-16 09:05:18, next run at 2013-08-16 10:05:18 or after
Emmet LiveStyle: Prepare diff
Emmet LiveStyle: Run diff
Emmet LiveStyle: Use connected "chrome" client for diff
Emmet LiveStyle: Sending ws message '{"data": {"file": 29, "syntax": "css", "source2": "/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty Eleven child theme for cvuorinen.net\\nAuthor:         Carl Vuorinen\\nAuthor URI:     http://cvuorinen.net/about/\\nTemplate:       twentyeleven\\n
Emmet LiveStyle: message received:
'{"action":"diff","data":{"file":29,"success":true,"result":{"patches":[{"path":[["#site-title",1]],"action":"update","properties":[{"name":"color","value":"#f","index":2}],"removed":[]}],"source":"/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty El
Emmet LiveStyle: Received diff sources response: {'result': {'patches': [{'properties': [{'name': 'color', 'value': '#f', 'index': 2}], 'action': 'update', 'path': [['#site-title', 1]], 'removed': []}], 'source': '/*\nTheme Name:     Cvuorinen.net\nTheme URI:      http://cvuorinen.net/\nDescription:    Twenty Eleven child theme for cvuorinen.net\n
Emmet LiveStyle: Sending ws message '{"data": {"patch": [{"properties": [{"name": "color", "value": "#f", "index": 2}], "action": "update", "path": [["#site-title", 1]], "removed": []}], "editorFile": "/home/cvuorinen/Downloads/temp/style.css"}, "action": "update"}'
Emmet LiveStyle: Diff performed in 0.0409s
Emmet LiveStyle: Run diff
Emmet LiveStyle: Use connected "chrome" client for diff
Emmet LiveStyle: Sending ws message '{"data": {"file": 29, "syntax": "css", "source2": "/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty Eleven child theme for cvuorinen.net\\nAuthor:         Carl Vuorinen\\nAuthor URI:     http://cvuorinen.net/about/\\nTemplate:       twentyeleven\\n
Emmet LiveStyle: message received:
'{"action":"diff","data":{"file":29,"success":true,"result":{"patches":[{"path":[["#site-title",1]],"action":"update","properties":[{"name":"color","value":"#f0","index":2}],"removed":[]}],"source":"/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty E
Emmet LiveStyle: Received diff sources response: {'result': {'patches': [{'properties': [{'name': 'color', 'value': '#f0', 'index': 2}], 'action': 'update', 'path': [['#site-title', 1]], 'removed': []}], 'source': '/*\nTheme Name:     Cvuorinen.net\nTheme URI:      http://cvuorinen.net/\nDescription:    Twenty Eleven child theme for cvuorinen.net\
Emmet LiveStyle: Sending ws message '{"data": {"patch": [{"properties": [{"name": "color", "value": "#f0", "index": 2}], "action": "update", "path": [["#site-title", 1]], "removed": []}], "editorFile": "/home/cvuorinen/Downloads/temp/style.css"}, "action": "update"}'
Emmet LiveStyle: Diff performed in 0.0387s
Emmet LiveStyle: Run diff
Emmet LiveStyle: Use connected "chrome" client for diff
Emmet LiveStyle: Sending ws message '{"data": {"file": 29, "syntax": "css", "source2": "/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty Eleven child theme for cvuorinen.net\\nAuthor:         Carl Vuorinen\\nAuthor URI:     http://cvuorinen.net/about/\\nTemplate:       twentyeleven\\n
Emmet LiveStyle: message received:
'{"action":"diff","data":{"file":29,"success":true,"result":{"patches":[{"path":[["#site-title",1]],"action":"update","properties":[{"name":"color","value":"#f00","index":2}],"removed":[]}],"source":"/*\\nTheme Name:     Cvuorinen.net\\nTheme URI:      http://cvuorinen.net/\\nDescription:    Twenty 
Emmet LiveStyle: Received diff sources response: {'result': {'patches': [{'properties': [{'name': 'color', 'value': '#f00', 'index': 2}], 'action': 'update', 'path': [['#site-title', 1]], 'removed': []}], 'source': '/*\nTheme Name:     Cvuorinen.net\nTheme URI:      http://cvuorinen.net/\nDescription:    Twenty Eleven child theme for cvuorinen.net
Emmet LiveStyle: Sending ws message '{"data": {"patch": [{"properties": [{"name": "color", "value": "#f00", "index": 2}], "action": "update", "path": [["#site-title", 1]], "removed": []}], "editorFile": "/home/cvuorinen/Downloads/temp/style.css"}, "action": "update"}'
Emmet LiveStyle: Diff performed in 0.0204s
Emmet LiveStyle: Prepare diff
sergeche commented 11 years ago

Hmmm, it crashes entirely? As far as I can see, it successfully applied 3 changes to browser.

What’s your Chrome version?

cvuorinen commented 11 years ago

Yep, the tab crashes with the sad tab icon and "Aw, Snap! Something went wrong..." text. And developer toolbar says "Inspected target crashed".

Same with both: Chrome Version 28.0.1500.95 Chromium Version 28.0.1500.71 Ubuntu 13.04 (28.0.1500.71-0ubuntu1.13.04.1)

sergeche commented 11 years ago

Can you send me your page example?

cvuorinen commented 11 years ago

I was using the front page of my WordPress blog http://cvuorinen.net/ with the stylesheet http://cvuorinen.net/wp-content/themes/cvuorinen/style.css downloaded and opened locally with ST.

cvuorinen commented 11 years ago

Just tried it with few other sites and they work fine, so it must be something with the styles of that specific site.

sergeche commented 11 years ago

I’ve just pushed v0.8.2 of Chrome extension, let me know if it works for you. I’ve testet this version of LiveStyle with your web-site and everything seems fine

cvuorinen commented 11 years ago

Sorry to tell you, but same thing happens still. I updated the Chrome extension to 0.8.2.830 and my Sublime LiveStyle is also at the latest version.

sergeche commented 11 years ago

Well, I’m afraid it’s a Chrome bug. Do you have a crash logs?

cvuorinen commented 11 years ago

Actually seems to be working for me also now in Chrome. Previously tried with Chromium so the problem must be with that.

sergeche commented 11 years ago

OK, closing this issue for now