snapcrafters / android-studio

A community-maintained package to easily install Android Studio on Linux
https://developer.android.com/studio/index.html
47 stars 16 forks source link

PC freezes after upgrade to 3.6.1 #67

Closed akujbida closed 2 years ago

akujbida commented 4 years ago

EDIT: I think this is a red herring ie not an AS problem. Looking through the syslog, I saw too many forticlient messages, got suspicious, removed forticlient, now no problem. I consider this closed. Sorry for the noise.

Many thanks for creating this snap which I have been using for more than a year, knowing it has saved much frustration over conventional install! Million thanks!

AS hangs and freezes pc after upgrade itself to 3.6.1. Lenovo X1 (1st gen) 8GB, 25GB free hdd, Ubuntu 18.04 LTS After several launch attempts ending in freezes, I started clean:

  1. snap remove android-studio
  2. Delete AS config directories (to avoid possible problems related to previous install)
  3. snap install android-studio
  4. Launch from launch icon.
  5. Fearing common gradle problems, I stop gradle build if one gets started. I have managed to edit config so no project is opened on launch (to avoid gradle starting). Open File>Settings, try to change memory settings to reduce usage, then click close, AS hangs, two seconds later whole pc is frozen. So even with no project open, AS will hang then freeze the pc. With project open, the hang freeze occurs during gradle build, but I'm not certain gradle is the cause.

free (before launch) total used free shared buff/cache available Mem: 7861640 1444812 5127708 167196 1289120 6000564 Swap: 7812092 0 7812092

free (after launch) 5.7GB free or so, machine hung so could not copy here.

cat .AndroidStudio3.6/config/studio64.vmoptions -Xmx1024m

Other strangeness while this is going on In an X terminal, can no longer type, but can create a new tab in Xterm and type a few chars before it also hangs; can do this several for several tabs until pc freezes. Can copy paste into this text file, but cannot save, until eventual pc freeze (took me many reboots to build this record)

Output from snap run android-studio, first try: Gtk-Message: 09:16:45.805: Failed to load module "canberra-gtk-module" So I did sudo apt install libcanberra-gtk-module...done

Output from snap run android-studio 2>&1 | tee asout2.txt, second try: AS started to open a project, I cancelled this (to avoid gradle running). AS become stable in the startup dialog. I created a new project, blank template. AS created the project, started gradle.

2020-03-19 09:47:03,214 [ 16081] WARN - ugins.textmate.TextMateService - Missing builtin bundles, checked: /home/ak/.AndroidStudio3.6/config/plugins/textmate/lib/bundles /snap/android-studio/84/android-studio/plugins/textmate/lib/bundles 2020-03-19 09:47:40,240 [ 53107] WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting 2020-03-19 09:49:02,694 [ 135561] WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. com.intellij.util.download.impl.FileDownloaderImpl$ConcurrentTasksProgressManager.updateFraction(FileDownloaderImpl.java:328) 2020-03-19 09:49:59,277 [ 192144] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider

om26er commented 2 years ago

As mentioned in the edited comment in the bug report. This is no longer an issue