Android :: Gdb Input / Output Error Remote Debugging To Android
Feb 16, 2010
I'm trying to debug an android app that call native code to do some GL rendering. The native code is existing code that I'm trying to port (and that I don't really know that well). I've got the existing code compiling, linking, and installing correctly, and I've got some native functions that call in to that code that are being correctly called from my Java code. I'm getting a segfault that I'm trying to track down, and having some problems getting gdb to set a breakpoint in the program. This is on windows XP with Cygwin - and I should probably mention I'm still learning gdb.I started with the directions at http://honeypod.blogspot .com/2008/01/debug-native-application-for-android.html; here's what I'm currently doing.Start the app in the emulator.In a cmd prompt:
> adb forward tcp:1234 tcp:1234
> adb shell
# gdbserver localhost:1234 --attach 2120
gdbserver localhost:1234 --attach 2120
Attached; pid = 2120
Listening on port 1234
In a cygwin shell:
arm-eabi-4.2.1/bin/arm-eabi-gdb.exe out/apps/app-android/libDM.so
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf-linux"...
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
warning: shared library handler failed to enable breakpoint
0xafe0da04 in AppRefCounted::unref () at ../../stlport/stl/_iosfwd.h:39
39 class basic_ostream;
Current language: auto; currently c++
(gdb) b Java_com_app_AppRenderer_onCreate
Breakpoint 1 at 0xafff1b1a: file apps/app-android/../../../app-Android/jni/DMJNI/DMInterface.cpp, line 75.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0xafff1b1a: Input/Output error.So it looks like the breakpoint gets set ok, and that the symbols are ok, but maybe the address is wrong when it tries to insert the breakpoint. I've tried several variations of different commands from the webpage referenced above, but so far, no luck.Any ideas what's going on?
View 1 Replies
Aug 8, 2010
I am developing a simple android application using eclipse.I wrote a JUnit TestCase for a class I wrote.One particular test compares two 2d arrays so see if they are equal. If they are not equal the test fails.When the test fails I would like to print out the contents of the offending array to see what went wrong. I have tried System.out.print and it doesn't show up in the console or JUnit results.What am I doing wrong?Is it even possible?
View 1 Replies
View Related
Jun 19, 2010
How to access mobile audio out in read mode?
View 1 Replies
View Related
Oct 5, 2010
Is there a "perpetual calendar" application for Android? For example, I would like to be able to enter "Third thursday in October, 2001" and output the date, input a date and output a day of the week, or input "eight weeks from next Monday" and output a date etc. I tried searching a few terms in the market and didn't come up with anything.
View 1 Replies
View Related
Sep 13, 2010
I have the following problem. I was developing in android using the eclipse and android-sdk-windows saved in an folder (e.g. C:androidandroid-sdk_r07-windowsandroid- sdk-windows and C:androideclipse-pulsar-helios-win32). But after i downloaded and installed the eclipse and android sdk again, in the after folder, i got this error message: "Failed to parse the output of 'adb version' " and can't run my application, because the emutaros that starts is not identified by the eclipse, i can't find it into "Devices" tab from eclipse. I found from the net the following http://stackoverflow.com/questions/2260118/failed-to-parse-the-output "Try closing Eclipse, issuing a 'C:UsersMohitDocumentsAndroidSDKools kill-server' command from terminal and retrying. If that still doesn't work, you could try opening Activity Monitor to see if there are any existing adb processes running, and kill them. but i am using Windows XP and i don't know how to use kill-server command from the terminal. I mean in run/cmd there are is no such a command or how can i use the second solution - to open Activity Monitor from Windows XP
View 9 Replies
View Related
Jun 8, 2010
I am trying to learn Android development, so I downloaded Eclipse Galileo and the Android SDK. However, whenever I start Eclipse, I get the error message "Failed to parse the output of adb version." In the Console/DDMS pane, the debug output reads:[2010-06-07 20:15:13 - ddms]Failed to reopen debug port for Selected Client to: 8700 [2010-06-07 20:15:13 - ddms]Address family not supported by protocol family: bind java.net.SocketException: Address family not supported by protocol family: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)[2010-06-07 20:15:17 - adb]Failed to parse the output of 'adb version'I am running Eclipse Galileo, have the most recent Android SDK downloaded, and am running Windows Vista 32-bit SP2. I am sure that the Android SDK path is correct and that all the files are there.I would appreciate any assistance anyone could provide.P.S.--If anyone could direct me to any useful Android development resources.
View 4 Replies
View Related
Feb 3, 2010
I have a game in the market and with flurry analytics, I receive all my errors. Here are some of them: 01/31/10 01:47:39 PM PST 0 classjava.lang.IllegalArgumentException parameter must be a descendant of this view 02/02/10 12:40:41 PM PST 0 class java.lang.Illegal ThreadStateException Thread already started.01 /26/10 09:25:36 PM PST 0 class java.lang. NullPointer Exception 1.0 (beta) uncaught Android 02/01/10 05:26:27 PM PST 0 class java.lang.OutOfMemoryError bitmap size exceeds VM budget 1.3 (beta) uncaught Android 01/29/10 10:23:10 AM PST 0 class java.lang.RuntimeException Adding window failed 1.0 (beta) uncaught Android 01/29/10 08:19:05 AM PST 0 class java.lang.RuntimeException Unable to start activity ComponentInfo{ digle.de. LeonardFrog/ digle.de.LeonardFrog.AHighscore}: ava.lang.NullPointerException 1.0 (beta) uncaughtAndroid 01/27/10 01:09:35 AM PST 0 class java.lang.VerifyError igle.de.LeonardFrog. AHighscore 1.0 (beta) uncaught Android I want to solve them but I need a logcat. There is the application "aLogcat" in the Market, which displays the logcat on the mobile, but I need the logcat of my users without telling them to download this app, because many people are lazy and won't do it. How can I get this logcat? Is there maybe a library, which sends me the logcat on error?
View 5 Replies
View Related
May 23, 2012
I'm trying to debug a crash I have when after I have ported a rom, here's the output:
Code:
E/AndroidRuntime( 1327): FATAL EXCEPTION: main
E/AndroidRuntime( 1327): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException
E/AndroidRuntime( 1327): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2386)
[Code] .....
0 more
Is there anyway to get
Code:
E/AndroidRuntime( 1327): ... 10 more
to actually show the other 10 lines so I can do a complete trace?
View 2 Replies
View Related
Feb 6, 2014
I want to output Android's camera output to a PC through Wifi or Internet.
I cant find a suitable app for the purpose. I did try to find one.
Closest I came to was MirrorOp Sender, but it shares screen?
I have a Galaxy S3 I9300 and a Galaxy Mini S5570
View 6 Replies
View Related
Jun 28, 2010
I am doing monkey test for my application, and I meet Remote Exception many times. I don't know why remote-invocation errors occurs. Has anyone experienced such exception?
Monkey Log snippet:
:Sending Pointer ACTION_MOVE x=-1.0 y=-3.0
:Sending Pointer ACTION_DOWN x=322.0 y=77.0
:Sending Pointer ACTION_UP x=322.0 y=77.0
:Sending Pointer ACTION_DOWN x=299.0 y=488.0
Error: RemoteException while injecting event.
Events injected: 11088
:Dropped: keys=0 pointers=2 trackballs=0 flips=0
## Network stats: elapsed time=1511978ms
(1511978ms mobile, 0ms wifi, 0ms not connected)
System appears to have crashed at event 11088 of 56000 using seed 25194847
View 5 Replies
View Related
Jul 2, 2010
New problem *sigh* getting to be quite annoyed with HTC/Android. Gone from excitement to frustration.I have Google apps for my domain with a custom email matt@mydomain.com (example)I use Exchange ActiveSync to access my emails, calendar and contacts on my phone.I have been having the same frustrations of others when things stop syncing but this is usually fixed by either putitng in a wrong password and then the right one or by removing the Exchange ActiveSync account and then readding it. Unfortunately this how now ceased to work. Yesterday afternoon my phone stopped syncing email and showed the little circle with arrows icon with an exclamation next to it. I left it overnight thinking it might have been a Google glitch or something rather than the phone but its still not working now getting close to 24 hours later.I have tried putting a wrong password and the the correct one and it still fails to sync (calendar works etc)I have tried several times removing the account and the readding it again but it still fails to do mail. Instead a little message shows at the bottom of the screen saying "Error accessing a remote resource". I google searching this on the web and also on this forum and found no results of any value or help
View 3 Replies
View Related
Aug 6, 2010
So after being dumb and installing the 2.1 leak I finally got root! Yay! But now of course my trackball is acting up really badly and I want to unroot to try to get it swapped out at Verizon. I've followed jcase's instructions successfully up to the fastboot command section. I'm getting and error "Failed (remote: not allowed)". Obviously I am in fastboot mode on my phone. Phone's screen shows
PB00100 XC SHIP S-ON
HBOOT-1.49.0000 (pb0010000)
MICROP-0111
TOUCH PANEL-MELFAS_45_17
RADIO-2.32.40.11.09
Feb 8 2010,00:08:56
FASTBOOT USB
<VOL DOWN> HBoot Mode
I am still able to access Anon's Recovery. Any thoughts?
View 5 Replies
View Related
Jul 26, 2010
added a quick demo video of our upcoming Android Infrared (IR) Remote.Initially it will support a full IR dbase of 300,000+ IR codes, IR learner for any code not in the dbase, Pre-Built GUI so it is simple to setup. Will add rs232, relays, and other tcp options also after initial release.
View 5 Replies
View Related
Jan 6, 2010
I would like to show a custom input field (specifically, one containing only 9-0 and two extra buttons containing decimal separator (, or .) and a delete button). I could create a custom IME, but (as far as I know) that would have to be set by the user as the system-wide input method. Is there a way to implement an input method and bind it to a specific input field?
View 1 Replies
View Related
Aug 1, 2010
Looking for an App to remote to my desktop.I am trying to see if I can access magicjack on my desktop and make true voip calls.
View 2 Replies
View Related
Apr 15, 2009
I have a background service which sometimes does not work properly. I need a logfile which displays me information so that i am able to find the error.But when i use Log.d() then ddms shows me only a few hours of the logfile. Is there a way to expand this? Or is there a more suitable way for my problem?
View 2 Replies
View Related
Nov 14, 2009
I have just got myself a new HTC Tattoo which is NOT carrier locked. Now I'm unable to find out how to use that to debug my application. Is is possible to do that on an "unlocked" HTC Tattoo? If so, can someone point me to some resource outlining how to do that?
View 3 Replies
View Related
Sep 20, 2010
I've got a Nexus One running a debug version of my application, and I just today downloaded and installed the 0.9.8 version of the SDK tools, and I swear that Debugging latency has increased incredibly. I never bothered to measure the overhead before the upgrade because I always found the phone's debugging overhead to be small enough to not affect matter. Well, now I have AI code which runs at ~10 MS standalone taking 300-400MS through debugging. A 40X performance loss is not something to cough at. Is it just me not seeing the performance loss previously, or has something broken?
View 2 Replies
View Related
Jul 14, 2010
I am not sure how is this possible?But we would like to debug the apk files without having the source code (source code lies with developers).But if something breaks I would like to report it to the developers. We would like to report the crash logs and the normal info about the app.
View 3 Replies
View Related
Feb 20, 2009
I can debug the Android Java code using eclipse and using the Remote Java Application debug configuration. This does not step into C/C++ code however as expected. I understand I have to attach the gdbserver to do this. Can someone provide a step by step tutorial on how to debug the native code of Android?Is there a eclipse plugin that makes this easier?
View 3 Replies
View Related
May 18, 2010
I have an app which, for the last 12 hours or so, I can't NOT launch in debug mode on my handset. No matter what I do, it shows the "Process ... is waiting for the debugger to attach" dialog, and the process appears with the little green bug icon in DDMS. Never seen anything like it.Here's what I've tried: - Using the "Run" command, not "Debug", from Eclipse (duh) - Rebooting all hardware - Doing a clean install on the handset - Setting android:debuggable="false" in the manifest.That last one's freaking me out. If I can't turn off debugging for a production build, I can't distribute the app. And it's currently my top earner in the Market.Anybody got any ideas? About the only other thing I can think to try is a clean reinstall of Eclipse and the SDK, but that's enough of a PITA that I'm hoping I don't need to go that route.
View 5 Replies
View Related
May 4, 2009
I am able to see the logs generated from java program (using Log class or System.out.println) using adb logcat.Can anyone tell me how to see the printf/cout statements in C++ application for android.
View 2 Replies
View Related
Jan 29, 2010
I know that, to be able to sign a package with your own keystore, you have to use the export from eclipse. However, its not easy to keep doing this when you're still debugging the application. Since i have external libraries that uses another keystore and use the shareUserId, it would be reasonable to let, in eclipse plugin, you debug an application using any keystore.Any tips of how to make debugging easy with a private keystore?
View 4 Replies
View Related
Dec 24, 2009
I have tried to debug in my device (HTC Hero) that has android 1.5 (I think, and even I don't know how to update) and well.I have right checked the debugging option on the mobile adjustments of apps. So when I click on run, it goes fine but when I click on debug (all of this in eclipse) it does the same actions that it does in the run option. So I cant see it step by step.
View 8 Replies
View Related
Oct 16, 2010
I've turned on USB debugging.I have the latest HTC Sync and android SDK components.I'm using Eclipse 3.5 on windows XP. I'm running Android 2.2, and am asking for 2.1 as the minimum in the debugger.I work in Eclipse/Java just about every day, and have for several years.I'm even writing an Eclipse plugin at work as I type this neither Eclipse nor Java are new to me by quite a stretch.When I start a debug session for the "Skeleton App" sample project, I can see my Evo, and the activity launches (with any freshly saved changes), should I select it.I have tried different android connection types (charge only, disk drive, HTC Sync, and USB tethering) to no avail. I've tried Eclipse 3.6 for a bit before yielding to the inevitable and reinstalling 3.5. I monkeyed with the emulator for a while but ran into a different set of issues (I had to reboot the emulator every time I wanted to make a change... Eclipse's auto-build/hot-swap has me spoiled).Is there something I can add to (or remove from) the AndroidManifest.XML to deal with this? A magical incantation perhaps? Must I pray towards San Jose three times a day on a rug woven from kernel gurus' vast and scruffy beards? Is my Evo not Kosher? Must I be "sky clad" while debugging? Shall I teach my laptop to genuflect?
View 3 Replies
View Related
Oct 27, 2010
I want to run and debug my Android apps on my HTC Incredible.Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Hardware Update Wizard".But it doesn't.When I connect my phone it's visible as a drive letter and its SD card is visible as a second drive letter and I can transfer files.But Hardware Update Wizard doesn't launch. Nor is it already connected if I go to my SDK tools directory and do "adb devices" it returns blank.So what do I have to do to debug on my phone?
View 2 Replies
View Related
Nov 29, 2009
When I run my app on my phone from eclipse, it always runs in debug. This has only recently started to happen. I guess I must have inadvertently changed a preference or something, but can't work out what. Does anyone know how I can switch it back so I can run without debugging?
View 2 Replies
View Related
May 15, 2010
Is there a way to trace through function calls at the lowest levels of the Android system? Right now when I debug in Eclipse, it goes through the source files that are located inside the frameworks folder, but is it possible to go even lower? For example show what functions are being called from the libcore folder. I am also interested to find how it communicates with the linux kernel at the bottom of the layers. Is there a way to do this?
View 3 Replies
View Related
Oct 19, 2009
I want to get the booting log. But when I use the logcat, I can't get the whole info. In file dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/ provider/jsse/SSLParameters.java, I added "java.util.logging.Logger.global.log(java.util.logging.Level.SEVERE, "SSLParameters.getDefault() is called");" in the function getDefault () . But when I use the logcat, I can't get the sentence "SSLParameters.getDefault() is called". I can test that the function is surely called. Why? How can I get the info?Thanks.
View 2 Replies
View Related
Sep 24, 2010
Have a video in avi format I want to watch on the tv but the default player doesn't play avi. Are there any players out there that plays avi that will let me output avi through hdmi onto the tv?
View 3 Replies
View Related