Status Update
Comments
mu...@gmail.com <mu...@gmail.com> #2
The problem is still there.
no...@gmail.com <no...@gmail.com> #3
Easy to reproduce on studio-main as well. I believe this is the cause:
ERROR - m.intellij.ui.mac.touchbar.NST - nst library was loaded, but can't be used:
java.lang.UnsatisfiedLinkError: Error looking up function 'releaseNativePeer': dlsym(0x20c071b60, releaseNativePeer): symbol not found
at com.sun.jna.Function.<init>(Function.java:252)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:600)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:576)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:562)
at com.sun.jna.Library$Handler.invoke(Library.java:243)
at com.intellij.ui.mac.touchbar.$Proxy124.releaseNativePeer(Unknown Source)
at com.intellij.ui.mac.touchbar.NST.loadLibrary(NST.java:81)
at com.intellij.ui.mac.touchbar.TouchbarSupport.initialize(TouchbarSupport.java:49)
at com.intellij.ui.mac.touchbar.TouchbarSupport.onApplicationLoaded(TouchbarSupport.java:128)
at com.intellij.idea.IdeStarterKt$postOpenUiTasks$1.run(IdeStarter.kt:223)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
at java.base/java.util.concurrent.ForkJoinTask.doExec$$$capture(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
I noticed that, upstream in IntelliJ, releaseNativePeer
is available in bin/mac/libnst64.dylib
. Whereas in Android Studio Chipmunk, it missing. In other words, our bin/mac/libnst64.dylib
file does not match the sources at native/MacTouchBar/src/TouchBar.m
.
Dana, do we need to update the native libraries in tools/idea/bin/...
?
fe...@gmail.com <fe...@gmail.com> #4
ro...@gmail.com <ro...@gmail.com> #5
fix would be available in Android Studio Chipmunk RC 2
ra...@google.com <ra...@google.com>
al...@gmail.com <al...@gmail.com> #6
Also affected by this on Fedora 35 and 36 with the stable version of Chipmunk 2021.2.1.
./studio.sh
2022-05-11 01:08:51,346 [ 4236] WARN - pl.local.NativeFileWatcherImpl - Cannot run program "/home/username/Applications/android-studio/bin/fsnotifier": error=2, No such file or directory
2022-05-11 01:08:51,356 [ 4246] WARN - api.vfs.impl.local.FileWatcher - File watcher failed to start
al...@gmail.com <al...@gmail.com> #7
Running file
on fsnotifier
comes back with following results:
file fsnotifier
fsnotifier: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=11e741041c519dd5aee726c7170d345a6abf542c, not stripped
It seems like the binary is compiled as 32-bit executable hence 64-bit operating systems lacking support libraries for 32-bit executable are troubled!
This can be remedied either by:
- Installing 32-bit support libraries for your distro
- Copying the
fsnotifier
file from another recently released JetBrains IDE to thebin
directory
Here's the file
output on another copy from JetBrains PyCharm:
fsnotifier: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2624b292f39185b66dda0342772734ce2a94cb41, for GNU/Linux 3.2.0, not stripped
ya...@google.com <ya...@google.com>
[Deleted User] <[Deleted User]> #9
You may want to edit or delete
rh...@css-design.com <rh...@css-design.com> #10
ta...@gmail.com <ta...@gmail.com> #11
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
This new patch introduced a regression on Ubuntu 20.04.
2022-05-25 21:34:45,988 [ 3192] WARN - pl.local.NativeFileWatcherImpl - /home/username/android-studio/bin/fsnotifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/username/android-studio/bin/fsnotifier)
2022-05-25 21:34:45,988 [ 3192] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 1
2022-05-25 21:34:45,991 [ 3195] WARN - api.vfs.impl.local.FileWatcher - File watcher failed repeatedly and has been disabled
Ubuntu 20.04 LTS only offers glibc 2.31.
$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31
Fixed the error by copying fsnotifier
from another JetBrains IDE.
ya...@google.com <ya...@google.com>
se...@gmail.com <se...@gmail.com> #12
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-113-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (212.5744), org.jetbrains.kotlin (212-1.6.21-release-334-AS5457.46), io.flutter (68.0.2)
Current Desktop: X-Cinnamon
ya...@google.com <ya...@google.com> #13
There is a dependency in GLIBC installed in a system, and same Android Studio version could work fine on one linux machine while fails on another.
We are working on fix. Thanks for a patience continue using workaround meanwhile if you get File watcher failed repeatedly and has been disabled
error in logs.
dk...@3cx.com <dk...@3cx.com> #14
Yes, the same error happens on my Ubuntu 20.04.4:
2022-06-02 18:21:58,195 [ 1095] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /home/dmitry/Android/Studio/bin/fsnotifier
2022-06-02 18:21:58,195 [ 1095] WARN - pl.local.NativeFileWatcherImpl - /home/dmitry/Android/Studio/bin/fsnotifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/dmitry/Android/Studio/bin/fsnotifier)
2022-06-02 18:21:58,195 [ 1095] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 1
sp...@gmail.com <sp...@gmail.com> #15
Thanks it works.
for anyone using flatpak build
The path is /var/lib/flatpak/app/com.google.AndroidStudio/x86_64/stable/active/files/extra/android-studio/bin/
na...@gmail.com <na...@gmail.com> #16
I had the same issue with
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.10.102.1-microsoft-standard-wsl2
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 14
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (212-1.7.0-release-281-AS5457.46)
Current Desktop: Undefined
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
and I fixed it with the same idea than
wget https://github.com/JetBrains/intellij-community/raw/master/bin/linux/fsnotifier -O REPLACEME/android-studio/bin/fsnotifier
chmod +x REPLACEME/android-studio/bin/fsnotifier
CHECK with: REPLACEME/android-studio/bin/fsnotifier --selftest
ne...@gmail.com <ne...@gmail.com> #17
fsnotifier: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=726b166e1641807a2cef4525f2b8bcd0b3cffed7, for GNU/Linux 3.2.0, not stripped
I have found that my glibc has no GLIBC_2.33 later. I will make my request closed. :
$strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC | tail
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_PRIVATE
GNU C Library (Debian GLIBC 2.28-10+deb10u1) stable release version 2.28.
mr...@gmail.com <mr...@gmail.com> #18
xi...@turingvideo.com <xi...@turingvideo.com> #19
It always shows "External file changes sync may be slow: File watcher failed repeatedly and has been disabled".
What is the cause and how can I dismiss this warning message ?
thanks
ra...@gmail.com <ra...@gmail.com> #20
The workaround is to replace the file fsnotifier in your Android Studio binary directory with one from another JetBrains IDE, say Intellij Idea. You can download the file here:
If you're running Android Studio as a snap like myself, unfortunately you're gonna have to wait for this problem to (hopefully) get fixed on the next minor release.
mr...@gmail.com <mr...@gmail.com> #21
su...@gmail.com <su...@gmail.com> #22
after
this add do
>>>>>> <option name="delegatedBuild" value="false" /> <<<<<<<<<<<<<<<<<<<<
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
>>>>>>>>>>>>>>>>>> <option name="delegatedBuild" value="false" /> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
</GradleProjectSettings>
</option>
</component>
</project>
ya...@google.com <ya...@google.com> #23
this is fixed in Android Studio Electric Eel - please update Studio if you are on canary canary.
and fix would be available on next Dolphin and Chipmunk releases as well.
ra...@gmail.com <ra...@gmail.com> #24
My system is running Ubuntu 20.04.4 LTS
Getting this associated warning on Android Studio startup multiple times:
WARN - pl.local.NativeFileWatcherImpl - /snap/android-studio/123/android-studio/bin/fsnotifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/android-studio/123/android-studio/bin/fsnotifier)
WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 1
And on the notifications:
External file sync changes may be slow
File watcher failed repeatedly and has been disabled
I checked and I clearly don't have GLIBC version 2.33 in my system:
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_2.29
GLIBC_2.30
GLIBC_PRIVATE
GNU C Library (Ubuntu GLIBC 2.31-0ubuntu9.9) stable release version 2.31.
It's also not generally recommended to manually install the latest GLIBC on a system as described here:
Any chance this will be fixed on the next patch release?
ha...@ornl.gov <ha...@ornl.gov> #25
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 4.18.0-394.el8.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (212-1.7.10-release-333-AS5457.46)
Current Desktop: GNOME
ne...@gmail.com <ne...@gmail.com> #26
It looks working however it has a different image from my own compile version on Debian Bullseye.
$file projects/fsnotifier/fsnotifier && file ~/Downloads/fsnotifier
projects/fsnotifier/fsnotifier: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=358a3c86714f29c23ada3e11d528b764f8022407, for GNU/Linux 3.2.0, not stripped
Downloads/fsnotifier: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, not stripped
Downloaded version is that from IntelliJ GitHub.
ah...@avirohealth.com <ah...@avirohealth.com> #28
ya...@google.com <ya...@google.com> #29
Android Studio Chipmunk Patch 2 is released please update to latest version to resolve fsnotifier issue.
gr...@gmail.com <gr...@gmail.com> #30
Looks good now. Thank you.
gm...@gmail.com <gm...@gmail.com> #31
Yeah, seems to be fixed in Chipmunk Patch 2. :)
For some reason this isn't mentioned in the
ra...@gmail.com <ra...@gmail.com> #32
Since Ubuntu's first point release is now available, I upgraded to Jammy Jellyfish and this problem is gone.
Description
Build: AI-213.6777.52.2113.8305692, 202203160046,
AI-213.6777.52.2113.8305692, JRE 11.0.13+0-b1751.21-8125866x64 JetBrains s.r.o., OS Linux(amd64) v5.13.0-35-generic, screens 3440.0x1440.0
AS: Dolphin | 2021.3.1 Canary 7; Kotlin plugin: 213-1.6.20-M1-release-for-android-studio-AS6777.52; Android Gradle Plugin: 7.3.0-alpha07; Gradle: 7.4; Gradle JDK: version 11.0.13;
I have done a clean installation of Ubuntu 20.04, downloaded latest Android Studio(canary and lates bumblebee) and on every start warning appears "File watcher failed to start" or in idea.log:
Launching fsnotifier from command line gives the same error. Note: flag executable is set on this file.
The only workaround I have found that works - download Intellij Idea and copy fsnotifier from its bin folder. With this version of fsnotifier Android Studio successfully launches fsnotifier.