Re: [android-developers] End user ANR stack trace has no line number
On Thu, Jan 24, 2013 at 10:42 AM, Peri Hartman wrote: > That makes sense - I can simply look at the log file and see if the stack > trace contains line numbers. From that I should know whether I setup > Proguard correctly, right? Presumably. It depends a bit on what you did with your ProGuard setup -- you may need to use ReTrace to translate the stack trace into something usable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
That makes sense - I can simply look at the log file and see if the stack trace contains line numbers. From that I should know whether I setup Proguard correctly, right? On Thursday, January 24, 2013 7:29:52 AM UTC-8, Mark Murphy (a Commons Guy) wrote: > On Thu, Jan 24, 2013 at 10:23 AM, Peri Hartman > > > wrote: > > Please keep in mind I'm trying to test whether I've setup Proguard > > correctly. Thus, I need to see a stack trace sent by the end user to > the > > developer console. > > The stack trace is the same no matter where it comes from LogCat, the > Developer Console, BugSense, etc. AFAIK. So long as you are testing > your production APK on the device, the stack trace as seen in LogCat > should be the same as what would show up in the Developer Console. > > If you have any evidence to the contrary, please post a link. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training in NYC: http://marakana.com/training/android/ > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
On Thu, Jan 24, 2013 at 10:23 AM, Peri Hartman wrote: > Please keep in mind I'm trying to test whether I've setup Proguard > correctly. Thus, I need to see a stack trace sent by the end user to the > developer console. The stack trace is the same no matter where it comes from LogCat, the Developer Console, BugSense, etc. AFAIK. So long as you are testing your production APK on the device, the stack trace as seen in LogCat should be the same as what would show up in the Developer Console. If you have any evidence to the contrary, please post a link. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
Please keep in mind I'm trying to test whether I've setup Proguard correctly. Thus, I need to see a stack trace sent by the end user to the developer console. On Thursday, January 24, 2013 4:48:54 AM UTC-8, Mark Murphy (a Commons Guy) wrote: > On Wed, Jan 23, 2013 at 9:52 PM, Peri Hartman > > > wrote: > > Ok, I've done that and did something to cause my app to crash. It gives > the > > message "unfortunately, X has stopped", but nothing gives me an option > to > > send a stack trace. Any other wise words? > > Plug the device into your development machine and examine LogCat. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training in NYC: http://marakana.com/training/android/ > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
On Wed, Jan 23, 2013 at 9:52 PM, Peri Hartman wrote: > Ok, I've done that and did something to cause my app to crash. It gives the > message "unfortunately, X has stopped", but nothing gives me an option to > send a stack trace. Any other wise words? Plug the device into your development machine and examine LogCat. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
On Wednesday, January 23, 2013 6:52:29 PM UTC-8, Peri Hartman wrote: > > Ok, I've done that and did something to cause my app to crash. It gives > the message "unfortunately, X has stopped", but nothing gives me an option > to send a stack trace. Any other wise words? Are you sure it's possible > to send a stack trace from an app that's installed by email? > > On Wednesday, January 23, 2013 2:09:57 PM UTC-8, bob wrote: > >> E-mail yourself the APK, and install it from your Gmail App. >> >> On Wednesday, January 23, 2013 4:04:40 PM UTC-6, Peri Hartman wrote: >>> >>> I made a change to my Proguard setup, but haven't figured out how to >>> test it without publishing. Anyone know how to test the change locally? >>> >>> On Tuesday, January 22, 2013 3:09:21 PM UTC-8, Mark Murphy (a Commons >>> Guy) wrote: http://stackoverflow.com/questions/14466838/anr-has-no-line-number Which itself is a duplicate of: http://stackoverflow.com/questions/4619301/proguard-retrace-tools-output On Tue, Jan 22, 2013 at 5:58 PM, Peri Hartman wrote: > I have received an ANR from an end user, but the top line (in my code) has > no line number. Why is that, and how am I supposed to identify the error? > The code is obfuscated using progaurd. > > More specifically, the first few lines of my stack trace are: > > java.lang.NullPointerException > at com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown > Source) > at android.app.Activity.onMenuItemSelected(Activity.java:2502) > at > com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:950) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-d...@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! >>> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
Ok, I've done that and did something to cause my app to crash. It gives the message "unfortunately, X has stopped", but nothing gives me an option to send a stack trace. Any other wise words? On Wednesday, January 23, 2013 2:09:57 PM UTC-8, bob wrote: > E-mail yourself the APK, and install it from your Gmail App. > > On Wednesday, January 23, 2013 4:04:40 PM UTC-6, Peri Hartman wrote: >> >> I made a change to my Proguard setup, but haven't figured out how to test >> it without publishing. Anyone know how to test the change locally? >> >> On Tuesday, January 22, 2013 3:09:21 PM UTC-8, Mark Murphy (a Commons >> Guy) wrote: >>> >>> http://stackoverflow.com/questions/14466838/anr-has-no-line-number >>> >>> Which itself is a duplicate of: >>> >>> http://stackoverflow.com/questions/4619301/proguard-retrace-tools-output >>> >>> On Tue, Jan 22, 2013 at 5:58 PM, Peri Hartman >>> wrote: >>> > I have received an ANR from an end user, but the top line (in my code) >>> has >>> > no line number. Why is that, and how am I supposed to identify the >>> error? >>> > The code is obfuscated using progaurd. >>> > >>> > More specifically, the first few lines of my stack trace are: >>> > >>> > java.lang.NullPointerException >>> > at >>> com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown >>> > Source) >>> > at android.app.Activity.onMenuItemSelected(Activity.java:2502) >>> > at >>> > >>> com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:950) >>> >>> >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "Android Developers" group. >>> > To post to this group, send email to android-d...@googlegroups.com >>> > To unsubscribe from this group, send email to >>> > android-developers+unsubscr...@googlegroups.com >>> > For more options, visit this group at >>> > http://groups.google.com/group/android-developers?hl=en >>> >>> >>> >>> -- >>> Mark Murphy (a Commons Guy) >>> http://commonsware.com | http://github.com/commonsguy >>> http://commonsware.com/blog | http://twitter.com/commonsguy >>> >>> _The Busy Coder's Guide to Android Development_ Version 4.5 Available! >>> >> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
On Wed, Jan 23, 2013 at 5:04 PM, Peri Hartman wrote: > I made a change to my Proguard setup, but haven't figured out how to test it > without publishing. Anyone know how to test the change locally? Test what? You can install your modified APK via adb install or any number of other means. In terms of testing whether you can now get access to the lines from the stack trace, divide by zero somewhere to force a crash and then go through the process of examining the log. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
E-mail yourself the APK, and install it from your Gmail App. On Wednesday, January 23, 2013 4:04:40 PM UTC-6, Peri Hartman wrote: > > I made a change to my Proguard setup, but haven't figured out how to test > it without publishing. Anyone know how to test the change locally? > > On Tuesday, January 22, 2013 3:09:21 PM UTC-8, Mark Murphy (a Commons Guy) > wrote: >> >> http://stackoverflow.com/questions/14466838/anr-has-no-line-number >> >> Which itself is a duplicate of: >> >> http://stackoverflow.com/questions/4619301/proguard-retrace-tools-output >> >> On Tue, Jan 22, 2013 at 5:58 PM, Peri Hartman wrote: >> > I have received an ANR from an end user, but the top line (in my code) >> has >> > no line number. Why is that, and how am I supposed to identify the >> error? >> > The code is obfuscated using progaurd. >> > >> > More specifically, the first few lines of my stack trace are: >> > >> > java.lang.NullPointerException >> > at >> com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown >> > Source) >> > at android.app.Activity.onMenuItemSelected(Activity.java:2502) >> > at >> > >> com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:950) >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to android-d...@googlegroups.com >> > To unsubscribe from this group, send email to >> > android-developers+unsubscr...@googlegroups.com >> > For more options, visit this group at >> > http://groups.google.com/group/android-developers?hl=en >> >> >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to Android Development_ Version 4.5 Available! >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
I made a change to my Proguard setup, but haven't figured out how to test it without publishing. Anyone know how to test the change locally? On Tuesday, January 22, 2013 3:09:21 PM UTC-8, Mark Murphy (a Commons Guy) wrote: > > http://stackoverflow.com/questions/14466838/anr-has-no-line-number > > Which itself is a duplicate of: > > http://stackoverflow.com/questions/4619301/proguard-retrace-tools-output > > On Tue, Jan 22, 2013 at 5:58 PM, Peri Hartman > > > wrote: > > I have received an ANR from an end user, but the top line (in my code) > has > > no line number. Why is that, and how am I supposed to identify the > error? > > The code is obfuscated using progaurd. > > > > More specifically, the first few lines of my stack trace are: > > > > java.lang.NullPointerException > > at com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown > > Source) > > at android.app.Activity.onMenuItemSelected(Activity.java:2502) > > at > > > com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:950) > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to > > android-d...@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 4.5 Available! > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] End user ANR stack trace has no line number
http://stackoverflow.com/questions/14466838/anr-has-no-line-number Which itself is a duplicate of: http://stackoverflow.com/questions/4619301/proguard-retrace-tools-output On Tue, Jan 22, 2013 at 5:58 PM, Peri Hartman wrote: > I have received an ANR from an end user, but the top line (in my code) has > no line number. Why is that, and how am I supposed to identify the error? > The code is obfuscated using progaurd. > > More specifically, the first few lines of my stack trace are: > > java.lang.NullPointerException > at com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown > Source) > at android.app.Activity.onMenuItemSelected(Activity.java:2502) > at > com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:950) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] End user ANR stack trace has no line number
I have received an ANR from an end user, but the top line (in my code) has no line number. Why is that, and how am I supposed to identify the error? The code is obfuscated using progaurd. More specifically, the first few lines of my stack trace are: java.lang.NullPointerException at com.perinote.perinote.main.MainActivity.onOptionsItemSelected(Unknown Source) at android.app.Activity.onMenuItemSelected(Activity.java:2502) at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected( PhoneWindow.java:950) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en