Unknown sequence number while processing queue - android

I have Ubuntu 13.04 64 bit with jdk 6. I am trying to run a "helloworld" example of an Android program in the emulator that I created and when I run the program from Eclipse, it says:
[Emulator] [xcb] Unknown sequence number while processing queue
[2013-06-03 17:23:40 - Emulator] [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[2013-06-03 17:23:40 - Emulator] [xcb] Aborting, sorry about that.
[2013-06-03 17:23:40 - Emulator] emulator64-arm: ../../src/xcb_io.c:273: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
[2013-06-03 17:23:42 - FirstAndroidApp] emulator-5554 disconnected! Cancelling 'com.example.firstandroidapp.MainActivity activity launch'!
Do you have any ideas?

Please follow https://stackoverflow.com/a/25862648/787399 , This could be due to owenership or permission denial.

Related

Emulator doesn't start in eclipse

I've tried to find answers and similar problems, but nothing has fixed the problem.
I created a project and wanted to run the emulator to check if everything is working fine. But the emulator doesn't start up. It gives the following ouput, in console:
[2015-01-08 10:20:06 - MTNInfoHub] ------------------------------
[2015-01-08 10:20:06 - MTNInfoHub] Android Launch!
[2015-01-08 10:20:06 - MTNInfoHub] adb is running normally.
[2015-01-08 10:20:06 - MTNInfoHub] Performing com.mtninfohub.MainHub activity launch
[2015-01-08 10:20:33 - MTNInfoHub] Launching a new emulator with Virtual Device 'test'
[2015-01-08 10:20:33 - Emulator] ko:Could not create temp file for system partition image: %s,size=0x%llx
[2015-01-08 10:20:33 - Emulator]
Please help me.
Running on centos, 32 bit architecture
Had this problem with Android Studio. To fix it, I just ran Android Studio as administrator.

Run Android project in eclipse

I just started with my first Android app. In Eclipse, I made a new project Hallo Android and when I try to run without any changes, I get this message:
[2013-01-21 16:20:31 - Hallo Android] ------------------------------
[2013-01-21 16:20:31 - Hallo Android] Android Launch!
[2013-01-21 16:20:31 - Hallo Android] adb is running normally.
[2013-01-21 16:20:31 - Hallo Android] Performing com.hurryapp.halloandroid.FirstActivity activity launch
[2013-01-21 16:20:31 - Hallo Android] Automatic Target Mode: launching new emulator with compatible AVD 'ICS_HVGA'
[2013-01-21 16:20:31 - Hallo Android] Launching a new emulator with Virtual Device 'ICS_HVGA'
[2013-01-21 16:20:58 - Emulator] Failed to allocate memory: 8
[2013-01-21 16:20:58 - Emulator]
[2013-01-21 16:20:58 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-01-21 16:20:58 - Emulator] Please contact the application's support team for more information.
ADV is running. Please help.
Please refer to the following thread:
Failed to allocate memory: 8

NAND error in Hello World project in the official Android developer tutorial

I'm working on the Hello World project at http://developer.android.com/resources/tutorials/hello-world.html
The trouble comes when I run the application. The sequence of messages I get is something like:
[2012-04-30 15:13:19 - HelloAndroid] ------------------------------
[2012-04-30 15:13:19 - HelloAndroid] Android Launch!
[2012-04-30 15:13:19 - HelloAndroid] adb is running normally.
[2012-04-30 15:13:19 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2012-04-30 15:13:19 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2012-04-30 15:13:19 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2012-04-30 15:13:25 - Emulator] NAND: could not write file /tmp/android-jhsu/emulator-7iTL7m, File exists
What exactly is stopping the process from executing properly? What do I need to do to fix this?
UPDATE 1:
OK, I tried your suggestions about clearing the avd.
I went into my android_sdk_linux directory and entered "tools/android list avd". The output was:
Available Android Virtual Devices:
Name: my_avd
Path: /home/jhsu/.android/avd/my_avd.avd
Target: Android 4.0.3 (API level 15)
ABI: armeabi-v7a
Skin: WVGA800
So I entered "tools/emulator -avd my_avd -wipe-data". The output was:
NAND: could not write file /tmp/android-jhsu/emulator-5FHEn7, File exists
But I looked in the /tmp/android-jhsu directory and saw no file at all, not even a hidden file.
Where do I go from here?
I was able to fix it exporting ANDROID_TMP
export ANDROID_TMP=/home/myuser
For me at least, I'd let my disk run out of space without realizing it.
It was just coincidence that this was the first item that failed.
It's a real disturbing situation when error can't completely describe problem in detail!
finally I figured out all this kind of error messages ("File Exists" and "There is no space") are due to small amount of mounted space on /tmp folder.
in Linux try mount and you'll see specified parameters of tmpfs and /tmp
changing $ANDROID_TMP value is not a proper solution and even doesn't work at all.
try editing fstab
sudo gedit /etc/fstab
and increase /tmp size to a larger value that makes sense to you (like:1500M)
then reboot system
PS: It's not IDE-dependent (Eclipse or Android-Studio) but something that deal with AVD Emulator

android app won't install

I recently bought a couple of books on android programming and have been having a terrible time getting anything to work. I finally got one of the books sample code to show up. I noticed that when it worked that in the eclipse console it showed installation logging. In everything else I've tried it never gets to that point. All I ever get is what is shown below. Does anyone know why it doesn't continue to the installation point?
I also noticed that in the code that does work, there's a folder structure in the bin directory that matches the src directory.
src>com.deitel.doodlz
bin>com>deitel>doodlz - contains all the class files
In my project, there is no folder structure like this in my bin directory. Is there something else I need to do besides just hitting the run button? Do I have to do some type of build first? Thanks.
[2012-03-12 21:21:52 - Now2] ------------------------------
[2012-03-12 21:21:52 - Now2] Android Launch!
[2012-03-12 21:21:52 - Now2] adb is running normally.
[2012-03-12 21:21:52 - Now2] Performing my.android.stuff.Now2Activity activity launch
[2012-03-12 21:21:52 - Now2] Automatic Target Mode: Preferred AVD 'android_2_3_3' is not available. Launching new emulator.
[2012-03-12 21:21:52 - Now2] Launching a new emulator with Virtual Device 'android_2_3_3'
[2012-03-12 21:21:57 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-03-12 21:21:57 - Emulator] emulator: emulator window was out of view and was recentered
[2012-03-12 21:21:57 - Emulator]

Running first Android application - error message

I am getting this error when I am trying to launch my first Hello World Android application. I am doing the tutorial based on Sams Teach Yourself Android Application Development in 24 Hours.How can I resolve this?
[2011-08-18 02:33:28 - droidapp] ------------------------------
[2011-08-18 02:33:28 - droidapp] Android Launch!
[2011-08-18 02:33:28 - droidapp] adb is running normally.
[2011-08-18 02:33:28 - droidapp] Performing com.droid.app.DroidappActivity activity launch
[2011-08-18 02:33:28 - droidapp] Automatic Target Mode: Preferred AVD 'firstdroid' is not available. Launching new emulator.
[2011-08-18 02:33:28 - droidapp] Launching a new emulator with Virtual Device 'firstdroid'
[2011-08-18 02:33:30 - Emulator] invalid command-line parameter:
Files\Android\android-sdk\tools/emulator-arm.exe. [2011-08-18 02:33:30
- Emulator] Hint: use '#foo' to launch a virtual device named 'foo'.
[2011-08-18 02:33:30 - Emulator] please use -help for more
information
Change the path of the SDK your path to Program Files\Android\android-sdk tools/emulator-arm.exe. Put the SDK directly in the drive, that is, d:\Android\android-sdk-tools\emulator-arm.exe.
Note: also remove spaces from the path by renaming the folder name.
Use Eclipse and the Android plugin to make this via a graphical user interface. That would be better for a newcomer.

Categories

Resources