Hello everyone ... Yesterday i tried to take screensot with DDMS.bat like usually... But after launch ddms.bat and plug DHD into PC ERRORs appears.
First is adb.exe stopped working http://screenshooter.net/2759574/gjoqvjp
Second: Microsoft Visual C++ Runtime Error http://screenshooter.net/2759574/sqhiuql
third: TODO: <File description> .... http://screenshooter.net/2759574/pxrrsbs
if i connect DHD without run ddms my adb.exe is working fine i think (adb devices recognize SN of my device) but afterrun ddms adb is crashing and other errors appear :/
Log in cmd window looks like:
12:39:39 E/adb:
12:39:39 E/adb: This application has requested the Runtime to terminate it in an unusual way.
12:39:39 E/adb: Please contact the application's support team for more information.
12:39:44 W/DeviceMonitor: Failed to connect to client '4505': timeout
12:39:47 E/DeviceMonitor: Adb connection Error:
12:39:47 W/DeviceMonitor: Failed to connect to client '4795':
12:39:48 W/DeviceMonitor: Failed to connect to client '4808': Connection refused: connect
12:39:48 E/DeviceMonitor: Connection attempts: 1
12:39:48 E/DDMS: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.android.ddmlib.AdbHelper.executeRemoteCommand( AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Devi ce.java:276)
at com.android.ddmuilib.SysinfoPanel.loadFromDevice(S ysinfoPanel.java:159)
at com.android.ddmuilib.SysinfoPanel.deviceSelected(S ysinfoPanel.java:126)
at com.android.ddmuilib.SelectionDependentPanel.devic eSelected(SelectionDependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThrea d.java:1666)
at com.android.ddmuilib.DevicePanel.notifyListeners(D evicePanel.java:752)
at com.android.ddmuilib.DevicePanel.notifyListeners(D evicePanel.java:740)
at com.android.ddmuilib.DevicePanel.access$1100(Devic ePanel.java:56)
at com.android.ddmuilib.DevicePanel$1.widgetSelected( DevicePanel.java:357)
at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
at com.android.ddms.UIThread.runUI(UIThread.java:492)
at com.android.ddms.Main.main(Main.java:98)
12:39:49 W/DeviceMonitor: Failed to connect to client '4818': Connection refused: connect
12:39:49 E/Logcat: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.android.ddmlib.AdbHelper.executeRemoteCommand( AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Devi ce.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPane l.java:527)
12:39:50 E/DeviceMonitor: Connection attempts: 2
12:39:50 E/EventLog: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
Click to expand...
Click to collapse
I was looking for solution everywhere ... Reinstalled JDK (Java), SDK (revision 9), .NET Framework 4, Microsoft Visual 2010 ... What else can i do?
I`m using Windows 7 Ultimate x64, and on DHD ROM: Android Revolution 2.0.9 (but it is not ROM related... i flashed stock 1.32 and the same) However ... few weeks ago ddms was working fine without any errors :/
PLEASE for ANY help.
MOD:
Sorry if in wrong seciotn but didn`t know where can i ask for it.
The new SDK has a different path to adb.exe and its DLL files, so you might want to include:
c:\android-sdk-windows\platform-tools\
to your global PATH variable.
jkoljo said:
The new SDK has a different path to adb.exe and its DLL files, so you might want to include:
c:\android-sdk-windows\platform-tools\
to your global PATH variable.
Click to expand...
Click to collapse
Thanks for reply But i`ve already added this to PATH ... Forgot to write about it.
I wrote above ADB separately works fine ... but via ddms, adb is crashing.
Try to install new HTC Sync and copy files from platform-tools to tools.. After that & adding platform-tools to PATH my DDMS started working, and still works fine. I updated my SDK to the newest version.
Normally the path to adb in PATH is c:\android-sdk-windows\tools, as you may know, so I just added platform-tools path after it.
What do you mean when U say new HTC sync? I got sync for desire HD from SD.
Sent from my Desire HD using Tapatalk
Ok found newer version of HTC Sync ... installed it ... added again PATH/ copied files from platform-tools to tools ... but still the same :/ Anybody? Any ideas? It drives me crazy :/ Wrrrrr Now i`m not sure if any operation with adb, fastboot are safe for me For example radio flashing... With errors like this i`m afraid of bricking my device during radio flash...
New HTC Sync from HTC website. And you do not need a working SDK to flash a radio, just get the radio flash package from flashing guide.
You could try to remove the whole SDK and install SDK starter package from Android website.
I'm a developer experiencing the same issue, Htc Desire HD and adb work properly outside eclipse, but with eclipse it crashes. I have too Win7 64 bit and the newest version of SDK. I think something went wrong in the last update. I'm going to install latest skd in a XP to check what happens, before trying to reinstall eclipse and the SDK on my win7 machine.
Did you add C:\android-sdk-windows\platform-tools to your global PATH variable as suggested earlier in this thread? It fixed adb for me, and I use eclipse, too.
jkoljo said:
Did you add C:\android-sdk-windows\platform-tools to your global PATH variable as suggested earlier in this thread? It fixed adb for me, and I use eclipse, too.
Click to expand...
Click to collapse
As Jkoljo has said it has fixed my problem when new SDK was released.
Putting the path to the platform-tools and ddms worked after that.
Or try: cd "C: \ your SDK directory \ tools \ ddms.bat
If ddms is in platform-tools then: cd "C: \ your SDK directory \ platform-tools \ ddms.bat
I have the same problem. My ADB and HTC sync just works fine but when I run DDMS to capture a screenshot adb always crashes. I added both directories to the path variable. My system is XP 32bit.
With the old version of the sdk I didn't had any problems at all.
Any suggestions?
Mav3ric144 said:
I have the same problem. My ADB and HTC sync just works fine but when I run DDMS to capture a screenshot adb always crashes. I added both directories to the path variable. My system is XP 32bit.
With the old version of the sdk I didn't had any problems at all.
Any suggestions?
Click to expand...
Click to collapse
I gave up Didn`t solve it It still drives me crazy :/:/ The strangest thing is that ddms was working fine few (3) weeks ago. Suddently i connected to capture a screen and? buuuu :/ didn`t work -> adb.exe error :/
I DO NOT TALK HERE ABOUT NOT WORKING ADB
My ADB is working fine until i run ddms.bat. After that adb error appears :/
Hi again,
(Yes I have added the PATH variable)
I have been working in different machines to check if it was a room (AR HD 2.0.9), system or HDH itself problem.
I installed for the first time eclipse+SDK+ADT on a XP 32 bit and I got the same problem I have in my W7 64 bit. Impossible to connect.
Then I installed eclipse+SDK+ADT on a ubuntu 10.10 32 bit and all worked fine after I realised that once I started eclipse I had to open the console with root user, kill adb server and restart the adb server again. After that I had no problem debuggin my applications on the HDH with eclipse and ddms.
So I came back to my Win 7 64 bit and I did the same procedure. Now ddms seems to connect properly with the HDHD but when I try to debug anything I got a new error:
Failed to install myapp.apk on device 'HT0BHRX00568': Unable to open sync connection!
[2011-02-08 00:15:09 - xxx] java.io.IOException: Unable to open sync connection!
[2011-02-08 00:15:09 - xxx] Launch canceled!
I think there has to be something related with the windows installation and the sdk recently update.
Anyone has any new clues??
Thanks
Same here. It's driving me crazy. The funny thing is that it does work intermittently and then just stops again. Rebooting the PC and/or the phone doesn't fix it.
Please post if you find the issue.
I gave up Didn`t found any solution for this WRRRRRR thats the worst :/ There must be a way to fix it !
I'm still trying to solve it. As a temporary solution (I hope!) I'm developing using Eclipse on Ubuntu 10.10
I'm using Windows and not going to change my OS just for ddms ... Arrrrggg it was working on windows and must work again ;(
Tapnąłem z HTC Desire HD.
DDMS error
This seems to be related to and update (either Java, Android SDK or both)
The Java library is not handling IPv6 sockets.
In Linux, sudo "echo -n 0 > /proc/sys/net/ipv6/bindv6only" will turn off the IPv6 binding.
I am not sure what the equivalent method in Windows is.
for reference: http://stackoverflow.com/questions/...ent-ddms-from-command-line-not-seeing-devices
I think Java ... Cuase i didn`t update SDK until this error occured :/
Maybe Windows or Java updater did the update and voila ...ddms suddently stopped working. Maybe someone will find solution for Win users ...
Hi, I have disabled ipv6 on win7 as you suggested and nothing changed. Maybe in August was, but right now, I don't think It's ipv6 related because Eclipse works properly on a Ubuntu 10.10 fully updated with ipv6 running.
Thanks any way
Hi,
Here is the fourth version. Its not upgradeable, so delete the old /sdcard/ubuntu before, except you know what you are doing and are able to fix upcoming problems by upgrading.
[Hints]
To remove the stupid overlay scrollbars, goto ubuntu shell and type
Code:
apt-get remove overlay-scrollbar liboverlay-scrollbar*
in the next version setupgnome will automatically do that, all which setup gnome befor, do that to get the normal scrollbars.
in gnome goto system -> preferences -> appearance. there to the fonts tab, and there to details. use a resolution of 120 dpi, so you it is a bit more touch friendly
[Requirements]
Archive from http://www.bisme.net/files/xda/ubuntu/ubuntu_b6.tar.gz
Optionall an VNC client like android-vnc
[step by step]
Install the kernel (without you'll not have full functionality, but it'll work)
Extract the ubuntu archive to /sdcard/ubuntu (in adb shell goto sdcard and type: "tar xzf ubuntu_b6.tar.gz")
cd to this dir and type
Code:
su
then
Code:
sh ubuntu install
you will be asked a few questions, if you have no plan just press always enter. after reboot open a terminal and type
Code:
su
then
Code:
ubuntu start
optional if you want gnome via vnc
Code:
ubuntu setupvnc
and
Code:
ubuntu setupgnome
this still takes long, you are installing here almost the complete ubuntu via internet. that are a few hundred megabytes of downloading and over one gigabyte of extracting and installing. leave with exit and on android shell type (first time it asks for a passwod)
Code:
ubuntu startvnc
then connect to it via: localhost:5901 using a vnc client and the password you set.
[what you got]
you start the ubuntu subsystem with ubuntu start (still chroot)
with ubuntu setupvnc you install vnc service
with ubuntu setupssh you install ssh service
with ubuntu setupgnome you install gnome
with ubuntu setupkde you install kde (if you do so, you need to modify inside ubuntu /usr/bin/vnc)
with ubuntu shell you open an bash session
with ubuntu screen you open an persistent bash session
with ubuntu startvnc you start the vnc service
with startssh inside ubuntu shell you the start the ssh service
with ubuntu stopvnc you stop the vnc service
with stopssh inside ubuntu shell you the stop the ssh service
with ubuntu stop you stop (is rebooting)
with ubuntu uninstall you uninstall the script from system(directory /sdcard/ubuntu stays)
in ubuntu you can access:
android's /dev bound to ubuntu's /dev (fdisk /dev/block/mmcblk0 is working fine(sdcard). don't touch /dev/block/mmcblk1 or you'll kill your android system, maybe your whole xoom )
android's /system bound to ubuntu's /android/system
android's /data bound to ubuntu's /android/data
android's /mnt/sdcard bound to ubuntu's /adnroid/sdcard
[working]
With android-vnc Gnome (bluetooth keyboard and mouse)
Firefox 4
Chromium Browser
LibreOffice
Gnome Terminal
SSH Daemon
"D" key needs to remove the gnome keyboardshortcut uses "D" (just open vnc, goto a textfield and type d then you know what I mean )
and a lot more
[not working]
Ubuntu Software Center (use Synaptic instead, find it in the system menu)
[the tecnical side]
Ubuntu Natty Narwhal (11.04) from http://elinux.org/BeagleBoardUbuntu
dd for creating an image (no size limit anymore)
image formatted with ext2
adb push /sdcard/ubuntu/img/ubuntu.img (android shell has gunzip)
chroot env
tightvnc, gnome-session
different kernel features which i'll list here later
[changelog]
Beta 6
small changes in the scripts to ensure compatibility with other roms and devices
you can choose now between UBuntu 11.04, 11.10 and 12.04 Beta2
[next]
providing preinstalled images for gnome, kde and xfce
app instead script
[ideas]
weirdx
wayland
Have Fun
Ralph
GhostOfTheNet said:
Hi folks,
Actually I'm poking around with the common "How to get ubuntu onto xoom", but with an own img file i created based on the maverick arm minimal archive. Now I'm installing unity, but in weekend I'll try to make the installation, configuration, ... more userfriendly. maybe I'll build a small app doing thinks like starting, stopping, starting a terminal with the chroot and so on. I've no plan at this moment what I'll do exact. But you can say me what you would like to have, so I know if there is a need for something. I think with the next ubuntu using something based on opengl as replacement for x and the promised touch support, it might be relly interesting to have in a chroot env and maybe write something like a wrapper for androids opengl es api. in this context maybe also a port of the android sdk to linux arm would be very interesting.
Regards
Ralph
Click to expand...
Click to collapse
I just posted in the general forum about this lol. I would love maverick meerkat on the xoom. I'm sure the software center wouldnt work, but if you could somehow incorporate compiz fuzion, along with all of the standard apps, that would be the sh*t. Good luck man!
Got it to run on gtab but not sure how to do it on xoom.
Sent from my Xoom using XDA Premium App
i have it already running, but I'm not getting the f*** unity running, because it needs opengl... a bit bad with tightvncserver
so i decided to jump over and try directly this out:
http://rcn-ee.net/deb/rootfs/natty/ubuntu-natty-alpha3-r0-minimal-armel.tar.xz
the omap4 is an arm cortex a9 processor, so it should be binary compatible.
wish me luck, if it will work you will have today a howto, otherwise i'll go back to 10.10 and search for another useful desktop.
edit: apt is working fine with maverick
regards
Ok, so far so good. Ubuntu 11.04 is basically running, all is working fine, but the repository is buggy, so apt is not letting me install unity.
Besause today i'll not google for a missing lib, let see further tomorow. Hopefully the repositories are fixed then.
I'm uploading now a file called ubuntu.zip
To install it do the steps i'll write now in the first post. (the setup is not tested, so you may still need your knowledge)
Regards
Sent from my Xoom using XDA App
Hey Ghost -- thanks for your great work on this!
One thing I was wondering -- would it be possible to break out your instructions on how to do this from scratch? I'm interesting in putting together my own version (probably a minmal Ubuntu 10.04 install), and would really appreciate the source "steps".
From what I've read, it looks like it's a matter of grabbing the right kernel (I thought I saw a recent one on the tegra development site), bootstrapping the right debian-based arm-compatible distro, and copying that over to the device with the right script to get it setup. I'd just love it if I could piggyback on your fine work
GhostOfTheNet said:
It's alpha, so nothing for you if you have no plan whats going on here.
Archive: http://www.bisme.net/ubuntu.zip
Needed:
Rooted xoom with busybox installed
Steps:
1.) Extract the zip to /sdcard/ubuntu
2.) Open a terminal su, cd to this dir and type
./setupubuntu (sh*** i forgot to change the file, all cp commands are not working for some reason, needs to be
cat filename > /system/bin/filename
3.) ... ehm fin
(always su before)
If you replaced the cp, you can directly type for example bootubuntu, if not you need to be in dir /sdcard/ubuntu and say ./bootubuntu
After ubuntu booted(real only mounted) you can start a bash shell with shellubuntu. Unmount it with shutubuntu(in most cases will fail, then you need to reboot before you can say bootubuntu again)
Ehm, yes... i love my xoom :-D most of the time i worked on that... my pc i almost didn't need. Small tipp, it is worth its 4 dollar, better android terminal. Without bash this would be the hell.
Regards
Ralph
Click to expand...
Click to collapse
Man you are the best. I really really want to get this up and running but i cant get through setup. idk how to install... this is not my area of expertise lol. help?!
edit: i guess for clarification, after i type in the cat command it tells me write: no space left on device
Is the touch screen working
Sent from my Evo 4G using Tapatalk Pro
Ok, first of all, this is not a rom. Thats not needed in this case, because with linux more installations can share the same kernel. Android has a linux kernel, ubuntu has one. Google for chroot
This is not an attemp to replace android, just to enhance it a bit
In this state it's just something like a technical preview. Give me a few days. For now only advanced linux users wich understands whats happening there can do something with it.
Concerning a minimal ubuntu, this is now a minimal installation.
Regards
Sent from my Xoom using XDA App
After unity 2d is not really working at this moment, I'm actually preparing a version with icewm and lxde. Post will come in a few hours.
Regards
Sent from my Xoom using XDA App
What about Enlightenment?
http://www.linuxuk.org/2010/02/the-new-ui-for-arm-based-ubuntu-devices/
i'm installing it. lets see.
the reason why it's still not posted, i have a problem with the xstartup file of tightvnc. for some reason it is not running the commands for the ui, so there is just an empty xserver in vnc until i start icewm lxde manually. i think it would be the same with efl, and i had until today to less time to check out whats wrong.
edit: netbook-launcher-efl + metacity + maximus is looking fine
Is there any way to not use VNC? Can you dual boot or otherwise get into X ?
or possibly something like freenx client on android maybe??? in hopes that it's faster than vnc. if we can't boot into ubuntu.
edit - scratch that, i read you need X to use freenx... kinda defeats the point there.
i thought there was something else though that fowards all the window data over like lightning fast.
I found until now two possibilities but both needs much work. First taking the wayland xserver client and port it to android, or port weirdx to android.
Sent from my Xoom using XDA App
Hmm... so back to the dual boot question... What about something like this guy did?
http://androidforums.com/samsung-i7500/81090-debian-dualboot.html
https://code.google.com/p/linux-on-android/wiki/BasicSteps
Would that also work on the XOOM?
Me personally, I'm not interested in another Linux Distri as main System
1. I would miss the android functionallity and feel, because of that I would never boot Ubuntu.
2. Only android has the needed touch support for a tablet. Maybe this changes i future ubuntu releases.
Because of that my primary target is a more seamless integration of a ubuntu subsystem in android, so we can use many beloved functions without much work. So there is the best of both worlds in the same time avaliable.
Sent from my Xoom using XDA App
Makes sense. My motivation for research and all this is that I want to do (light) web development and server administration on the tablet as well. Of course, buying that bluetooth keyboard makes it all feasible and I'm not looking to do heavy amounts of work on it, but I want to ditch my netbook. For starters, the tablet lasts longer in terms of battery life and the form factor is better.
Other than that, to me, tablets serve merely as an entertainment purpose (unless maybe you're using it to bill people or for a sales pitch/meeting) and I can't justify the cost. A $600 travel Scrabble is retarded. So I think tablets need something like Ubuntu running on them in order for them to be a more productive device that is a justifiable expense.
Right now the biggest thing that I'm thinking about is gedit and git. If I can get those two... Then I think I'd be pretty much set. I think there's actually two or three text editors for Android as is and I might be able to use those provided I could get git for Android.
The graphical user interface isn't the most important thing so I can even live w/o the VNC. Having a local webserver would be rad, but not a high priority since I can use git to update a server on the net.
If you have any ideas, and I know it's getting somewhat off topic, but your research is really the crux of my situation...I'd appreciate it. Thanks.
--edit ok, so i found www.cloud9ide.com which will cover me I guess. but still I want more power under the hood. I really appreciate your work efforts! Thanks.
updated useful for people which knows whats going on
deleted. got it. Thanks! this is awesome. great work!
okey im needing little help now, i just installed 64bit ubuntu to start practicing how to compile roms etc.....but now when i have zip on my computer finally, my nexus dont want to show itself anywhere on my pc. i followed these guidelines without succes "# sudo gedit /etc/udev/rules.d/99-android.rules" and added "SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0666", OWNER="your-login" # MTP mode with USB debug on" but obviously changed login and ATTR. also with ADB devices command my nexus is there, but should there read nexus instead of random numbers and letters?
E: got it working by following this -> http://bernaerts.dyndns.org/linux/74-ubuntu/268-ubuntu-automount-any-mtp-device
I'm trying to turn an Ubuntu Touch installation into a more normal desktop linux setup, but I can't seem to get a usable X server. I have roughly done this:
install MultiRom
install Ubuntu Touch
start Ubuntu Touch
connect to Ubuntu Touch with adb
shut down the Ubuntu Touch interface
Code:
service lightdm stop
now I can play a video via the kernel framebuffer driver, this works ok
Code:
mplayer -vo directfb -ao null bbb.ogg
I can also start an X server:
Code:
X
the screen turns black and I try to connect to it from a second adb:
Code:
xeyes -display :0
but the screen stays black
when I kill the xeyes with Ctrl-C, I do (usually) see the eyes become visible
I can also observe that only upon Ctrl-C two frames are being counted here
Code:
watch -d grep -H . /sys/kernel/debug/msm_fb/0/frame_count
Anybody has an idea or a pointer what it takes to make the X server work properly?
I can do basically the same in a Lil'Debi chroot inside of Android with the same results.
install Lil'Debi
start Lil'Debi
install Debian inside Lil'Debi
start Debian
connect via adb, stop the Android UI and attempt framebuffer driver usage:
Code:
su
stop
/debian/shell
mplayer -vo fbdev bbb.ogg # plays ok
X -verbose :0
connect a second adb and start an X client:
Code:
xlogo -display :0
the screen stays blank
Ctrl-C xlogo makes the image become visible on the screen
Xorg.log here: pastebin.com/M5BXZ9F5