sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

App doesn't work on Chrome OS with Debian 10 #748

Open niallkh opened 4 years ago

niallkh commented 4 years ago

Version info

Description

After update to Sublime Merge 2 through apt-get, app looks like on the screenshot.

I tried to clear '~/.config/sublime-merge', to reinstall app, dev build 2011. The same behaviour.

Steps to reproduce

Steps to reproduce the behavior:

  1. Open Sublime Merge

Expected behavior

Should work as Sublime Merge 1

Screenshots

image

BenjaminSchaaf commented 4 years ago

Could you try running it from the command line with the following arguments: smerge --multiinstance --debug? Do other apps like Sublime Text render as expected?

niallkh commented 4 years ago

Could you try running it from the command line with the following arguments: smerge --multiinstance --debug? Do other apps like Sublime Text render as expected?

Sublime Text works well and previous version Sublime Merge 1 worked well before update.

:0                                                                gtk text scale: 2 (ignored)
:0                                                                startup, version: 2011 linux x64
:0                                                                executable: /opt/sublime_merge/sublime_merge
:0                                                                working dir: /home/854297992c
:0                                                                packages path: /home/854297992c/.config/sublime-merge/Packages
:0                                                                state path: /home/854297992c/.config/sublime-merge/Local
:0                                                                zip path: /home/854297992c/.config/sublime-text-3/Installed Packages
:0                                                                zip path: /opt/sublime_merge/Packages
:0                                                                zip path: /home/854297992c/.config/sublime-merge/Installed Packages
:0                                                                ignored_packages: ["Vintage"]
:0                                                                pre session restore time: 0.169769
:0                                                                loading dictionary Packages/Language - English/en_US.dic
:0                                                                first paint time: 0.438972
:0                                                                Unable to fetch update url contents
code-get commented 4 years ago

I get the following on

Chrome OS (Version 81.0.4044.141 (Official Build) (64-bit)) Debian 10 Buster version:

username@penguin:~$ uname -a
Linux penguin 4.19.98-08076-g24ab33fb8e14 #1 SMP PREEMPT Wed Apr 1 17:14:27 PDT 2020 x86_64 GNU/Linux

Debug output

username@penguin:~$ smerge --multiinstance --debug
:0             gtk text scale: 2.26 (ignored)
:0             startup, version: 2020 linux x64
:0             executable: /opt/sublime_merge/sublime_merge
:0             working dir: /home/username
:0             packages path: /home/username/.config/sublime-merge/Packages
:0             state path: /home/username/.config/sublime-merge/Local
:0             zip path: /home/username/.config/sublime-text-3/Installed Packages
:0             zip path: /opt/sublime_merge/Packages
:0             zip path: /home/username/.config/sublime-merge/Installed Packages
:0             ignored_packages: ["Vintage"]
:0             pre session restore time: 0.149208
:0             loading repo /home/username/dev/azure-platform/.git
:0             loading dictionary Packages/Language - English/en_US.dic
:0             head changed to de033056f64fa203b8f46c83fdf54236a9d2f286
:0             first paint time: 0.447766
:0             Unable to fetch update url contents
niallkh commented 4 years ago

In Sublime Merge 2 was added settings for hardware or software render acceleration. By default crostini uses hardware acceleration, but Merge by default uses software acceleration. So you need to disable hardware acceleration at chrome flags, restart crostini, open Merge -> preferences -> enable hardware acceleration, enable hardware at chrome flags, restart crostini.

It works for me, but now I have incorrect scale and interface freezing... @macromantic Could you try?

code-get commented 4 years ago

Hi @nailkhaf , just letting you know that this works for me fully now. It seems Google just released an update for Chrome OS and the exact version for which Sublime Merge 2 starting working is:

Version 83.0.4103.77 (Official Build) (64-bit)

On the Linux side I've got the following:

username@penguin:~$ uname -a
Linux penguin 4.19.113-08528-g5803a1c7e9f9 #1 SMP PREEMPT Thu Apr 2 15:21:14 PDT 2020 x86_64 GNU/Linux

Also the error message is gone from the debug.

clandry@penguin:~$ smerge --multiinstance --debug
:0     startup, version: 2020 linux x64
:0     executable: /opt/sublime_merge/sublime_merge
:0     working dir: /home/clandry
:0     packages path: /home/clandry/.config/sublime-merge/Packages
:0     state path: /home/clandry/.config/sublime-merge/Local
:0     zip path: /home/clandry/.config/sublime-text-3/Installed Packages
:0     zip path: /opt/sublime_merge/Packages
:0     zip path: /home/clandry/.config/sublime-merge/Installed Packages
:0     ignored_packages: ["Vintage"]
:0     pre session restore time: 0.0824084
:0     Unable to fetch update url contents
:0     loading dictionary Packages/Language - English/en_US.dic
:0     first paint time: 0.353635

Woohoo!