In Ubuntu22.04, it seemed to be lacking in libaries.
How could I solve it?
This is what the ld information is:
ld: mode elf_x86_64
attempt to open /usr/local/lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /usr/local/lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /usr/lib/x86_64-linux-gnu64/libxcb.so failed
attempt to open /usr/lib/x86_64-linux-gnu64/libxcb.a failed
attempt to open /usr/local/lib64/libxcb.so failed
attempt to open /usr/local/lib64/libxcb.a failed
attempt to open /lib64/libxcb.so failed
attempt to open /lib64/libxcb.a failed
attempt to open /usr/lib64/libxcb.so failed
attempt to open /usr/lib64/libxcb.a failed
attempt to open /usr/local/lib/libxcb.so failed
attempt to open /usr/local/lib/libxcb.a failed
attempt to open /lib/libxcb.so failed
attempt to open /lib/libxcb.a failed
attempt to open /usr/lib/libxcb.so failed
attempt to open /usr/lib/libxcb.a failed
attempt to open /usr/x86_64-linux-gnu/lib64/libxcb.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libxcb.a failed
attempt to open /usr/x86_64-linux-gnu/lib/libxcb.so failed
attempt to open /usr/x86_64-linux-gnu/lib/libxcb.a failed
ld: cannot find -lxcb: No such file or directory
Related
Since I upgraded my ubuntu impish to jammy (22.04.1 LTS), I have problem in my python script using selenium with firefox (before it worked very well).
Below you will find the "generic" message of selenium trouble:
selenium.common.exceptions.TimeoutException: Message: Connection refused (os error 111)
And here you will find the result of the geckodriver.log:
1665336675615 geckodriver INFO Listening on 127.0.0.1:46459
1665336676102 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47893" "-no-remote" "-profile" "/tmp/rust_mozprofilet2tISh"
mkdir: cannot create directory '/run/user/0': Permission denied
*** You are running in headless mode
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
(firefox:3302): dconf-CRITICAL **: 19:32:19.699: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
What I have done to "fix" this problem was to directly create the directory /run/user/0 with the full access (777).
After that the problem was stil here, it's not the same message, I have only this one:
*** You are running in headless mode
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
and the selenium message is still the same:
selenium.common.exceptions.TimeoutException: Message: Connection refused (os error 111)
I found some similar problems on internet but nothing to help me to fix this one.
Thank you for your help.
I got this error:
Error:Execution failed for task ':app:generateDebugBuildConfig'. > java.io.IOException: Could not delete path 'C:\Users\Guest Account\Documents\COLLEGE\FYP\7. Iteration 4\fridge iteration 4\app\build\generated\source\buildConfig\debug\com'.
and saw 'could not delete path' so I decided to follow the path and delete the path. When I reran the app I got seven new errors:
Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:failed linking file resources.
Error:attribute 'com.virtual.fridge:layout_behavior' not found.
Error:error: attribute 'com.virtual.fridge:layout_behavior' not found.
In my even log I have two new messages:
* daemon not running; starting now at tcp:5037
21:10 * daemon started successfully
I am going to presume this is down to deleting that file.. is there anything I can do? Really new to android studio so I appreciate any help. Please tell me what other information I shoudl provide
I cleaned the project and built it and it worked
All was working until I upgraded. But now I can't start a virtual device. This is on Debian Jessie.
I've now wiped everything and reinstalled. I have the same problem: depending on how I configure my virtual device I get either (1) nothing at all or (2) a blank emulated 'phone window and a LOT of errors. See below.
Any suggestions at all as to how to move forward? I've been trying to get this re-installed all day, and nothing.
(NB: I've tried adb kill-server; adb start-server.)
I say I've wiped everything but perhaps I missed something. I completely removed:
* $HOME/Android
* $HOME/AndroidStudioProjects
* $HOME/.android
* $HOME/.AndroidStudio2.3
* $HOME/.gradle
* $HOME/.emulator_console_auth_token
* $HOME/.config/Android Open Source Project
* /usr/local/lib/android_studio (which is where I unzipped the download)
After installing from scratch again, running studio.sh from the command line, then trying to start a virtual device --- here's what I see on the command line:
[ 28819] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
[ 29831] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
[ 30843] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
[ 31854] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
[ 32888] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
And here is what I see in ADS's "Android Device Monitor" screen (just the start of a massive rolling list of errors. I have my filter set to show errors only here):
06-28 13:46:54.821 1302-1302/? E/gralloc_ranchu: Could not find software fallback module!?
[ 06-28 13:46:54.821 1302: 1302 E/ ]
connect: failed with fd -1 errno 22
[ 06-28 13:46:54.821 1302: 1302 E/ ]
Failed to connect to host (QemuPipeStream)!!!
06-28 13:46:54.821 1302-1302/? E/gralloc_ranchu: gralloc: Failed to get host connection
[ 06-28 13:46:54.821 1302: 1302 E/ ]
connect: failed with fd -1 errno 22
[ 06-28 13:46:54.821 1302: 1302 E/ ]
Failed to connect to host (QemuPipeStream)!!!
06-28 13:46:54.821 1302-1302/? E/gralloc_ranchu: gralloc: Failed to get host connection
06-28 13:46:54.821 1302-1302/? E/hwcomposer: ranchu_hw_composer hwc_open could not open framebuffer
06-28 13:46:54.822 1302-1302/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x44 in tid 1302 (surfaceflinger)
06-28 13:46:54.822 1302-1302/? A/libc: Unable to open connection to debuggerd: Connection refused
06-28 13:46:55.143 1361-1361/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-28 13:46:55.143 1361-1361/? E/android.os.Debug: failed to load memtrack module: -2
06-28 13:46:55.188 1361-1361/? E/Minikin: addFont failed to create font /system/fonts/NanumGothic.ttf
06-28 13:46:55.188 1361-1361/? E/Minikin: addFont failed to create font /system/fonts/DroidSansFallback.ttf
06-28 13:46:55.188 1361-1361/? E/Minikin: addFont failed to create font /system/fonts/MTLmr3m.ttf
06-28 13:46:55.248 1361-1361/? E/EmojiFactory_jni: Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found
06-28 13:46:55.458 1361-1361/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-en-us.pat.txt
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en-us.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
06-28 13:46:55.458 1361-1361/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-eu.pat.txt
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-eu.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
06-28 13:46:55.458 1361-1361/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-hu.pat.txt
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-hu.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
06-28 13:46:55.459 1361-1361/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-hy.pat.txt
You would think that that Could not find software fallback module!? would be something I could google for. But I don't see anything...
I've got this working now.
TL;DR:
DO NOT expect Android Studio to hold your hand WRT the emulator. It will screw up some of the time. It will hide error messages. It might be wise to learn to talk to the emulator directly.
There is a bug in this version of Android Studio -- see this question.
This answer fixes another new bug (at least, new bug for me). It also shows you how to get more control over your virtual devices.
Finding the Actual Errors
First, you need to see the actual error that is causing the emulator to fail. It's likely that Studio is not showing you that; you need to run the emulator directly from the command line. If you have a virtual device called "foo" then this is just emulator #foo, but likely your devices all have names like NEXUS_XL_BLARG_23_SKIDOO. I found it best to rename them to something typeable in the Studio 'AVD' GUI.
If you can't run the emulator command, then you will need to fix your environment variables. I have this in my profile:
export ANDROID_HOME=${HOME}/Android/Sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:${ANDROID_HOME}/tools/bin
export PATH=${PATH}:/usr/local/lib/jdk/bin
export JAVA_HOME=/usr/local/lib/jdk
(Yes, I have the JDK installed separately. I have no idea whether that is important. Sorry.)
Google's help page for the emulator command is here.
Deal With the 2.3.3 Error
As noted in this question.
emulator #latest_kvm
[139756843472704]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '../emulator/qemu/linux-x86_64/qemu-system-i386': No such file or directory
andy#zarkov[~]%: which emulator
/home/andy/Android/Sdk/tools/emulator
andy#zarkov[~]%: cd /home/andy/Android/Sdk/tools
Deal With the Other Problems You Didn't Know You Had
In my case it turns out that I don't have the right graphic drivers installed to use the emulator with KVM. Now I'm running the emulator from the command line, I can see that. Didn't know before.
andy#zarkov[~/Android/Sdk/tools]%: emulator #latest_kvm
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 36
Current serial number in output stream: 35
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 38
Current serial number in output stream: 39
QObject::~QObject: Timers cannot be stopped from another thread
[1] 30486 segmentation fault emulator #latest_kvm
And it looks as if the goalposts have moved for the software graphic driver and there is another little bug to deal with, which is handled by this SO answer very nicely:
(139) andy#zarkov[~/Android/Sdk/tools]%: emulator #later_soft
ERROR: Invalid GPU mode 'mesa', use one of: on off host guest
I got email from my hosting, here detail email:
The following list of files have FAILED the md5sum comparison test.
This means that the file has been changed in some way. This could be a
result of an OS update or application upgrade. If the change is
unexpected it should be investigated:
/usr/bin/berkeley_db_svc: FAILED
/usr/bin/db_archive: FAILED
/usr/bin/db_checkpoint: FAILED
/usr/bin/db_codegen: FAILED
/usr/bin/db_deadlock: FAILED
/usr/bin/db_dump: FAILED
/usr/bin/db_dump185: FAILED
/usr/bin/db_hotbackup: FAILED
/usr/bin/db_printlog: FAILED
/usr/bin/db_recover: FAILED
/usr/bin/db_stat: FAILED
/usr/bin/db_upgrade: FAILED
/usr/bin/db_verify: FAILED
/usr/bin/free: FAILED
/usr/bin/pgrep: FAILED
/usr/bin/pkill: FAILED
/usr/sbin/build-locale-archive: FAILED
/usr/sbin/glibc_post_upgrade.x86_64: FAILED
/usr/sbin/iconvconfig: FAILED
/usr/sbin/iconvconfig.x86_64: FAILED
/bin/bash: FAILED
/bin/sh: FAILED
/sbin/dmeventd: FAILED
/sbin/ldconfig: FAILED
/sbin/lvchange: FAILED
/sbin/lvconvert: FAILED
/sbin/lvcreate: FAILED
/sbin/lvdisplay: FAILED
/sbin/lvextend: FAILED
/sbin/lvm: FAILED
/sbin/lvmchange: FAILED
/sbin/lvmdiskscan: FAILED
/sbin/lvmetad: FAILED
/sbin/lvmsadc: FAILED
/sbin/lvmsar: FAILED
/sbin/lvreduce: FAILED
/sbin/lvremove: FAILED
/sbin/lvrename: FAILED
/sbin/lvresize: FAILED
/sbin/lvs: FAILED
/sbin/lvscan: FAILED
/sbin/pvchange: FAILED
/sbin/pvck: FAILED
/sbin/pvcreate: FAILED
/sbin/pvdisplay: FAILED
/sbin/pvmove: FAILED
/sbin/pvremove: FAILED
/sbin/pvresize: FAILED
how to solve this problem, and also what this will affect condition of my hosting (security) future ?
please your advice & thank you.
Have you updated the cPanel on your server? I think you have received this mail after cPanel/WHM update(After upcp cron), Because cPanel updated process has updated all these files on your server and CSF has found that changes in md5sum comparison test.
I have installed xampp and then tuleap in centos and gave /usr/share/tuleap/src/www as document root in /etc/httpd/conf/httpd.conf
When I hit the url, I am getting the following error:
Warning: require_once(pre.php): failed to open stream: No such file or directory in /usr/share/tuleap/src/www/index.php on line 9
Fatal error: require_once(): Failed opening required 'pre.php' (include_path='.:/opt/lampp/lib/php') in /usr/share/tuleap/src/www/index.php on line 9
I am also seeing that the document root points to /usr/share/tuleap/src/www and pre.php is not in this folder. Instead it is at include/pre.php I am totally confused on this directory structure. I didn't change any code after installing tuleap.
Please let me know how to fix this issue.
Thanks in advance!