2 Replies - 397 Views - Last Post: 03 December 2013 - 12:51 AM

#1 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Cant find source of a crash in the stacktrace

Posted 01 December 2013 - 02:53 AM

Hi everyone!

I've an app on Play Store, I've been getting a few reports on a bug for a while.
But the stacktrace only contains pointers to system files, and not to the code in the app.
It's really bugging me, and i can't find any information about it on google.

Hope someone else can well me what this is all about.
Here is the stacktrace:
java.lang.NullPointerException
at android.widget.ArrayAdapter.getCount(ArrayAdapter.java:330)
at android.widget.ListView.onMeasure(ListView.java:1128)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:15855)
at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1217)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.widget.ScrollView.onMeasure(ScrollView.java:321)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:15855)
at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:639)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:302)
at android.view.View.measure(View.java:15855)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(Phonewindow.java:2451)
at android.view.View.measure(View.java:15855)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1104)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
at android.view.Choreographer.doCallbacks(Choreographer.java:562)
at android.view.Choreographer.doFrame(Choreographer.java:532)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5289)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
at dalvik.system.NativeStart.main(Native Method)


I've never had that problem my self, and I am using that app every day and has tested it on over 7 different devices.


Thanks in advance

Is This A Good Question/Topic? 0
  • +

Replies To: Cant find source of a crash in the stacktrace

#2 Apokio  Icon User is offline

  • D.I.C Addict

Reputation: 135
  • View blog
  • Posts: 511
  • Joined: 14-August 09

Re: Cant find source of a crash in the stacktrace

Posted 02 December 2013 - 12:21 PM

I know this will be no help to your problem but I feel your pain. Is your app free? Are the users sending messages with the stack trace? I have errors like these all the time with my free app but not with my paid app. I think with the free app people try to load different databases in and just screw with the app. Also, different devices can produce strange errors. With Android being on so many different devices it is hard to test everything. I have been looking into Google Analytics to track the activities in the app and it is suppose to give you more info when the app crashes, like what the user was doing. I know it is frustrating.
Was This Post Helpful? 0
  • +
  • -

#3 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Cant find source of a crash in the stacktrace

Posted 03 December 2013 - 12:51 AM

Yes, it's free.
The only messages users send me, is that it happens on startup (where i'm loading items in to 2 listviews if there are any item to load).
They also send me their device name and android versoin (i.e Nexus 4 w/ 4.4)

I can't recreate the crash at all.
The items it's loading on startup, is playlists.
And when you install the app, you don't have any obviously, because you just install the app :P
So, the code is adapted for a situation where you don't have any items to load, so i don't get why i should crash.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1