Linux exit code 139

Android Studio emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

I solved it by going into my virtual device’s settings and changing «Emulated Performance» from «Automatic» to «Software».

I realized this was a temporary solution for me. This solution would fix the error but it would crash the simulator in seconds. Further research brought me to my answer.

This is OK if you don’t want play store but when I try to do this on an android device with play store the option to switch is not available.

for me, this helped me diagnose a problem with my hybrid (Intel/Nvidia) graphics solution in my laptop. I imagine others may be having a similar problem.

I solved this problem by changing my graphics driver from Software and Updates. Head over to Additional Drivers and Use the proprietary and tested one. Check if it helps. Thanks

I use GTX 1060 3GB and it worked for me because the operating system needed Nvidia graphics drivers. Thanks, sir!

Go to Software and Updates and navigate to Additional Drivers, wait a while and set a proprietary driver. I also solved in ubuntu

On Ubuntu 18.04 I had luck with these instructions (In particular the «sudo ubuntu-drivers autoinstall» command)

Changing «Emulated Performance» from «Automatic» to «Software» was a temporary solution for me (I am on Linux btw). The simulator would crash in a few seconds.

Instead this did it for me:

cd ~/Development/Android/Sdk/emulator/lib64/ mv libstdc++ libstdc++.bak

This solved it for me. The accepted answer had instead left the device hanging even before the boot was complete.

I have this problem to Emulated Performance = software doesn’t help, because your emulator will be broken and can not be working if your app needs more process.

I have Ubuntu 18 and install my graphics card Nvidia, and it’s solved now

for ubuntu you can try it:

sudo apt-get install nvidia-352 "nvidia-352 is an EXAMPLE In my Device" 
sudo apt-get install fglrx 

Missing GPU drivers was exactly my problem! Make sure to check this first before you try the other solutions.

Читайте также:  Что такое виртуальный терминал linux

The instructions you link specifically emphasize that ‘sudo apt-get install nvidia-352’ is an EXAMPLE. There are specific instructions for getting the correct package. Please correct your post.

A lot of times NVIDIA drivers fix the issue, but I would recommend people to disregard your apt install because at the time of reading the version commented it may be outdated(it is for your comment), instead each one has to search an up to date article explaining how to install NVIDIA drivers. In ubuntu just do what @daniel-bentes stated

For me solution was: command: ubuntu-drivers devices , and command: sudo ubuntu-drivers autoinstall source: linuxconfig.org/…

When use Linux spatially Debian and Ubuntu after update card graphic driver or etc. this problem happening often.

So you need just reboot your OS

Restarting the computer worked for me.

Changing the Emulated Performance from automatic to software made it work, but at least on Ubuntu, that has a poor performance.

I solved this issue by simply creating a new virtual device.

The problem is in the linux video card, to solve in Ubuntu 18 or derivatives, just go to «Programs and Updates» -> «Additional Drivers» and select the proprietary driver of your video card and then restart the computer. It resolved for me.

I had the same error tried starting emulator. I am installing android studio 3.5 on Ubuntu 18.04 and NVIDIAM GF119. In Software and Updates, under Additional Drivers tab, I chose the proprietary tested driver for my Graphic card. Then the emulator works.

Found everyone’s solution was not working for me. Updated video card on linux and still had the issue.

Читайте также:  Обновить python linux команда

What worked was changing the number of processor cores available to the emulator from 4 to 2.

I tried the other solutions, but this makes sense as I have 8 processor cores and may need to have several emulators open.

My current configuration is shown in the attached image my emulator configuration

This is most likely an issue with your graphics card driver, i would recommend doing a clean re-install of the driver if it doesn’t fix itself on reboot.

For flatpak users on linux, i recommend running «flatpak update» in the terminal to update your GPU dependencies for flatpak (it typically breaks if you update your GPU driver and not flatpak GPU libs), this is what resolved the issue for me.

I made this answer because switching to software rendering isn’t really a solution, it’s more of a dirty workaround, and will only waste your CPU utilization.

Источник

Segmentation fault (exit code 139) when using pthread_join

I’m doing some first steps with threads on Linux systems, and i have this error which occures on the base of a program that gets some n argument and creates n number of threads. Here is the important part of the code: The function the threads should run:

int main(int argc, char **argv) < if(argc != 3)< printf("Usage: %s \n",argv[0]); exit(-1); > int num = atoi(argv[1]), exp = atoi(argv[2]); long i; pthread_t threads[num]; pthread_attr_t attr; printf("Creating %d threads \n",num); pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_JOINABLE); for (i = 0; i < num; i++) < pthread_create(&threads[i],&attr,function,(void*)i); >pthread_attr_destroy(&attr); for (i = 0; i < num; i++) < printf("Thread #%d is %ld\n", i, threads[i]); >for (i = 0; i < num; i++) < pthread_join(threads[num], NULL); >> 

Notice the last for loop with the pthread_join function, when i comment it out the program ends fine (exit code 0), but the output is obviously wrong since not all of the threads runs function before the main process exits. When i don’t comment it out i get segmentation fault (core dumped) when trying to run using the terminal in my Linux OS and Process finished with exit code 139 when running in my IDE (CLion). I couldn’t find anything i’ve done wrong as it’s a very basic program that shouldn’t have anything hard to find, what is the problem that causes the error?

Читайте также:  Linux аналог ipconfig all

Источник

Оцените статью
Adblock
detector