AVD not booting after Android Studio update - android-studio

My AVDs are no longer booting after I installed a 921MB update released these days. I don't exactly remember the entity of the update (maybe API/SDK revision), I'm using Android Studio 2.3 build AI-162.4069837 with API 25 revision 3 (I think this last thing is the actual update) on Debian.
When I start up the AVD it just keeps a black screen and never completes booting. The log shows this error just after it starts booting the AVD:
1292-1328/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
1292-1328/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
1292-1328/? E/vold: Failed to chmod /data/media/0: No such file or directory
It's like there is no file system initalized.
After that I keep getting a loop of errors, which I pasted at https://pastebin.com/cbk9T8KR.
Anybody else having troubles? Any ideas on how to get the VM working again?

I eventually found a temporary solution hoping they'll fix the bug. You should open config.ini inside .android/AVD/[AVD name]/ and set
hw.gpu.enabled=yes
hw.gpu.mode=swiftshader
and the VM got back to work properly.
Source: https://issuetracker.google.com/issues/36905888

for all Windows Users the config.ini is in
C:\Users\yourname.android\avd\yourdevicename.avd/config.ini
and the entries
hw.gpu.enabled=yes
hw.gpu.mode=auto
exist already. But the change of hw.gpu.mode to "swiftshader" works perfectly.

Related

VS 2019 Remote Linux doesn't copy all headers files

I have a problem when I tried to use VS 2019 to remote develop on raspberry pi.
The headers file don't copy to the windows machine, even the most elemental like stdio.h
When i tried to force an update in Tools/Options/Cross Plataform/Connection Manager/Remote Headers IntelliSense Manager/Update, the update never suceded and I received differentes errors likes this one :
An error has occurred. Timed out executing command 'realpath -m -L ~', waited for 15000.1469ms. Please see C:\Users\XXXXX\AppData\Local\Temp\vslinux_header_update_log.txt for more information. Please see https://aka.ms/AA23jat for troubleshooting.
Going to the page above doesn't provide any help.
I also tried to manually copy the files in /usr/include from raspberry, but it looks that windows doesn't like the directory structure because some headers appear but others not
I reinstall VS 20199 twice but the error continue
I appreciate your help.
I found the problem and VS was not guilty. The timeout was caused by an intermitent failure in the WiFi, I tried with an eth connection and the problem disappear.

Need to modify KDEInit entry

I'm running mint 17.2 kde.
I installed intellij CE by running idea.sh in ~/Downloads/
Then I moved intellij to /usr/lib/. Now I get this when I try to open intellij from the Application Launcher:
KDEInit could not launch '/home/******/Downloads/idea-IC-143.1821.5/bin/idea.sh'
I know I could just move it back, but I would really prefer to point Application Launcher in the right direction.
I've already checked out .kde/share/config and didn't find any mention of idea.sh, jetbrains, or intellij that seemed like a relevant entry.
Is there somewhere else that Application Launcher entries are saved? Is it possible to remove entries then add new ones from the application itself?
I ended up grepping through my entire home directory for files that used the full path posted in the error message.
grep -rnw '/home/******/' -e ".*/home/******/Downloads/idea-IC-143.1821.5/bin/idea.sh.*"
This returned jetbrains-idea-ce.desktop in my .gnome, .kde, and .local directories, all of which I modified. I could launch intellij from the Application Launcher after this.

Node fs Error: EPERM: operation not permitted, open

I get this error in my app:
Error: EPERM: operation not permitted, open 'C:\Program Files
(x86)\Full Menu\db\main.json'
The app I have is built with electron-boilerplate. I am using this function to get the path to the root of the app:
path.dirname(process.execPath)
And this is the script that writes the file:
fs.writeFile(apath + '/db/' + elem + '.json', JSON.stringify(results)
I know what the problem is: permissions. But how could I get this working without running the app as an administrator?
For the benefit of searchers; I has this error. I added full permissions for Everyone as a test, but that didn't fix it. The issue was that the file was set to readonly (by source control).
Unchecking the readonly option in the file properties fixed the issue.
On my Windows 10 machine, I encountered this error when running an old Node JS project. I think Node version 10.16.
In any case, it was trying to modify a dotfile in my project. Be sure that the file isn't hidden on Windows. After unchecking the hidden option in the file properties pop up. Everything worked.
So to fix:
Right click file in Windows Explorer
Select properties
Uncheck Hidden
Click Ok
Re-run your command.
If you have the file that you can't open or modify mounted as a volume in docker restarting docker should fix the issue.
i had to run the node command prompt as administrator and that fixed the issue.
I face this issue when I was deleting a file/folder.
Solution:
Just restart your code editor/ terminal
Or
Restart your computer
If you are facing this issue on Windows 10, then please try the following:
Uncheck readonly options for the folder (if read-only reverts, login as administrator)
Open terminal as administrator (if you are facing this issue on terminal)
Switch off ransomware folder protection
Change chmod of the folder
Check if the folder is hidden or not
Disable antivirus protection (temporarily) and try this
Or move your project folder somewhere else, where antivirus ransomware protection is disable.
If nothing above works, then try the following:
https://appuals.com/how-to-fix-folder-keeps-reverting-to-read-only-on-windows-10/.
Hope this would of help.
I think that you must change the permissions recursively to the file so the user executing your script can read / write this file.
https://fr.wikipedia.org/wiki/Chmod
Restarting my computer fixed this problem for me.
I had this issue too. I'm using TFS (or VSO, Azure DevOps, etc.) for source control. I was trying to compile from .scss to .css and it couldn't open my .css. I just needed to right-click on my .css file and Check Out for Edit...
I had the error because i have already open the file before
var stream = fs.createWriteStream(outputFileName, {flags:'a'})
var output = fs.createWriteStream(outputFileName, {flags:'a'})
this is not an exact answer but may help:
i think if you want to read or readSync a file that doesn't exist you will encounter an EPERM error...
in many programming languages, any permission related error may not
directly means an actual permission issue
for example in PHP Folders (not files) must delete by php rmdir() method but if you want to do that with unlink() , u will encountered with a wrong Warning message that says "permission denied"
I was facing the same problem using the following software:
Windows 10
GitBash
Node v19
I was able to solve it opening GitBash as admin
I had the same problem, when i tried to create and write to a file using NodeJS. I thought it had to do with my windows file/folder access permissions, but after restarting my computer and running the code again, I still got the same error.
However, this time around my antivirus gave me a pop-up message also, stating that it blocked permission for Node.exe to write or open files. So once I flagged Node.exe as safe for my anti-virus program (Avast).
It worked for me. Disabling my antivirus could've also temporarily fixed it, I guess.
If you use windows 10, you must turn off Ransomware protection. Ransomware protection will prevent all folder and file changes.You can turn off it in Windows Security Center. See screenshot below:

./build.sh inari fails trying to build Firefox OS for inari device

I am trying to build firefox os on a Ubuntu 12.04 64 (4Gb RAM,30GB of free space, GCC-4.8.1 and g++4.8.1) following strictly all the steps from developers.mozilla and the true it is not working and I need help from community in the very last step, with my inari device connected in dev mode and visible from adb devices ./build.sh inari is giving me this error:
Blob setup script has changed, re-running Pulling files from
**../../../backup-inari** cat: **../../../backup-inari/system/build.prop**: No such file or directory Found firmware with build ID Pulling "`libOmxAacDec.so`" cp: cannot stat
**../../../backup-inari/system/lib/libOmxAacDec.so'**: No such file or directory Failed to pull `libOmxAacDec.so`. Giving up.
Build failed!
Build with `|./build.sh -j1|` for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
i tried also doing this rm stuff and start from the beginning with ./config.sh with the same result
This error seems to be causing because you either have a different version from what the builder is expecting. Or that you don't have root access to the device.
It is because of this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1121600
Please, report it and I could take it a look. Tell what branch are you trying to compile and any other relevant information.

NSIS script help-install without killing explorer

When I tried to un-install and install an executable foo.exe, Im geting the below error
Error opening file for writing
click abort to stop the installation
I could find that some files were failed to get deleted while un-installation.
And by using process explorer I can see that explorer.exe has still reference to some dlls of foo.exe even after unregistering them.
and killing the explorer.exe and re-start it again while un-installation solves the issue. (thru NSIS installation script).
or by setting rebook ok flag in script and ask user to re-start his machine before installing foo.exe again.
I don't think its a good solution to ask user to reboot his machine after un-installation .
Can anyone help me on how can I make sure that my installation goes fine instead of restarting explorer.exe
For registered shell extensions there is really no clean way to delete the dll's other than forcing a reboot (Or log-off if they are registered in HKCU\Software\Classes)
If that is not good enough you basically have two options:
Rename the .dll and delete it later
<HACKALERT>Inject a thread that calls CoFreeUnusedLibraries() into every process that has your dll loaded</HACKALERT>
Just killing and restarting explorer is not really an option since you don't know if some other program is also using your shell extension.

Resources