Android :: Launching ADB LogCat - Getting Intermittent Error
Oct 13, 2009Since upgrading to the v1.6 SDK, I'm getting an intermittent error when trying to launch the logcat from the command line:
>adb logcat
Since upgrading to the v1.6 SDK, I'm getting an intermittent error when trying to launch the logcat from the command line:
>adb logcat
I seem to have an intermittent error when trying to start WiFi. Mostly (>95%) of the time I get "unable to start WiFi". Occasionally it works but this is rare and usually when it has been switched off for a few days. The problem occurs when I try to start via the wi-fi widget or via the MenuSettingsWireless controls path. I'm reluctant to do a factory reset unless I really have no other option.
HTC Hero
on Vodafone UK
Firmware version 1.5
Build# 2.73.405.5
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 Related08-31 21:29:15.263: ERROR/dalvikvm(11799): could not disable core file generation for pid 11799, errno=1
Can anyone shed some light on this for me?
I'm trying to make a countdown timer. It works without a button but then it starts instantly so you can't enter a value for the start. Here is the java, as I said nothing appears in the logcat. The error occurs when the button is clicked.
package timer.test;
import android.app.Activity;
import android.os.Bundle;
import android.os.CountDownTimer;
[code]...
The xml page only has a TextView, EditText and Button.
I have an Android app modeled after the LunarLander example by Google.
I am debugging it on a real device, (Motorola Droid) with Android 2.0.
When the orientation changes, the program crashes on a null pointer Exception.
Logcat from just before crash:
CODE:.............
The first line that worries me is "Something wrong here" at 24:38.620. I have no idea what it means, But I think its due to me not reacting properly to the screen change.
Next I get a debug message that I printed myself from within my own method surfaceChanged() about the new surface dimensions.
Then I print out debug message about whether flies was null. flies is the field that eventually causes the NullPointerException. Its created once, and never written to again for the rest of the program. I know that it was not null before the crash, because it was read several times.
Does anyone have a clue how my private member variable came to be null just by these clues?
I would include code but there is a lot of it and I don't know what would be relevant.
I have one application in android when I run that application it shows that exception
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: arbitrarily rejecting large method (regs=132 count=21332)
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: rejected Lcom/ExtraCharge/Calc;.onClick (Landroid/view/View;)V
09-13 16:38:25.059: WARN/dalvikvm(269): Verifier rejected class Lcom/ExtraCharge/Calc;
09-13 16:38:25.059: WARN/dalvikvm(269): Class init failed in newInstance call (Lcom/ExtraCharge/Calc;)
09-13 16:38:34.883: WARN/ActivityManager(64): Launch timeout has expired, giving up wake lock!
09-13 16:38:34.999: WARN/ActivityManager(64): Activity idle timeout for HistoryRecord{43f8da58 com.ExtraCharge/.Calc}
I have made a game with just one activity.. I just replace the views when I want to change screen. The game runs fine for a really long time inspite of what ever I do within the game.
But once I close the main game, by calling finish on the only activity in the application, and then when I start again, within the next 30 secs it crashes telling VM budget exceeded..
When I don't have a dispose() or a delete method in JAVA.. how the, am I supposed to remove the objects used in memory.. moreover I have android:launchMode="singleInstance" in my manifest
For some reason My Files folder won't work. It's not showing in my app drawer. I can find it with FolderOrganizer and make a shortcut but I get "error while launching activity" error. Any ideas?
View 2 Replies View RelatedWe have a service. bindService() returns true. But our ServiceConnection is never called with onConnect(). The onCreate() of the service is never executed (neither is the onBind(), of course).
Except sometimes! (twice now, out of many many tries).
Remote service, local service, intent-filter, direct class invocation, "procedure" attribute, no procedure attribute, cupcake, 1.1, emulator, device ... we've tried 'em all!
We belive the service is found, and in the remote case, we see the new process always created ... but the dang service just isn't started. We aren't specifying any security settings and writing the simplest manifest entry we can....
I'm hoping someone could help me out with intermittent connections I'm getting using code with HttpsURLConnection.
The code I'm using is below:
CODE:...............
The connection works the first time everytime when I use it to pull a json file. However, when I use the connection again to send a command, it always fails the first time. It then typically works if I send the
command quickly ( within 5 seconds), but fails if I wait a while. I don't think its a SSL issue because it connects the first time correctly, but I could be wrong here. I also tried many different
variations such as adding:
CODE:.............
However, I had no luck. Any help would be greatly appreciated.
I've recently upgraded my Nexus 4, Nexus 7 and Nexus 10 all to Android 4.4 and as soon as I upgraded my Wi-Fi has been awful.The Wi-Fi is incredibly unstable, steaming media has major buffering / intermittency issues, messages sent over instant messaging apps are sometimes instant and sometimes take 30+ seconds to send.
Skype is the most telling of the issues as it randomly loses connection and my notifications literally never come through..Router Wi-Fi Settings: I've tried Channels, 1, 2, 4, 6, 8, 10 and 11
I've also tried adding
Code:
gDataInactivityTimeout=200
to the WCNSS_qcom_cfg.ini file as found:URL>...Wi-Fi is Always On, Wi-Fi Frequency is Auto or 2.4, Wi-Fi Optimization is Off.The wireless / wifi works fine on other tablets, laptops and wireless devices just my nexus devices on 4.4
I make a call and it connects but I can't hear them and they can't hear me. It doesn't matter if it is a incoming or an outbound call. Sometimes I have to power down the phone and turn it back on, the call then connects correctly. I'm totally bewildered!!! I have fresh 2.1.2/ a gumbo kernal.Any advice and help is greatly appreciated.
View 19 Replies View RelatedI installed a boot animation per the instructions here (http://androidforums.com/tips-tricks-evo-4g/109120-how-install-new-boot-animation-without-root.html. I left the "Droid" mp3 in the localdata folder, and did not alter the config file. I'm using Pseudoram's boot file from [Collection] Custom Boot Animations and Splash Screens - xda-developers.It plays the sound sometimes, and sometimes not. Anyone know why?
View 3 Replies View RelatedI have the same issue with 2 separate Vibrants, actually 3 Vibrants counting the one I took back.I have problems connecting to either the market or internet across multiple browsers while WiFi is on.With both phones, it seems this problem is intermittent and across different brands of routers at different locations.
An example is when I try to enter the market.I sometimes will get to the market home page but when I try to pull up my downloads it comes back with an error message saying connection failed.Once I turn off WiFi it works perfect in 3G, or if I leave WiFi on, go back to the home page and then try just a minute later it connects without a problem.To make matters even worse, the problem persists while using apps that connect to the internet such as The Weather Channel.The problem is very intermittent.Sometimes I have no problems connecting, while other times it won't connect at all until I turn WiFi off or even reboot the phone.Both phones behave the same way.I've gotten to the point now where I just leave WiFi turned off because it's so unreliable.I know it's not the WiFi signal strength either as it is just as likely to happen with the phone a few feet away from the router's antenna as it is when it's 50 feet away.
I'm hoping someone here with some AV knowledge can give me something to try. When I've got my Incredible hooked up to my car stereo via the 3.5mm jack, and have the car charger plugged in, there is a noticeable but intermittent high pitched hiss that comes out of the speakers. If I unplug the car charger it goes away immediately.
I've tried with the volume on the Incredible set at quiet/medium/loud levels and that doesn't seem to make any difference. My guess is that there is resonance from the power cable being picked up by the audio cable, but I've tried moving them around and it doesn't seem to help.
I have a Samsung Galaxy S GT-I9000B from Brazil unlocked from the store. Three days ago I decided to update my system (2.2) to the CM10.0.0 (4.1.2). After much sweat and hassle I discovered how do it properly with the right files. So, I flashed 2.3.3 and then CM10 and it seemed to work properly until I found out my IMEI had been corrupted. I tried the solution I found but it didn't work because on step #5 I don't find the file named ".nv_data", just "nv_data.bin.md5". I tried copying just the other but in the end it doesn't change my IMEI back. I still have a generic IMEI but it is not affecting the signal of my phone, I can still make and receive calls, but I would like to get it properly working. When I flash android 2.2 it restores my IMEI.
Problem 2
My other problem is that I keep getting these really loud and intermittent scratch noises during calls after flashing CM10. Right now I am using a dutch SIM for I live in the netherlands. Maybe that is important to mention. But I had been using android 2.2 here all along with no problems. After CM10 I get these sudden short bursts of noise during my calls. The other person can barely hear it but I hear it loudly.
In my logcat following messages, anybody clear me what is meaning of thismesg ........
View 2 Replies View RelatedI am trying to understand threads and how they work, and when, etc. I expected the pid in LogCat to be different in the background thread logs but the pid is always the same. Is the pid something other than the thread ID? If it is, is there a way to indicate the thread ID in LogCat?
View 5 Replies View RelatedHere's a snip that successfully reads off, to Eclipse LogCat, the height and width of the .PNG on the SD card:
import android.app.Activity; import android.os.Bundle;
import android.util.Log; import android.graphics.Bitmap;
import android.graphics.BitmapFactory; import android.os.Environment;
//...
Bitmap bmp = BitmapFactory.decodeFile(Environment.getExternalStorageDirectory().getAbsolutePath() + "/sample.png");
int width = bmp.getWidth(); int height = bmp.getHeight();
int[] pix = new int[width * height]; bmp.getPixels(pix, 0, width, 0, 0, width, height);
int R, G, B; for (int y = 0; y < height; y++){ for (int x = 0; x < width; x++) { int index = y * width + x;
R = (pix[index] >> 16) & 0xff; //bitwise shifting G = (pix[index] >> 8) & 0xff; B = pix[index] & 0xff;
// [This is where I'd put it. But I can't get a red line off the editor when I do anything.] } } Log.v(TAG, width + " " + height);
I can't for the life of me use Log.v() to report the value of R or G or B. Everything I'm doing draws a red line under v or something when I try. I've tried toString() and everything.
This is pretty simple: I'm using NetBeans on Linux with Android emulator 1.6. I have Logcat on my android phone, but the process of getting the messages to somewhere readable isn't smooth at all. Can someone tell me how to get Logcat running on the emulator? Is there anything I can do to see debug messages other then having to copy the apk to my phone and testing it?
View 2 Replies View RelatedIs there any way to get the file where logcat logs, and export it? I have tried running "logcat" and redirecting the output, but really it's not what I'm looking for.
View 3 Replies View RelatedIt just doesn't print anything..it's empty.
View 4 Replies View RelatedUsually I can see the exceptions that are thrown in my application via adb logcat. But they seem to get lost when thrown by code running in a somehow different Thread. I use the Smack Library to receive XMPPMessages. When the receiving thread throws a NullPointerException that is not logged. I can catch it myself and log it with android.util.Log. Is it possible to have logcat show all stacktraces from all exceptions thrown in all Threads?
View 2 Replies View RelatedIt would be immensely helpful to me if I could make a logcat app to run directly on my G1 for when problems occur on the road that I can't seem to reproduce at home (one problem in particular) Any experts out there know if this is possible? If it is what do I need to know?
View 13 Replies View RelatedI am trying to figure out why my app forces close immediately on a nexus one (recurring comment which is dragging my rating down). Ironically, I heard a rumor that if I had just a half star more (up to 3.5 from 3), I would qualify to get a free nexus one from google. If anybody has a nexus one and can connect it up to get the logcat dump of the stack trace of the error. You can find my app by searching for "Compass Ball" on the market.
View 11 Replies View RelatedI'm using the Eclipse plugin to view log output using LogCat. I want to use a filter all messages with the tag. But it doesn't work, how can I do this?
View 2 Replies View RelatedI put calls to LOGV() in my cpp file in WebKit code in andorid, but I don't see any log statements when I run 'adb logcat' in another shell. But as soon as I change it to LOGE(), I see them. Can you please tell me how can I see the log content of LOGV?
View 2 Replies View RelatedIs there any way to get crash logs from android for a released application? I'm wondering if there's some way for a user to email me logcat output so I can see a strack trace if my app crashes.
View 3 Replies View RelatedSince getting Eclipse to recognize and debug both the emulator and a usb connected device I have been unable to see any of my embedded Log.x messages appear in LogCat log. I do though still see real time system messages appear in the log. Log.x was originally working when all the debugger would recognize was the emulator. I had to tweak a number of profile and project settings to get debug to work with the device and may have inadvertently toggled something having to do with LogCat. But I don't see anything that sticks out in the menu's as possibly causing the log problem.
View 5 Replies View Related